projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add mkdir_recursive function to libcommon utils
[lttng-tools.git]
/
tests
/
runall.sh
diff --git
a/tests/runall.sh
b/tests/runall.sh
index eadeeb912e6bc07df0fa18d990ed5c6a812ce094..0adbb2e4bb709863b4a4207db7a607602449fb6f 100755
(executable)
--- a/
tests/runall.sh
+++ b/
tests/runall.sh
@@
-19,8
+19,7
@@
#### ADD TESTS HERE ####
#### ADD TESTS HERE ####
-test_suite=( test_sessions test_kernel_data_trace test_ust_data_trace
- lttng/runall.sh ust-nevents/run ust-nprocesses/run )
+tests=( kernel/runall.sh ust/runall.sh tools/runall.sh )
#### END TESTS HERE ####
#### END TESTS HERE ####
@@
-28,23
+27,23
@@
TESTDIR=$(dirname $0)
source $TESTDIR/utils.sh
source $TESTDIR/utils.sh
-start_sessiond
-if [ $? -ne 0 ]; then
- exit 1
-fi
-
-for bin in ${test_suite[@]};
+## 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
# Test must return 0 to pass.
if [ $? -ne 0 ]; then
echo -e '\e[1;31mFAIL\e[0m'
echo ""
./$bin
# Test must return 0 to pass.
if [ $? -ne 0 ]; then
echo -e '\e[1;31mFAIL\e[0m'
echo ""
- stop_sessiond
exit 1
fi
done
exit 1
fi
done
-echo ""
-stop_sessiond
+# All passed
exit 0
exit 0
This page took
0.023297 seconds
and
4
git commands to generate.