3 # Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License
7 # as published by the Free Software Foundation; only version 2
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #### ADD TESTS HERE ####
22 # A spawned session daemon is needed for those tests
23 test_with_sessiond
=( lttng
/runall.sh ust-nevents
/run ust-nprocesses
/run
)
25 # No session daemon needed
26 test_no_sessiond
=( test_sessions test_kernel_data_trace test_ust_data_trace
)
28 #### END TESTS HERE ####
32 source $TESTDIR/utils.sh
34 ## NO Session daemon ##
35 for bin
in ${test_no_sessiond[@]};
37 if [ ! -e $bin ]; then
38 echo -e "$bin not found, passing"
43 # Test must return 0 to pass.
45 echo -e '\e[1;31mFAIL\e[0m'
54 if [ $out -eq 2 ]; then
55 # Kernel version is not compatible.
57 elif [ $out -ne 0 ]; then
62 for bin
in ${test_with_sessiond[@]};
64 if [ ! -e $bin ]; then
65 echo -e "$bin not found, passing"
70 # Test must return 0 to pass.
72 echo -e '\e[1;31mFAIL\e[0m'