From 020c5449036c461ea1829e854da43429322059d6 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 24 Apr 2016 06:32:15 -0400 Subject: testing --- test/environment/firejail-in-firejail.exp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 test/environment/firejail-in-firejail.exp (limited to 'test/environment/firejail-in-firejail.exp') diff --git a/test/environment/firejail-in-firejail.exp b/test/environment/firejail-in-firejail.exp new file mode 100755 index 000000000..7e7f4fd17 --- /dev/null +++ b/test/environment/firejail-in-firejail.exp @@ -0,0 +1,24 @@ +#!/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\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "Child process initialized" +} +sleep 1 + +send -- "firejail\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "Warning: an existing sandbox was detected" +} +sleep 1 + +puts "\nall done\n" -- cgit v1.2.3-70-g09d2