From a4e7bb25ec5fdc6a8abdbdbbdd313f78d6a8f1ae Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Mon, 26 Apr 2010 17:23:16 +0200 Subject: [PATCH] feature #192: Automate test execution --- share/test/do_tests.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 share/test/do_tests.sh diff --git a/share/test/do_tests.sh b/share/test/do_tests.sh new file mode 100644 index 0000000000..06abf466c2 --- /dev/null +++ b/share/test/do_tests.sh @@ -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