aboutsummaryrefslogtreecommitdiffstats
path: root/test/option-shutdown.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/option-shutdown.exp')
-rwxr-xr-xtest/option-shutdown.exp30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/option-shutdown.exp b/test/option-shutdown.exp
new file mode 100755
index 000000000..260a5b84f
--- /dev/null
+++ b/test/option-shutdown.exp
@@ -0,0 +1,30 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --name=svntesting\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized"
11}
12sleep 3
13
14spawn $env(SHELL)
15send -- "firejail --shutdown=svntesting;pwd\r"
16expect {
17 timeout {puts "TESTING ERROR 4\n";exit}
18 "home"
19}
20sleep 1
21
22send -- "firejail --list;pwd\r"
23expect {
24 timeout {puts "TESTING ERROR 5\n";exit}
25 "svntesting" {puts "TESTING ERROR 6\n";exit}
26 "home"
27}
28sleep 1
29
30puts "\n"