aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/utils.sh
diff options
context:
space:
mode:
authorLibravatar Reiner Herrmann <reiner@reiner-h.de>2016-04-28 00:02:53 +0200
committerLibravatar Reiner Herrmann <reiner@reiner-h.de>2016-04-28 01:29:07 +0200
commitdbb0b361a3abb95745372ba626c4427277b72ccc (patch)
tree81beb5d2d2408c1081c566bb11149cf15e007a11 /test/utils/utils.sh
parenttesting (diff)
downloadfirejail-dbb0b361a3abb95745372ba626c4427277b72ccc.tar.gz
firejail-dbb0b361a3abb95745372ba626c4427277b72ccc.tar.zst
firejail-dbb0b361a3abb95745372ba626c4427277b72ccc.zip
Make some tests more robust
Diffstat (limited to 'test/utils/utils.sh')
-rwxr-xr-xtest/utils/utils.sh26
1 files changed, 18 insertions, 8 deletions
diff --git a/test/utils/utils.sh b/test/utils/utils.sh
index 474c026d1..1e010147d 100755
--- a/test/utils/utils.sh
+++ b/test/utils/utils.sh
@@ -12,8 +12,14 @@ echo "TESTING: version (test/utils/version.exp)"
12echo "TESTING: help (test/utils/help.exp)" 12echo "TESTING: help (test/utils/help.exp)"
13./help.exp 13./help.exp
14 14
15echo "TESTING: man (test/utils/man.exp)" 15which man
16./man.exp 16if [ "$?" -eq 0 ];
17then
18 echo "TESTING: man (test/utils/man.exp)"
19 ./man.exp
20else
21 echo "TESTING: man not found"
22fi
17 23
18echo "TESTING: list (test/utils/list.exp)" 24echo "TESTING: list (test/utils/list.exp)"
19./list.exp 25./list.exp
@@ -21,9 +27,13 @@ echo "TESTING: list (test/utils/list.exp)"
21echo "TESTING: tree (test/utils/tree.exp)" 27echo "TESTING: tree (test/utils/tree.exp)"
22./tree.exp 28./tree.exp
23 29
24echo "TESTING: cpu.print (test/utils/cpu-print.exp)" 30if [ $(grep -c ^processor /proc/cpuinfo) -gt 1 ];
25echo "TESTING: failing under VirtualBox where there is only one CPU" 31then
26./cpu-print.exp 32 echo "TESTING: cpu.print (test/utils/cpu-print.exp)"
33 ./cpu-print.exp
34else
35 echo "TESTING: cpu.print, not enough CPUs"
36fi
27 37
28echo "TESTING: fs.print (test/utils/fs-print.exp)" 38echo "TESTING: fs.print (test/utils/fs-print.exp)"
29./fs-print.exp 39./fs-print.exp
@@ -52,7 +62,7 @@ echo "TESTING: shutdown3 (test/utils/shutdown3.exp)"
52echo "TESTING: shutdown4 (test/utils/shutdown4.exp)" 62echo "TESTING: shutdown4 (test/utils/shutdown4.exp)"
53./shutdown4.exp 63./shutdown4.exp
54 64
55echo "TESTING: join test/utils/(join.exp)" 65echo "TESTING: join (test/utils/join.exp)"
56./join.exp 66./join.exp
57 67
58echo "TESTING: join2 (test/utils/join2.exp)" 68echo "TESTING: join2 (test/utils/join2.exp)"
@@ -72,9 +82,9 @@ rm -f index.html*
72echo "TESTING: firemon --seccomp (test/utils/seccomp.exp)" 82echo "TESTING: firemon --seccomp (test/utils/seccomp.exp)"
73./seccomp.exp 83./seccomp.exp
74 84
75echo "TESTING: firemon --caps (test/ustil/caps.exp)" 85echo "TESTING: firemon --caps (test/utils/caps.exp)"
76./caps.exp 86./caps.exp
77 87
78echo "TESTING: file transfer (test/ustil/ls.exp)" 88echo "TESTING: file transfer (test/utils/ls.exp)"
79./ls.exp 89./ls.exp
80 90