Corrected ctest configuration file

This commit is contained in:
Gwenal Delaval 2012-07-16 11:22:56 +02:00
parent 89ee2a8fb6
commit 4c0b1f8431
6 changed files with 28 additions and 54 deletions

View file

@ -100,8 +100,6 @@ ADD_TEST(compile_only_tuple_args "scripts/compile_only" "good/tuple_args.ept")
ADD_TEST(compile_only_type_alias "scripts/compile_only" "good/type_alias.ept")
ADD_TEST(compile_only_updown "scripts/compile_only" "good/updown.ept")
ADD_TEST(compile_only_when_merge1 "scripts/compile_only" "good/when_merge1.ept")
SET_TEST_PROPERTIES(compile_only_t2 PROPERTIES DEPENDS compiler_only_t1)
SET_TEST_PROPERTIES(compile_only_t2open PROPERTIES DEPENDS compiler_only_t1)
ADD_TEST(compile_gcc_run_alloc "scripts/compile_gcc_run" "good/alloc.ept")
ADD_TEST(compile_gcc_run_array1 "scripts/compile_gcc_run" "good/array1.ept")
ADD_TEST(compile_gcc_run_array2 "scripts/compile_gcc_run" "good/array2.ept")
@ -173,5 +171,7 @@ ADD_TEST(compile_gcc_run_tuple_args "scripts/compile_gcc_run" "good/tuple_args.e
ADD_TEST(compile_gcc_run_type_alias "scripts/compile_gcc_run" "good/type_alias.ept")
ADD_TEST(compile_gcc_run_updown "scripts/compile_gcc_run" "good/updown.ept")
ADD_TEST(compile_gcc_run_when_merge1 "scripts/compile_gcc_run" "good/when_merge1.ept")
SET_TEST_PROPERTIES(compile_only_t2 PROPERTIES DEPENDS compiler_only_t1)
SET_TEST_PROPERTIES(compile_only_t2open PROPERTIES DEPENDS compiler_only_t1)
SET_TEST_PROPERTIES(compile_gcc_run_t2 PROPERTIES DEPENDS compiler_gcc_run_t1)
SET_TEST_PROPERTIES(compile_gcc_run_t2open PROPERTIES DEPENDS compiler_gcc_run_t1)

View file

@ -8,12 +8,13 @@ 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_only_t2 PROPERTIES DEPENDS compiler_only_t1)'
echo 'SET_TEST_PROPERTIES(compile_only_t2open PROPERTIES DEPENDS compiler_only_t1)'
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)'

View file

@ -1,20 +1,6 @@
#!/bin/bash
checkdir=_check_builds
shopt -s nullglob
# script de test
COMPILER_DIR="../compiler"
if [ -x $COMPILER_DIR/heptc.native ];
then
COMPILER=heptc.native
else
COMPILER=heptc.byte
fi
HEPTC=../$COMPILER_DIR/$COMPILER
source scripts/config
progpath=$1
shift

View file

@ -1,24 +1,6 @@
#!/bin/bash
checkdir=_check_builds
shopt -s nullglob
# script de test
COMPILER_DIR="../compiler"
if [ -x $COMPILER_DIR/heptc.native ];
then
COMPILER=heptc.native
else
COMPILER=heptc.byte
fi
HEPTC=../$COMPILER_DIR/$COMPILER
CC="gcc -std=c99 -I ../../../lib/c"
LD="gcc"
NBSTEP=100
source scripts/config
progpath=$1
shift

View file

@ -1,20 +1,6 @@
#!/bin/bash
checkdir=_check_builds
shopt -s nullglob
# script de test
COMPILER_DIR="../compiler"
if [ -x $COMPILER_DIR/heptc.native ];
then
COMPILER=heptc.native
else
COMPILER=heptc.byte
fi
HEPTC=../$COMPILER_DIR/$COMPILER
source scripts/config
progpath=$1
shift

19
test/scripts/config Normal file
View file

@ -0,0 +1,19 @@
checkdir=_check_builds
shopt -s nullglob
# script de test
COMPILER_DIR="../compiler"
if [ -x $COMPILER_DIR/heptc.native ];
then
COMPILER=heptc.native
else
COMPILER=heptc.byte
fi
HEPTC=../$COMPILER_DIR/$COMPILER
CC="gcc -std=c99 -I ../../../lib/c"
LD="gcc"
NBSTEP=100