From bd5f96b1f000d995a712926f3e02aa11a0fb1679 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 21 Feb 2016 08:46:37 -0500 Subject: testing --- test/option-join3.exp | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 test/option-join3.exp (limited to 'test/option-join3.exp') diff --git a/test/option-join3.exp b/test/option-join3.exp new file mode 100755 index 000000000..aa8a445df --- /dev/null +++ b/test/option-join3.exp @@ -0,0 +1,39 @@ +#!/usr/bin/expect -f + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +send -- "firejail --name=svn\\ testing\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Child process initialized" +} +sleep 3 + +spawn $env(SHELL) +send -- "firejail --join=svn\\ testing;pwd\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "Switching to pid" +} +sleep 1 + + +spawn $env(SHELL) +send -- "firejail --shutdown=svn\\ testing;pwd\r" +expect { + timeout {puts "TESTING ERROR 3\n";exit} + "home" +} +sleep 1 + +send -- "firejail --list;pwd\r" +expect { + timeout {puts "TESTING ERROR 4\n";exit} + "svn testing" {puts "TESTING ERROR 5\n";exit} + "home" +} +sleep 1 + +puts "\nall done\n" -- cgit v1.2.3-70-g09d2