diff options
author | 2023-03-08 16:23:30 -0500 | |
---|---|---|
committer | 2023-03-08 16:23:30 -0500 | |
commit | acf8efb878b84882a9df61eff51fdcaceb522a4c (patch) | |
tree | 88042e5d0723c36a10efc05774335bd0df52703a /test/firecfg | |
parent | Merge pull request #5717 from glitsj16/aa-examples (diff) | |
download | firejail-acf8efb878b84882a9df61eff51fdcaceb522a4c.tar.gz firejail-acf8efb878b84882a9df61eff51fdcaceb522a4c.tar.zst firejail-acf8efb878b84882a9df61eff51fdcaceb522a4c.zip |
testing
Diffstat (limited to 'test/firecfg')
-rwxr-xr-x | test/firecfg/firecfg.exp | 13 | ||||
-rwxr-xr-x | test/firecfg/firecfg.sh | 5 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/firecfg/firecfg.exp b/test/firecfg/firecfg.exp index 0249fb7fa..755eea3a1 100755 --- a/test/firecfg/firecfg.exp +++ b/test/firecfg/firecfg.exp | |||
@@ -12,7 +12,20 @@ expect { | |||
12 | timeout {puts "TESTING ERROR 0\n";exit} | 12 | timeout {puts "TESTING ERROR 0\n";exit} |
13 | "ping: symbolic link to /usr/bin/firejail" | 13 | "ping: symbolic link to /usr/bin/firejail" |
14 | } | 14 | } |
15 | after 100 | ||
15 | 16 | ||
17 | send -- "file /tmp/ttt/ping\r" | ||
18 | expect { | ||
19 | timeout {puts "TESTING ERROR 0\n";exit} | ||
20 | "ping: symbolic link to /usr/bin/firejail" | ||
21 | } | ||
22 | after 100 | ||
23 | |||
24 | send -- "firecfg --list\r" | ||
25 | expect { | ||
26 | timeout {puts "TESTING ERROR 1\n";exit} | ||
27 | "/usr/local/bin/ping" | ||
28 | } | ||
16 | after 100 | 29 | after 100 |
17 | 30 | ||
18 | puts "\nall done\n" | 31 | puts "\nall done\n" |
diff --git a/test/firecfg/firecfg.sh b/test/firecfg/firecfg.sh index 6b03cc841..6f2bb5244 100755 --- a/test/firecfg/firecfg.sh +++ b/test/firecfg/firecfg.sh | |||
@@ -7,6 +7,11 @@ export MALLOC_CHECK_=3 | |||
7 | export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) | 7 | export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) |
8 | export LC_ALL=C | 8 | export LC_ALL=C |
9 | 9 | ||
10 | sudo mkdir /tmp/ttt | ||
10 | sudo firecfg | 11 | sudo firecfg |
12 | sudo firecfg --bindir=/tmp/ttt | ||
13 | |||
11 | echo "TESTING: firecfg (test/firecfg/firecfg.exp)" | 14 | echo "TESTING: firecfg (test/firecfg/firecfg.exp)" |
12 | ./firecfg.exp | 15 | ./firecfg.exp |
16 | |||
17 | sudo rm -fr /tmp/ttt | ||