diff options
author | netblue30 <netblue30@yahoo.com> | 2016-06-13 12:04:35 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-06-13 12:04:35 -0400 |
commit | 3cc86927c990f85326d4b6f6b8b9d8ee9d8613e5 (patch) | |
tree | 10aa4fa9e2827a08df2441b1442f40aeba4a6855 /test/environment/extract_command.exp | |
parent | configure.ac fixes (diff) | |
download | firejail-3cc86927c990f85326d4b6f6b8b9d8ee9d8613e5.tar.gz firejail-3cc86927c990f85326d4b6f6b8b9d8ee9d8613e5.tar.zst firejail-3cc86927c990f85326d4b6f6b8b9d8ee9d8613e5.zip |
testing
Diffstat (limited to 'test/environment/extract_command.exp')
-rwxr-xr-x | test/environment/extract_command.exp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/environment/extract_command.exp b/test/environment/extract_command.exp new file mode 100755 index 000000000..266f66ff5 --- /dev/null +++ b/test/environment/extract_command.exp | |||
@@ -0,0 +1,23 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --debug ls -al\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Reading profile /etc/firejail/default.profile" | ||
11 | } | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 2\n";exit} | ||
14 | "Child process initialized" | ||
15 | } | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 2\n";exit} | ||
18 | "Parent is shutting down, bye" | ||
19 | } | ||
20 | after 100 | ||
21 | |||
22 | puts "\nall done\n" | ||
23 | |||