aboutsummaryrefslogtreecommitdiffstats
path: root/test/sysutils/sysutils.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/sysutils/sysutils.sh')
-rwxr-xr-xtest/sysutils/sysutils.sh27
1 files changed, 9 insertions, 18 deletions
diff --git a/test/sysutils/sysutils.sh b/test/sysutils/sysutils.sh
index a903c7c6b..bfe723047 100755
--- a/test/sysutils/sysutils.sh
+++ b/test/sysutils/sysutils.sh
@@ -7,8 +7,7 @@ export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C 8export LC_ALL=C
9 9
10which cpio 2>/dev/null 10if command -v cpio
11if [ "$?" -eq 0 ];
12then 11then
13 echo "TESTING: cpio" 12 echo "TESTING: cpio"
14 ./cpio.exp 13 ./cpio.exp
@@ -16,8 +15,7 @@ else
16 echo "TESTING SKIP: cpio not found" 15 echo "TESTING SKIP: cpio not found"
17fi 16fi
18 17
19#which strings 18#if command -v strings
20#if [ "$?" -eq 0 ];
21#then 19#then
22# echo "TESTING: strings" 20# echo "TESTING: strings"
23# ./strings.exp 21# ./strings.exp
@@ -25,8 +23,7 @@ fi
25# echo "TESTING SKIP: strings not found" 23# echo "TESTING SKIP: strings not found"
26#fi 24#fi
27 25
28which gzip 2>/dev/null 26if command -v gzip
29if [ "$?" -eq 0 ];
30then 27then
31 echo "TESTING: gzip" 28 echo "TESTING: gzip"
32 ./gzip.exp 29 ./gzip.exp
@@ -34,8 +31,7 @@ else
34 echo "TESTING SKIP: gzip not found" 31 echo "TESTING SKIP: gzip not found"
35fi 32fi
36 33
37which xzdec 2>/dev/null 34if command -v xzdec
38if [ "$?" -eq 0 ];
39then 35then
40 echo "TESTING: xzdec" 36 echo "TESTING: xzdec"
41 ./xzdec.exp 37 ./xzdec.exp
@@ -43,8 +39,7 @@ else
43 echo "TESTING SKIP: xzdec not found" 39 echo "TESTING SKIP: xzdec not found"
44fi 40fi
45 41
46which xz 2>/dev/null 42if command -v xz
47if [ "$?" -eq 0 ];
48then 43then
49 echo "TESTING: xz" 44 echo "TESTING: xz"
50 ./xz.exp 45 ./xz.exp
@@ -52,8 +47,7 @@ else
52 echo "TESTING SKIP: xz not found" 47 echo "TESTING SKIP: xz not found"
53fi 48fi
54 49
55which less 2>/dev/null 50if command -v less
56if [ "$?" -eq 0 ];
57then 51then
58 echo "TESTING: less" 52 echo "TESTING: less"
59 ./less.exp 53 ./less.exp
@@ -61,8 +55,7 @@ else
61 echo "TESTING SKIP: less not found" 55 echo "TESTING SKIP: less not found"
62fi 56fi
63 57
64which file 2>/dev/null 58if command -v file
65if [ "$?" -eq 0 ];
66then 59then
67 echo "TESTING: file" 60 echo "TESTING: file"
68 ./file.exp 61 ./file.exp
@@ -70,8 +63,7 @@ else
70 echo "TESTING SKIP: file not found" 63 echo "TESTING SKIP: file not found"
71fi 64fi
72 65
73which tar 2>/dev/null 66if command -v tar
74if [ "$?" -eq 0 ];
75then 67then
76 echo "TESTING: tar" 68 echo "TESTING: tar"
77 ./tar.exp 69 ./tar.exp
@@ -79,8 +71,7 @@ else
79 echo "TESTING SKIP: tar not found" 71 echo "TESTING SKIP: tar not found"
80fi 72fi
81 73
82which ping 2>/dev/null 74if command -v ping
83if [ "$?" -eq 0 ];
84then 75then
85 echo "TESTING: ping" 76 echo "TESTING: ping"
86 ./ping.exp 77 ./ping.exp