From c729d5927d5db964e71bfe30a269acf26786fef7 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sat, 23 Apr 2016 20:35:52 -0400 Subject: testing --- test/utils/shutdown.exp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 test/utils/shutdown.exp (limited to 'test/utils/shutdown.exp') diff --git a/test/utils/shutdown.exp b/test/utils/shutdown.exp new file mode 100755 index 000000000..135f42d28 --- /dev/null +++ b/test/utils/shutdown.exp @@ -0,0 +1,33 @@ +#!/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=shutdowntesting\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Child process initialized" +} +sleep 3 + +spawn $env(SHELL) +send -- "firejail --shutdown=shutdowntesting;pwd\r" +expect { + timeout {puts "TESTING ERROR 4\n";exit} + "home" +} +sleep 1 + +send -- "firejail --list;pwd\r" +expect { + timeout {puts "TESTING ERROR 5\n";exit} + "shutdowntesting" {puts "TESTING ERROR 6\n";exit} + "home" +} +sleep 1 + +puts "\nalldone\n" -- cgit v1.2.3-70-g09d2