feature #192: Automate test execution

This commit is contained in:
Ruben S. Montero committed 2010-04-26 17:23:16 +02:00
1 parent 6d92d7152f
commit a4e7bb25ec
1 file changed
+24
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
TWD="../../src"
BASE=$PWD
TESTS=`find $TWD -name test -type d`
for i in $TESTS ; do
cd $BASE
echo "Doing $i ..."
cd $i
scons -c
scons > /dev/null 2>&1
rm callgrind.out
rm test.db* test.log
for j in `ls test*` ; do
# valgrind ./$j -s
# valgrind --tool=callgrind ./$j -s
./$j -s
done
done
cd $BASE