diff options
Diffstat (limited to 'test/profiles')
-rwxr-xr-x | test/profiles/conditional.exp | 4 | ||||
-rwxr-xr-x | test/profiles/ignore.exp | 10 | ||||
-rwxr-xr-x | test/profiles/profile_comment.exp | 4 | ||||
-rwxr-xr-x | test/profiles/profile_followlnk.exp | 2 | ||||
-rwxr-xr-x | test/profiles/profile_readonly.exp | 2 | ||||
-rwxr-xr-x | test/profiles/profile_syntax.exp | 2 |
6 files changed, 12 insertions, 12 deletions
diff --git a/test/profiles/conditional.exp b/test/profiles/conditional.exp index 97ac01503..40bae3878 100755 --- a/test/profiles/conditional.exp +++ b/test/profiles/conditional.exp | |||
@@ -14,7 +14,7 @@ expect { | |||
14 | } | 14 | } |
15 | expect { | 15 | expect { |
16 | timeout {puts "TESTING ERROR 1\n";exit} | 16 | timeout {puts "TESTING ERROR 1\n";exit} |
17 | "Child process initialized" | 17 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
18 | } | 18 | } |
19 | after 100 | 19 | after 100 |
20 | send -- "exit\r" | 20 | send -- "exit\r" |
@@ -24,7 +24,7 @@ send -- "firejail --debug --profile=cond1.profile\r" | |||
24 | expect { | 24 | expect { |
25 | timeout {puts "TESTING ERROR 2\n";exit} | 25 | timeout {puts "TESTING ERROR 2\n";exit} |
26 | "conditional HAS_NODBUS, private" {puts "TESTING ERROR 3\n";exit} | 26 | "conditional HAS_NODBUS, private" {puts "TESTING ERROR 3\n";exit} |
27 | "Child process initialized" | 27 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
28 | } | 28 | } |
29 | after 100 | 29 | after 100 |
30 | send -- "exit\r" | 30 | send -- "exit\r" |
diff --git a/test/profiles/ignore.exp b/test/profiles/ignore.exp index 7d13a8b72..df4337e1e 100755 --- a/test/profiles/ignore.exp +++ b/test/profiles/ignore.exp | |||
@@ -17,7 +17,7 @@ send -- "firejail --debug --ignore=seccomp\r" | |||
17 | expect { | 17 | expect { |
18 | timeout {puts "TESTING ERROR 1\n";exit} | 18 | timeout {puts "TESTING ERROR 1\n";exit} |
19 | BLACKLIST {puts "TESTING ERROR 2\n";exit} | 19 | BLACKLIST {puts "TESTING ERROR 2\n";exit} |
20 | "Child process initialized" | 20 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
21 | } | 21 | } |
22 | after 100 | 22 | after 100 |
23 | send -- "exit\r" | 23 | send -- "exit\r" |
@@ -26,7 +26,7 @@ sleep 1 | |||
26 | send -- "firejail --ignore=seccomp --ignore=shell --profile=ignore.profile \r" | 26 | send -- "firejail --ignore=seccomp --ignore=shell --profile=ignore.profile \r" |
27 | expect { | 27 | expect { |
28 | timeout {puts "TESTING ERROR 3\n";exit} | 28 | timeout {puts "TESTING ERROR 3\n";exit} |
29 | "Child process initialized" | 29 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
30 | } | 30 | } |
31 | after 100 | 31 | after 100 |
32 | 32 | ||
@@ -42,7 +42,7 @@ sleep 1 | |||
42 | send -- "firejail --ignore=private --ignore=shell --profile=ignore.profile \r" | 42 | send -- "firejail --ignore=private --ignore=shell --profile=ignore.profile \r" |
43 | expect { | 43 | expect { |
44 | timeout {puts "TESTING ERROR 5\n";exit} | 44 | timeout {puts "TESTING ERROR 5\n";exit} |
45 | "Child process initialized" | 45 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
46 | } | 46 | } |
47 | after 100 | 47 | after 100 |
48 | 48 | ||
@@ -59,7 +59,7 @@ send -- "firejail --debug --profile=ignore2.profile\r" | |||
59 | expect { | 59 | expect { |
60 | timeout {puts "TESTING ERROR 7\n";exit} | 60 | timeout {puts "TESTING ERROR 7\n";exit} |
61 | BLACKLIST {puts "TESTING ERROR 8\n";exit} | 61 | BLACKLIST {puts "TESTING ERROR 8\n";exit} |
62 | "Child process initialized" | 62 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
63 | } | 63 | } |
64 | 64 | ||
65 | after 100 | 65 | after 100 |
@@ -69,7 +69,7 @@ sleep 1 | |||
69 | send -- "firejail --ignore=quiet --ignore=shell --profile=ignore.profile \r" | 69 | send -- "firejail --ignore=quiet --ignore=shell --profile=ignore.profile \r" |
70 | expect { | 70 | expect { |
71 | timeout {puts "TESTING ERROR 9\n";exit} | 71 | timeout {puts "TESTING ERROR 9\n";exit} |
72 | "Child process initialized" | 72 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
73 | } | 73 | } |
74 | after 100 | 74 | after 100 |
75 | 75 | ||
diff --git a/test/profiles/profile_comment.exp b/test/profiles/profile_comment.exp index 907635c2f..73e92d864 100755 --- a/test/profiles/profile_comment.exp +++ b/test/profiles/profile_comment.exp | |||
@@ -15,7 +15,7 @@ sleep 1 | |||
15 | send -- "firejail --profile=comment.profile /usr/bin/true\r" | 15 | send -- "firejail --profile=comment.profile /usr/bin/true\r" |
16 | expect { | 16 | expect { |
17 | timeout {puts "TESTING ERROR 0\n";exit} | 17 | timeout {puts "TESTING ERROR 0\n";exit} |
18 | "Child process initialized" | 18 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
19 | } | 19 | } |
20 | expect { | 20 | expect { |
21 | timeout {puts "TESTING ERROR 1\n";exit} | 21 | timeout {puts "TESTING ERROR 1\n";exit} |
@@ -36,7 +36,7 @@ after 100 | |||
36 | send -- "firejail --profile=/tmp/firejailtest.profile /usr/bin/true\r" | 36 | send -- "firejail --profile=/tmp/firejailtest.profile /usr/bin/true\r" |
37 | expect { | 37 | expect { |
38 | timeout {puts "TESTING ERROR 3\n";exit} | 38 | timeout {puts "TESTING ERROR 3\n";exit} |
39 | "Child process initialized" | 39 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
40 | } | 40 | } |
41 | expect { | 41 | expect { |
42 | timeout {puts "TESTING ERROR 4\n";exit} | 42 | timeout {puts "TESTING ERROR 4\n";exit} |
diff --git a/test/profiles/profile_followlnk.exp b/test/profiles/profile_followlnk.exp index c41276cfb..112acbbc9 100755 --- a/test/profiles/profile_followlnk.exp +++ b/test/profiles/profile_followlnk.exp | |||
@@ -16,7 +16,7 @@ sleep 1 | |||
16 | send -- "firejail --profile=readonly-lnk.profile\r" | 16 | send -- "firejail --profile=readonly-lnk.profile\r" |
17 | expect { | 17 | expect { |
18 | timeout {puts "TESTING ERROR 0\n";exit} | 18 | timeout {puts "TESTING ERROR 0\n";exit} |
19 | "Child process initialized" | 19 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
20 | } | 20 | } |
21 | 21 | ||
22 | send -- "ls > /tmp/firejailtestdirlnk/ttt\r" | 22 | send -- "ls > /tmp/firejailtestdirlnk/ttt\r" |
diff --git a/test/profiles/profile_readonly.exp b/test/profiles/profile_readonly.exp index 8dc598034..4c1bcba89 100755 --- a/test/profiles/profile_readonly.exp +++ b/test/profiles/profile_readonly.exp | |||
@@ -14,7 +14,7 @@ sleep 1 | |||
14 | send -- "firejail --profile=readonly.profile\r" | 14 | send -- "firejail --profile=readonly.profile\r" |
15 | expect { | 15 | expect { |
16 | timeout {puts "TESTING ERROR 0\n";exit} | 16 | timeout {puts "TESTING ERROR 0\n";exit} |
17 | "Child process initialized" | 17 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
18 | } | 18 | } |
19 | sleep 2 | 19 | sleep 2 |
20 | 20 | ||
diff --git a/test/profiles/profile_syntax.exp b/test/profiles/profile_syntax.exp index d02bb65f0..2bce76d83 100755 --- a/test/profiles/profile_syntax.exp +++ b/test/profiles/profile_syntax.exp | |||
@@ -10,7 +10,7 @@ match_max 100000 | |||
10 | send -- "firejail --profile=test.profile\r" | 10 | send -- "firejail --profile=test.profile\r" |
11 | expect { | 11 | expect { |
12 | timeout {puts "TESTING ERROR 0\n";exit} | 12 | timeout {puts "TESTING ERROR 0\n";exit} |
13 | "Child process initialized" | 13 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
14 | } | 14 | } |
15 | 15 | ||
16 | sleep 2 | 16 | sleep 2 |