File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 8
8
WORKSPACE=$1
9
9
BUILD_DIR=$2
10
10
TOOL=$3
11
+ TESTS=$4
11
12
12
13
function print_usage() {
13
14
echo " $( basename $0 ) - run all UMF tests and examples under a valgrind tool (memcheck, drd or helgrind)"
14
15
echo " This script looks for './test/umf_test-*' and './examples/umf_example_*' executables in the UMF build directory."
15
- echo " Usage: $( basename $0 ) <workspace_dir> <build_dir> <memcheck|drd|helgrind>"
16
+ echo " Usage: $( basename $0 ) <workspace_dir> <build_dir> <memcheck|drd|helgrind> [tests_examples_to_be_run] "
16
17
}
17
18
18
19
if ! valgrind --version > /dev/null; then
@@ -71,8 +72,14 @@ echo "Running: \"valgrind $OPTION\" for the following tests:"
71
72
ANY_TEST_FAILED=0
72
73
rm -f umf_test-* .log umf_test-* .err
73
74
74
- for test in $( ls -1 ./test/umf_test-* ./examples/umf_example_* ) ; do
75
- [ ! -x $test ] && continue
75
+ [ " $TESTS " = " " ] && TESTS=$( ls -1 ./test/umf_test-* ./examples/umf_example_* )
76
+
77
+ for test in $TESTS ; do
78
+ if [ ! -x $test ]; then
79
+ echo " $test does not exist or is not executable"
80
+ exit 1
81
+ fi
82
+
76
83
echo " $test - starting ..."
77
84
echo -n " $test "
78
85
LOG=${test} .log
You can’t perform that action at this time.
0 commit comments