projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add UST and kernel streaming tests
[lttng-tools.git]
/
tests
/
runall.sh
diff --git
a/tests/runall.sh
b/tests/runall.sh
index e7f83ed11e2a89e09bd7b2737a4b9d13d80776dd..0adbb2e4bb709863b4a4207db7a607602449fb6f 100755
(executable)
--- a/
tests/runall.sh
+++ b/
tests/runall.sh
@@
-19,12
+19,31
@@
#### ADD TESTS HERE ####
#### ADD TESTS HERE ####
-for bin in test_sessions;
+tests=( kernel/runall.sh ust/runall.sh tools/runall.sh )
+
+#### END TESTS HERE ####
+
+TESTDIR=$(dirname $0)
+
+source $TESTDIR/utils.sh
+
+## lttng-tools unit tests ##
+# No session daemon needed
+for bin in ${tests[@]};
do
do
+ if [ ! -e $bin ]; then
+ echo -e "$bin not found, passing"
+ continue
+ fi
+
./$bin
./$bin
+ # Test must return 0 to pass.
+ if [ $? -ne 0 ]; then
+ echo -e '\e[1;31mFAIL\e[0m'
+ echo ""
+ exit 1
+ fi
done
done
-#### END TESTS HERE ####
-
-echo ""
+# All passed
exit 0
exit 0
This page took
0.023318 seconds
and
4
git commands to generate.