summaryrefslogtreecommitdiffstats
path: root/test/utils/trace2.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/utils/trace2.exp')
-rwxr-xr-xtest/utils/trace2.exp25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/utils/trace2.exp b/test/utils/trace2.exp
new file mode 100755
index 000000000..38038b58e
--- /dev/null
+++ b/test/utils/trace2.exp
@@ -0,0 +1,25 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --trace\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized"
11}
12expect {
13 timeout {puts "TESTING ERROR 1\n";exit}
14 "bash:open /dev/tty" {puts "64bit\n"}
15 "bash:open64 /dev/tty" {puts "32bit\n"}
16}
17expect {
18 timeout {puts "TESTING ERROR 3\n";exit}
19 "bash:access /etc/terminfo/x/xterm" {puts "debian\n"}
20 "bash:access /usr/share/terminfo/x/xterm" {puts "arch\n"}
21}
22
23sleep 1
24
25puts "\nall done\n"