Hi Tup users,

I am trying to write a Tupfile for facilitating TDD on a C/C++ based 
project.

My Tupfile builds the unit test executables correctly. However, I am now 
attempting to modify the Tupfile to run just the changed unit test 
executables. One way to achieve this is to redirect all execution output of 
unit tests to a results file using a Tup rule like so -

: foreach {TEST_EXES} |> %f >%o 2>&1 |> %f.results {TEST_RESULTS}

And then echo the results to stdout if any of the results files are 
newer than the executables.

: foreach {TEST_RESULTS} |> echo %f |>

However, the first Tup rule above throws an error like so -

[ tup ] [0.105s] Executing Commands...

* 5% 1) tests/obj/unittest.exe >tests/obj/unittest.exe.results 2>&1

*** tup errors ***

*** Command ID=9688 failed with return value 1

Am I going down the wrong path and using Tup in a way that was not intended 
here? I'd appreciate any alternate suggestions/ideas to achieve the end 
result. All I am after is for the compile, link and execute cycle to be 
lightning fast to facilitate Test Driven Development.

Thanks!

-- 
-- 
tup-users mailing list
email: [email protected]
unsubscribe: [email protected]
options: http://groups.google.com/group/tup-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"tup-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to