]> git.proxmox.com Git - mirror_libseccomp.git/commitdiff
tests: Report if test was skipped because of missing valgrind
authorHelge Deller <deller@gmx.de>
Fri, 15 Apr 2016 15:09:41 +0000 (17:09 +0200)
committerPaul Moore <paul@paul-moore.com>
Mon, 18 Apr 2016 22:23:27 +0000 (18:23 -0400)
Print a message if a regression test was skipped just because valgrind isn't
installed.

This additional info is useful for architectures (e.g. parisc) which aren't
as fast as x86_64. On parisc it seemed that the whole testcase was hanging,
now people know what's actually happening.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Paul Moore <paul@paul-moore.com>
tests/regression

index 53d26b2baeaf7f373483c20e94471bf2c1c05fcb..a720d55c34d3ed39f379b7d1f963549f1c385cdd 100755 (executable)
@@ -772,6 +772,7 @@ function run_test() {
                if check_deps valgrind; then
                        run_test_bpf_valgrind "$testnumstr" "$3"
                else
+                       print_result $testnumstr "SKIPPED" "(valgrind not installed)"
                        stats_skipped=$(($stats_skipped+1))
                fi
        elif [[ "$4" == "live" ]]; then