diff options
author | 2016-04-24 06:37:12 -0400 | |
---|---|---|
committer | 2016-04-24 06:37:12 -0400 | |
commit | 1724b3bd7fd86876b244cbaf3e4e3a1d005b843d (patch) | |
tree | 2831e73514aa7bc67478be0f63e7d22f7c73218f /test/utils/trace2.exp | |
parent | testing (diff) | |
download | firejail-1724b3bd7fd86876b244cbaf3e4e3a1d005b843d.tar.gz firejail-1724b3bd7fd86876b244cbaf3e4e3a1d005b843d.tar.zst firejail-1724b3bd7fd86876b244cbaf3e4e3a1d005b843d.zip |
testing
Diffstat (limited to 'test/utils/trace2.exp')
-rwxr-xr-x | test/utils/trace2.exp | 25 |
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 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --trace\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 | "bash:open /dev/tty" {puts "64bit\n"} | ||
15 | "bash:open64 /dev/tty" {puts "32bit\n"} | ||
16 | } | ||
17 | expect { | ||
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 | |||
23 | sleep 1 | ||
24 | |||
25 | puts "\nall done\n" | ||