From 1379851360349d6617ad32944a25ee5e2bb74fc2 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sat, 8 Aug 2015 19:12:30 -0400 Subject: Baseline firejail 0.9.28 --- test/doubledash.exp | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100755 test/doubledash.exp (limited to 'test/doubledash.exp') diff --git a/test/doubledash.exp b/test/doubledash.exp new file mode 100755 index 000000000..3c8a42471 --- /dev/null +++ b/test/doubledash.exp @@ -0,0 +1,60 @@ +#!/usr/bin/expect -f + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +send -- "firejail -- ls -- -testdir\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "Child process initialized" +} +expect { + timeout {puts "TESTING ERROR 2\n";exit} + "ttt" +} +expect { + timeout {puts "TESTING ERROR 3\n";exit} + "parent is shutting down" +} +sleep 1 + + +send -- "firejail --name=testing -- -testdir/bash\r" +expect { + timeout {puts "TESTING ERROR 4\n";exit} + "Child process initialized" +} +sleep 3 + +spawn $env(SHELL) +send -- "firejail --join=testing -- -testdir/bash\r" +expect { + timeout {puts "TESTING ERROR 5\n";exit} + "the first child process inside the sandbox" +} +sleep 3 + +spawn $env(SHELL) +send -- "firejail --list;pwd\r" +expect { + timeout {puts "TESTING ERROR 6\n";exit} + "name=testing" +} +expect { + timeout {puts "TESTING ERROR 7\n";exit} + "home" +} +send -- "firejail --list;pwd\r" +expect { + timeout {puts "TESTING ERROR 8 (join)\n";exit} + "join=testing" +} +expect { + timeout {puts "TESTING ERROR 9\n";exit} + "home" +} + +sleep 1 + +puts "\n" -- cgit v1.2.3-54-g00ecf