aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-12-17 12:35:15 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2015-12-17 12:35:15 -0500
commit811af13d5120e85d1e0cb2cbc9ea0b60c0350af7 (patch)
treefc929d93a2852c18e20bcc938e5cdebef1f1af71 /test
parenttesting (diff)
downloadfirejail-811af13d5120e85d1e0cb2cbc9ea0b60c0350af7.tar.gz
firejail-811af13d5120e85d1e0cb2cbc9ea0b60c0350af7.tar.zst
firejail-811af13d5120e85d1e0cb2cbc9ea0b60c0350af7.zip
added --force option
Diffstat (limited to 'test')
-rwxr-xr-xtest/firejail-in-firejail.exp2
-rwxr-xr-xtest/firejail-in-firejail2.exp21
-rwxr-xr-xtest/test.sh5
3 files changed, 26 insertions, 2 deletions
diff --git a/test/firejail-in-firejail.exp b/test/firejail-in-firejail.exp
index 59a94a7fb..5ba18d1fa 100755
--- a/test/firejail-in-firejail.exp
+++ b/test/firejail-in-firejail.exp
@@ -18,4 +18,4 @@ expect {
18} 18}
19sleep 1 19sleep 1
20 20
21puts "\n" 21puts "\nall done\n"
diff --git a/test/firejail-in-firejail2.exp b/test/firejail-in-firejail2.exp
new file mode 100755
index 000000000..b0fed0dae
--- /dev/null
+++ b/test/firejail-in-firejail2.exp
@@ -0,0 +1,21 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --noprofile\r"
8expect {
9 timeout {puts "TESTING ERROR 1\n";exit}
10 "Child process initialized"
11}
12sleep 1
13
14send -- "firejail --force\r"
15expect {
16 timeout {puts "TESTING ERROR 1\n";exit}
17 "Child process initialized"
18}
19sleep 1
20
21puts "\nall done\n"
diff --git a/test/test.sh b/test/test.sh
index 78fc7b974..ab288cbeb 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -98,9 +98,12 @@ echo "TESTING: join"
98echo "TESTING: join profile" 98echo "TESTING: join profile"
99./option-join-profile.exp 99./option-join-profile.exp
100 100
101echo "TESTING: firejail in firejail" 101echo "TESTING: firejail in firejail - single sandbox"
102./firejail-in-firejail.exp 102./firejail-in-firejail.exp
103 103
104echo "TESTING: firejail in firejail - force new sandbox"
105./firejail-in-firejail2.exp
106
104echo "TESTING: chroot overlay" 107echo "TESTING: chroot overlay"
105./option_chroot_overlay.exp 108./option_chroot_overlay.exp
106 109