aboutsummaryrefslogtreecommitdiffstats
path: root/test/environment/extract_command.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-06-13 12:04:35 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-06-13 12:04:35 -0400
commit3cc86927c990f85326d4b6f6b8b9d8ee9d8613e5 (patch)
tree10aa4fa9e2827a08df2441b1442f40aeba4a6855 /test/environment/extract_command.exp
parentconfigure.ac fixes (diff)
downloadfirejail-3cc86927c990f85326d4b6f6b8b9d8ee9d8613e5.tar.gz
firejail-3cc86927c990f85326d4b6f6b8b9d8ee9d8613e5.tar.zst
firejail-3cc86927c990f85326d4b6f6b8b9d8ee9d8613e5.zip
testing
Diffstat (limited to 'test/environment/extract_command.exp')
-rwxr-xr-xtest/environment/extract_command.exp23
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
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --debug ls -al\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Reading profile /etc/firejail/default.profile"
11}
12expect {
13 timeout {puts "TESTING ERROR 2\n";exit}
14 "Child process initialized"
15}
16expect {
17 timeout {puts "TESTING ERROR 2\n";exit}
18 "Parent is shutting down, bye"
19}
20after 100
21
22puts "\nall done\n"
23