diff options
Diffstat (limited to 'test/features/1.10.exp')
-rwxr-xr-x | test/features/1.10.exp | 38 |
1 files changed, 22 insertions, 16 deletions
diff --git a/test/features/1.10.exp b/test/features/1.10.exp index a6e0f9281..96e3c38d1 100755 --- a/test/features/1.10.exp +++ b/test/features/1.10.exp | |||
@@ -6,6 +6,7 @@ | |||
6 | set timeout 10 | 6 | set timeout 10 |
7 | spawn $env(SHELL) | 7 | spawn $env(SHELL) |
8 | match_max 100000 | 8 | match_max 100000 |
9 | set overlay [lindex $argv 0] | ||
9 | 10 | ||
10 | # | 11 | # |
11 | # N | 12 | # N |
@@ -20,7 +21,8 @@ sleep 1 | |||
20 | send -- "ls -l /selinux\r" | 21 | send -- "ls -l /selinux\r" |
21 | expect { | 22 | expect { |
22 | timeout {puts "TESTING ERROR 1\n";exit} | 23 | timeout {puts "TESTING ERROR 1\n";exit} |
23 | "Permission denied" | 24 | "Permission denied" {puts "denied\n"} |
25 | "No such file or directory" {puts "no file\n"} | ||
24 | } | 26 | } |
25 | after 100 | 27 | after 100 |
26 | send -- "exit\r" | 28 | send -- "exit\r" |
@@ -30,21 +32,24 @@ sleep 1 | |||
30 | # | 32 | # |
31 | # O | 33 | # O |
32 | # | 34 | # |
33 | send -- "firejail --noprofile --overlay\r" | 35 | if { $overlay == "overlay" } { |
34 | expect { | 36 | send -- "firejail --noprofile --overlay\r" |
35 | timeout {puts "TESTING ERROR 2\n";exit} | 37 | expect { |
36 | "Child process initialized" | 38 | timeout {puts "TESTING ERROR 2\n";exit} |
37 | } | 39 | "Child process initialized" |
38 | sleep 1 | 40 | } |
39 | 41 | sleep 1 | |
40 | send -- "ls -l /selinux\r" | 42 | |
41 | expect { | 43 | send -- "ls -l /selinux\r" |
42 | timeout {puts "TESTING ERROR 3\n";exit} | 44 | expect { |
43 | "Permission denied" | 45 | timeout {puts "TESTING ERROR 3\n";exit} |
46 | "Permission denied" {puts "denied\n"} | ||
47 | "No such file or directory" {puts "no file\n"} | ||
48 | } | ||
49 | after 100 | ||
50 | send -- "exit\r" | ||
51 | sleep 1 | ||
44 | } | 52 | } |
45 | after 100 | ||
46 | send -- "exit\r" | ||
47 | sleep 1 | ||
48 | 53 | ||
49 | # | 54 | # |
50 | # C | 55 | # C |
@@ -59,7 +64,8 @@ sleep 1 | |||
59 | send -- "ls -l /selinux\r" | 64 | send -- "ls -l /selinux\r" |
60 | expect { | 65 | expect { |
61 | timeout {puts "TESTING ERROR 5\n";exit} | 66 | timeout {puts "TESTING ERROR 5\n";exit} |
62 | "Permission denied" | 67 | "Permission denied" {puts "denied\n"} |
68 | "No such file or directory" {puts "no file\n"} | ||
63 | } | 69 | } |
64 | after 100 | 70 | after 100 |
65 | send -- "exit\r" | 71 | send -- "exit\r" |