aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/shutdown.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-23 20:35:52 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-23 20:35:52 -0400
commitc729d5927d5db964e71bfe30a269acf26786fef7 (patch)
tree192c74fa0dae843fd2b59044df6e0c78925f424a /test/utils/shutdown.exp
parentmake testing (diff)
downloadfirejail-c729d5927d5db964e71bfe30a269acf26786fef7.tar.gz
firejail-c729d5927d5db964e71bfe30a269acf26786fef7.tar.zst
firejail-c729d5927d5db964e71bfe30a269acf26786fef7.zip
testing
Diffstat (limited to 'test/utils/shutdown.exp')
-rwxr-xr-xtest/utils/shutdown.exp33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/utils/shutdown.exp b/test/utils/shutdown.exp
new file mode 100755
index 000000000..135f42d28
--- /dev/null
+++ b/test/utils/shutdown.exp
@@ -0,0 +1,33 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2016 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail --name=shutdowntesting\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized"
14}
15sleep 3
16
17spawn $env(SHELL)
18send -- "firejail --shutdown=shutdowntesting;pwd\r"
19expect {
20 timeout {puts "TESTING ERROR 4\n";exit}
21 "home"
22}
23sleep 1
24
25send -- "firejail --list;pwd\r"
26expect {
27 timeout {puts "TESTING ERROR 5\n";exit}
28 "shutdowntesting" {puts "TESTING ERROR 6\n";exit}
29 "home"
30}
31sleep 1
32
33puts "\nalldone\n"