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/option_tree.exp | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100755 test/option_tree.exp (limited to 'test/option_tree.exp') diff --git a/test/option_tree.exp b/test/option_tree.exp new file mode 100755 index 000000000..1841907d1 --- /dev/null +++ b/test/option_tree.exp @@ -0,0 +1,60 @@ +#!/usr/bin/expect -f + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +send -- "firejail\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Child process initialized" +} +after 100 + +spawn $env(SHELL) +send -- "firejail\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "Child process initialized" +} +after 100 + +spawn $env(SHELL) +send -- "firejail\r" +expect { + timeout {puts "TESTING ERROR 2\n";exit} + "Child process initialized" +} +sleep 1 + +spawn $env(SHELL) +send -- "firejail --tree\r" +expect { + timeout {puts "TESTING ERROR 3\n";exit} + ":firejail" +} +expect { + timeout {puts "TESTING ERROR 3.1\n";exit} + ":/bin/bash" +} +expect { + timeout {puts "TESTING ERROR 4\n";exit} + ":firejail" +} +expect { + timeout {puts "TESTING ERROR 4.1\n";exit} + ":/bin/bash" +} +expect { + timeout {puts "TESTING ERROR 5\n";exit} + ":firejail" +} +expect { + timeout {puts "TESTING ERROR 5.1\n";exit} + ":/bin/bash" +} +after 100 + + +puts "\n" + -- cgit v1.2.3-54-g00ecf