| 86 | } |
| 87 | |
| 88 | TEST_CASE(string_stdin) |
| 89 | { |
| 90 | auto tmp = migraphx::tmp_dir{}; |
| 91 | auto out = (tmp.path / "output.txt").string(); |
| 92 | |
| 93 | migraphx::process{executable, {"--stdin", out}}.write( |
| 94 | [&](const auto& writer) { writer(string_data.data(), string_data.size()); }); |
| 95 | |
| 96 | EXPECT(migraphx::fs::is_regular_file(out)); |
| 97 | |
| 98 | std::string result{migraphx::read_string(out)}; |
| 99 | EXPECT(result == string_data); |
| 100 | |
| 101 | EXPECT(migraphx::fs::remove(out)); |
| 102 | } |
| 103 | |
| 104 | TEST_CASE(binary_stdin) |
| 105 | { |
nothing calls this directly
no test coverage detected