diff options
Diffstat (limited to 'test/option-trace.exp')
-rwxr-xr-x | test/option-trace.exp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/option-trace.exp b/test/option-trace.exp new file mode 100755 index 000000000..b8f723fb8 --- /dev/null +++ b/test/option-trace.exp | |||
@@ -0,0 +1,31 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --trace firefox --name=testing\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 1\n";exit} | ||
14 | "command not found" {puts "\nTESTING: not tested, firefox not found\n"; exit} | ||
15 | "1:firefox:open" {puts "\n"} | ||
16 | "1:iceweasel:open" | ||
17 | } | ||
18 | expect { | ||
19 | timeout {puts "TESTING ERROR 2\n";exit} | ||
20 | "1:firefox:access" {puts "\n"} | ||
21 | "1:iceweasel:access" | ||
22 | } | ||
23 | expect { | ||
24 | timeout {puts "TESTING ERROR 3\n";exit} | ||
25 | "1:firefox:connect" {puts "\n"} | ||
26 | "1:iceweasel:connect" | ||
27 | } | ||
28 | |||
29 | sleep 1 | ||
30 | |||
31 | puts "\n" | ||