mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-09 22:14:13 +09:00
feature #192: Automate test execution
This commit is contained in:
1 parent
6d92d7152f
commit
a4e7bb25ec
1 file changed
+24
@@ -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
|
||||
Reference in new issue
Block a user