cmake - Make a test depend on a file() or make_directory() call -
i have test (add_test(name mytest command myexecutable
) run have "preparation" tasks have been done. when have 1 test depends on test, use set_tests_properties(testa properties depends anothertest)
, there way can set_tests_properties(testa properties depends file(remove /path/to/file))
?
the 1 way can think of using python or other scripts test driver in following way per documentation:
add_test(name test_req_some_ops_before command testdriver.py --config $<configuration> --exe $<target_file:myexe> --path <here path delete>)
which should whatever want
Comments
Post a Comment