From c729d5927d5db964e71bfe30a269acf26786fef7 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sat, 23 Apr 2016 20:35:52 -0400 Subject: testing --- test/utils/join2.exp | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100755 test/utils/join2.exp (limited to 'test/utils/join2.exp') diff --git a/test/utils/join2.exp b/test/utils/join2.exp new file mode 100755 index 000000000..749e8900f --- /dev/null +++ b/test/utils/join2.exp @@ -0,0 +1,42 @@ +#!/usr/bin/expect -f +# This file is part of Firejail project +# Copyright (C) 2014-2016 Firejail Authors +# License GPL v2 + +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-54-g00ecf