e424667f47
Configuration files and scripts to perform tests with ctest - ctest can be run into the test directory or the root - the script CTestScript.cmake allows ctest to perform the whole sequence update/configure/build/test and submit the result to cdash (http://cdash.inria.fr/CDash/index.php?project=Heptagon) - gen_ctests is used to generate the file test/CTestTestfile.cmake
19 lines
722 B
Bash
Executable file
19 lines
722 B
Bash
Executable file
#!/bin/bash
|
|
|
|
for i in bad/*.ept; do
|
|
echo 'ADD_TEST(compile_fail_'`basename $i .ept` '"scripts/compile_fail"' '"'$i'" "-memalloc")'
|
|
done
|
|
|
|
for i in good/*.ept; do
|
|
echo 'ADD_TEST(compile_only_'`basename $i .ept` '"scripts/compile_only"' '"'$i'")'
|
|
done
|
|
|
|
echo 'SET_TEST_PROPERTIES(compile_only_t2 PROPERTIES DEPENDS compiler_only_t1)'
|
|
echo 'SET_TEST_PROPERTIES(compile_only_t2open PROPERTIES DEPENDS compiler_only_t1)'
|
|
|
|
for i in good/*.ept; do
|
|
echo 'ADD_TEST(compile_gcc_run_'`basename $i .ept` '"scripts/compile_gcc_run"' '"'$i'")'
|
|
done
|
|
|
|
echo 'SET_TEST_PROPERTIES(compile_gcc_run_t2 PROPERTIES DEPENDS compiler_gcc_run_t1)'
|
|
echo 'SET_TEST_PROPERTIES(compile_gcc_run_t2open PROPERTIES DEPENDS compiler_gcc_run_t1)'
|