aboutsummaryrefslogtreecommitdiffstats
path: root/test/sysutils/sysutils.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/sysutils/sysutils.sh')
-rwxr-xr-xtest/sysutils/sysutils.sh44
1 files changed, 44 insertions, 0 deletions
diff --git a/test/sysutils/sysutils.sh b/test/sysutils/sysutils.sh
new file mode 100755
index 000000000..f230c9a6b
--- /dev/null
+++ b/test/sysutils/sysutils.sh
@@ -0,0 +1,44 @@
1#!/bin/bash
2# This file is part of Firejail project
3# Copyright (C) 2014-2016 Firejail Authors
4# License GPL v2
5
6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8
9which cpio
10if [ "$?" -eq 0 ];
11then
12 echo "TESTING: cpio"
13 ./cpio.exp
14else
15 echo "TESTING SKIP: cpio not found"
16fi
17
18which strings
19if [ "$?" -eq 0 ];
20then
21 echo "TESTING: strings"
22 ./strings.exp
23else
24 echo "TESTING SKIP: strings not found"
25fi
26
27which gzip
28if [ "$?" -eq 0 ];
29then
30 echo "TESTING: gzip"
31 ./gzip.exp
32else
33 echo "TESTING SKIP: gzip not found"
34fi
35
36which xzdec
37if [ "$?" -eq 0 ];
38then
39 echo "TESTING: xzdec"
40 ./xzdec.exp
41else
42 echo "TESTING SKIP: xzdec not found"
43fi
44