diff options
Diffstat (limited to 'test/utils/trace.exp')
-rwxr-xr-x | test/utils/trace.exp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/utils/trace.exp b/test/utils/trace.exp index 21dd6a559..c08925101 100755 --- a/test/utils/trace.exp +++ b/test/utils/trace.exp | |||
@@ -1,4 +1,7 @@ | |||
1 | #!/usr/bin/expect -f | 1 | #!/usr/bin/expect -f |
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2016 Firejail Authors | ||
4 | # License GPL v2 | ||
2 | 5 | ||
3 | set timeout 30 | 6 | set timeout 30 |
4 | spawn $env(SHELL) | 7 | spawn $env(SHELL) |
@@ -90,5 +93,20 @@ expect { | |||
90 | } | 93 | } |
91 | sleep 1 | 94 | sleep 1 |
92 | 95 | ||
96 | send -- "firejail --trace\r" | ||
97 | expect { | ||
98 | timeout {puts "TESTING ERROR 0\n";exit} | ||
99 | "Child process initialized" | ||
100 | } | ||
101 | expect { | ||
102 | timeout {puts "TESTING ERROR 1\n";exit} | ||
103 | "bash:open /dev/tty" {puts "64bit\n"} | ||
104 | "bash:open64 /dev/tty" {puts "32bit\n"} | ||
105 | } | ||
106 | expect { | ||
107 | timeout {puts "TESTING ERROR 3\n";exit} | ||
108 | "bash:access /etc/terminfo/x/xterm" {puts "debian\n"} | ||
109 | "bash:access /usr/share/terminfo/x/xterm" {puts "arch\n"} | ||
110 | } | ||
93 | 111 | ||
94 | puts "\nall done\n" | 112 | puts "\nall done\n" |