summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-02-21 08:46:37 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-02-21 08:46:37 -0500
commitbd5f96b1f000d995a712926f3e02aa11a0fb1679 (patch)
treeadc3cc282089624947f0ab62ba4f157436bc081e /test
parentmoved .config/dconf handling from epiphany and polari profiles into whitelist... (diff)
downloadfirejail-bd5f96b1f000d995a712926f3e02aa11a0fb1679.tar.gz
firejail-bd5f96b1f000d995a712926f3e02aa11a0fb1679.tar.zst
firejail-bd5f96b1f000d995a712926f3e02aa11a0fb1679.zip
testing
Diffstat (limited to 'test')
-rwxr-xr-xtest/option-join2.exp39
-rwxr-xr-xtest/option-join3.exp39
-rwxr-xr-xtest/test.sh6
3 files changed, 84 insertions, 0 deletions
diff --git a/test/option-join2.exp b/test/option-join2.exp
new file mode 100755
index 000000000..630b62d9e
--- /dev/null
+++ b/test/option-join2.exp
@@ -0,0 +1,39 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --name=\"svn testing\"\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized"
11}
12sleep 3
13
14spawn $env(SHELL)
15send -- "firejail --join=\"svn testing\";pwd\r"
16expect {
17 timeout {puts "TESTING ERROR 1\n";exit}
18 "Switching to pid"
19}
20sleep 1
21
22
23spawn $env(SHELL)
24send -- "firejail --shutdown=\"svn testing\";pwd\r"
25expect {
26 timeout {puts "TESTING ERROR 3\n";exit}
27 "home"
28}
29sleep 1
30
31send -- "firejail --list;pwd\r"
32expect {
33 timeout {puts "TESTING ERROR 4\n";exit}
34 "svn testing" {puts "TESTING ERROR 5\n";exit}
35 "home"
36}
37sleep 1
38
39puts "\nall done\n"
diff --git a/test/option-join3.exp b/test/option-join3.exp
new file mode 100755
index 000000000..aa8a445df
--- /dev/null
+++ b/test/option-join3.exp
@@ -0,0 +1,39 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --name=svn\\ testing\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized"
11}
12sleep 3
13
14spawn $env(SHELL)
15send -- "firejail --join=svn\\ testing;pwd\r"
16expect {
17 timeout {puts "TESTING ERROR 1\n";exit}
18 "Switching to pid"
19}
20sleep 1
21
22
23spawn $env(SHELL)
24send -- "firejail --shutdown=svn\\ testing;pwd\r"
25expect {
26 timeout {puts "TESTING ERROR 3\n";exit}
27 "home"
28}
29sleep 1
30
31send -- "firejail --list;pwd\r"
32expect {
33 timeout {puts "TESTING ERROR 4\n";exit}
34 "svn testing" {puts "TESTING ERROR 5\n";exit}
35 "home"
36}
37sleep 1
38
39puts "\nall done\n"
diff --git a/test/test.sh b/test/test.sh
index 93e38edfb..ddb8431c8 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -105,6 +105,12 @@ echo "TESTING: shutdown (option_shutdown.exp)"
105echo "TESTING: join (opton-join.exp)" 105echo "TESTING: join (opton-join.exp)"
106./option-join.exp 106./option-join.exp
107 107
108echo "TESTING: join2 (opton-join2.exp)"
109./option-join2.exp
110
111echo "TESTING: join3 (opton-join3.exp)"
112./option-join3.exp
113
108echo "TESTING: join profile (option-join-profile.exp)" 114echo "TESTING: join profile (option-join-profile.exp)"
109./option-join-profile.exp 115./option-join-profile.exp
110 116