From 811af13d5120e85d1e0cb2cbc9ea0b60c0350af7 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 17 Dec 2015 12:35:15 -0500 Subject: added --force option --- test/firejail-in-firejail.exp | 2 +- test/firejail-in-firejail2.exp | 21 +++++++++++++++++++++ test/test.sh | 5 ++++- 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100755 test/firejail-in-firejail2.exp (limited to 'test') 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 { } sleep 1 -puts "\n" +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 @@ +#!/usr/bin/expect -f + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +send -- "firejail --noprofile\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "Child process initialized" +} +sleep 1 + +send -- "firejail --force\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "Child process initialized" +} +sleep 1 + +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" echo "TESTING: join profile" ./option-join-profile.exp -echo "TESTING: firejail in firejail" +echo "TESTING: firejail in firejail - single sandbox" ./firejail-in-firejail.exp +echo "TESTING: firejail in firejail - force new sandbox" +./firejail-in-firejail2.exp + echo "TESTING: chroot overlay" ./option_chroot_overlay.exp -- cgit v1.2.3-54-g00ecf