1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
#!/bin/bash
#
# Copyright 2010 Ericsson AB
#
# This file is part of LTTng-UST.
#
# LTTng-UST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# LTTng-UST is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LTTng-UST. If not, see <http://www.gnu.org/licenses/>.
tests_failed=0
TESTDIR=$(dirname $0)
function simple_harness_run() {
if ! "$TESTDIR/$@"; then
let tests_failed=$tests_failed+1
fi
}
simple_harness_run test-nevents/test-nevents.sh
simple_harness_run fork/fork.sh
simple_harness_run test-libustinstr-malloc/test-libustinstr-malloc.sh
simple_harness_run ./manual_mode_tracing.sh
simple_harness_run ./valgrind_ust-consumerd.sh
simple_harness_run dlopen/dlopen.sh
simple_harness_run same_line_marker/same_line_marker.sh
# This testcase is currently broken, do not run.
# simple_harness_run tracepoint/run
simple_harness_run libustctl_function_tests/libustctl_function_tests
# FIXME We disable the exit-fast test for the release. This is a known
# problem with the current UST design that we will be working on fixing
# in the upcoming rework for integration with the lttng-tools. We don't
# want to flood testers with known issues, hence the choice to disable
# the test.
#simple_harness_run exit-fast/exit-fast.sh
echo "************************************"
if [[ $tests_failed -eq 0 ]]; then
echo "$0: All passed"
else
echo "$0: $tests_failed tests failed"
fi
echo "************************************"
exit 0
|