aboutsummaryrefslogtreecommitdiffstats
path: root/test/option-trace.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-08-28 10:34:38 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2015-08-28 10:34:38 -0400
commit01194ad1e5f38e929cb7fbbbdc4ec0ee92b8b1f2 (patch)
tree73ca26789e3aabe3f1bf0f4a8d6c87b7f0f923bc /test/option-trace.exp
parentfixed thunderbird profile to allow a browser to start (diff)
downloadfirejail-01194ad1e5f38e929cb7fbbbdc4ec0ee92b8b1f2.tar.gz
firejail-01194ad1e5f38e929cb7fbbbdc4ec0ee92b8b1f2.tar.zst
firejail-01194ad1e5f38e929cb7fbbbdc4ec0ee92b8b1f2.zip
testing default.profile
Diffstat (limited to 'test/option-trace.exp')
-rwxr-xr-xtest/option-trace.exp14
1 files changed, 5 insertions, 9 deletions
diff --git a/test/option-trace.exp b/test/option-trace.exp
index b8f723fb8..1d97df9b3 100755
--- a/test/option-trace.exp
+++ b/test/option-trace.exp
@@ -4,28 +4,24 @@ set timeout 10
4spawn $env(SHELL) 4spawn $env(SHELL)
5match_max 100000 5match_max 100000
6 6
7send -- "firejail --trace firefox --name=testing\r" 7send -- "firejail --trace\r"
8expect { 8expect {
9 timeout {puts "TESTING ERROR 0\n";exit} 9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized" 10 "Child process initialized"
11} 11}
12expect { 12expect {
13 timeout {puts "TESTING ERROR 1\n";exit} 13 timeout {puts "TESTING ERROR 1\n";exit}
14 "command not found" {puts "\nTESTING: not tested, firefox not found\n"; exit} 14 "1:bash:open /dev/tty"
15 "1:firefox:open" {puts "\n"}
16 "1:iceweasel:open"
17} 15}
18expect { 16expect {
19 timeout {puts "TESTING ERROR 2\n";exit} 17 timeout {puts "TESTING ERROR 2\n";exit}
20 "1:firefox:access" {puts "\n"} 18 "1:bash:fopen /etc/passwd"
21 "1:iceweasel:access"
22} 19}
23expect { 20expect {
24 timeout {puts "TESTING ERROR 3\n";exit} 21 timeout {puts "TESTING ERROR 3\n";exit}
25 "1:firefox:connect" {puts "\n"} 22 "1:bash:access /etc/terminfo/x/xterm"
26 "1:iceweasel:connect"
27} 23}
28 24
29sleep 1 25sleep 1
30 26
31puts "\n" 27puts "all done\n"