@ifazk wrote:
I’m trying to write a custom test where I feed some test data to the main executable of my project via standard in. Is there a way to do this?
Here’s what I have so far.
(alias (name runtest) (deps test_data.txt) (action (run dune exec my_proj_exe < test.txt)) )
I don’t think the redirect actually works, since the test hangs. I think
<
is treated as an argument todune
.
Posts: 6
Participants: 4