diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/firejail-in-firejail.exp | 2 | ||||
-rwxr-xr-x | test/firejail-in-firejail2.exp | 21 | ||||
-rwxr-xr-x | test/test.sh | 5 |
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 | } |
19 | sleep 1 | 19 | sleep 1 |
20 | 20 | ||
21 | puts "\n" | 21 | puts "\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 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --noprofile\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 1\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | sleep 1 | ||
13 | |||
14 | send -- "firejail --force\r" | ||
15 | expect { | ||
16 | timeout {puts "TESTING ERROR 1\n";exit} | ||
17 | "Child process initialized" | ||
18 | } | ||
19 | sleep 1 | ||
20 | |||
21 | puts "\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" | |||
98 | echo "TESTING: join profile" | 98 | echo "TESTING: join profile" |
99 | ./option-join-profile.exp | 99 | ./option-join-profile.exp |
100 | 100 | ||
101 | echo "TESTING: firejail in firejail" | 101 | echo "TESTING: firejail in firejail - single sandbox" |
102 | ./firejail-in-firejail.exp | 102 | ./firejail-in-firejail.exp |
103 | 103 | ||
104 | echo "TESTING: firejail in firejail - force new sandbox" | ||
105 | ./firejail-in-firejail2.exp | ||
106 | |||
104 | echo "TESTING: chroot overlay" | 107 | echo "TESTING: chroot overlay" |
105 | ./option_chroot_overlay.exp | 108 | ./option_chroot_overlay.exp |
106 | 109 | ||