diff options
author | netblue30 <netblue30@yahoo.com> | 2018-03-31 07:49:55 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2018-03-31 07:49:55 -0400 |
commit | 64699c828f52ab06055d50e1f4e781572a53c35f (patch) | |
tree | 7994edb936d282637b2d85f92155327f76eaded0 /test/root | |
parent | Merge pull request #1848 from jelford/cloud-providers (diff) | |
download | firejail-64699c828f52ab06055d50e1f4e781572a53c35f.tar.gz firejail-64699c828f52ab06055d50e1f4e781572a53c35f.tar.zst firejail-64699c828f52ab06055d50e1f4e781572a53c35f.zip |
testing
Diffstat (limited to 'test/root')
-rwxr-xr-x | test/root/firecfg.exp | 8 | ||||
-rwxr-xr-x | test/root/root.sh | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/root/firecfg.exp b/test/root/firecfg.exp index 02f2323a0..656b8e215 100755 --- a/test/root/firecfg.exp +++ b/test/root/firecfg.exp | |||
@@ -13,7 +13,7 @@ sleep 1 | |||
13 | send -- "firecfg --clean\r" | 13 | send -- "firecfg --clean\r" |
14 | expect { | 14 | expect { |
15 | timeout {puts "TESTING ERROR 0\n";exit} | 15 | timeout {puts "TESTING ERROR 0\n";exit} |
16 | "/usr/local/bin/firefox removed" | 16 | "less removed" |
17 | } | 17 | } |
18 | sleep 1 | 18 | sleep 1 |
19 | 19 | ||
@@ -30,11 +30,11 @@ sleep 1 | |||
30 | send -- "firecfg\r" | 30 | send -- "firecfg\r" |
31 | expect { | 31 | expect { |
32 | timeout {puts "TESTING ERROR 3\n";exit} | 32 | timeout {puts "TESTING ERROR 3\n";exit} |
33 | "firefox created" | 33 | "less created" |
34 | } | 34 | } |
35 | sleep 1 | 35 | sleep 1 |
36 | 36 | ||
37 | send -- "file /usr/local/bin/firefox\r" | 37 | send -- "file /usr/local/bin/less\r" |
38 | expect { | 38 | expect { |
39 | timeout {puts "TESTING ERROR 4\n";exit} | 39 | timeout {puts "TESTING ERROR 4\n";exit} |
40 | "symbolic link to /usr/bin/firejail" | 40 | "symbolic link to /usr/bin/firejail" |
@@ -44,7 +44,7 @@ sleep 1 | |||
44 | send -- "firecfg --list\r" | 44 | send -- "firecfg --list\r" |
45 | expect { | 45 | expect { |
46 | timeout {puts "TESTING ERROR 5\n";exit} | 46 | timeout {puts "TESTING ERROR 5\n";exit} |
47 | "/usr/local/bin/firefox" | 47 | "/usr/local/bin/less" |
48 | } | 48 | } |
49 | sleep 1 | 49 | sleep 1 |
50 | 50 | ||
diff --git a/test/root/root.sh b/test/root/root.sh index 912ae23f0..22b12cf86 100755 --- a/test/root/root.sh +++ b/test/root/root.sh | |||
@@ -110,13 +110,13 @@ echo "TESTING: firemon events (test/root/firemon-events.exp)" | |||
110 | #******************************** | 110 | #******************************** |
111 | # firecfg | 111 | # firecfg |
112 | #******************************** | 112 | #******************************** |
113 | which firefox | 113 | which less |
114 | if [ "$?" -eq 0 ]; | 114 | if [ "$?" -eq 0 ]; |
115 | then | 115 | then |
116 | echo "TESTING: firecfg (test/root/firecfg.exp)" | 116 | echo "TESTING: firecfg (test/root/firecfg.exp)" |
117 | ./firecfg.exp | 117 | ./firecfg.exp |
118 | else | 118 | else |
119 | echo "TESTING SKIP: firecfg, firefox not found" | 119 | echo "TESTING SKIP: firecfg, less not found" |
120 | fi | 120 | fi |
121 | 121 | ||
122 | # restore the default config file | 122 | # restore the default config file |