From 3cc86927c990f85326d4b6f6b8b9d8ee9d8613e5 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Mon, 13 Jun 2016 12:04:35 -0400 Subject: testing --- test/environment/extract_command.exp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 test/environment/extract_command.exp (limited to 'test/environment/extract_command.exp') diff --git a/test/environment/extract_command.exp b/test/environment/extract_command.exp new file mode 100755 index 000000000..266f66ff5 --- /dev/null +++ b/test/environment/extract_command.exp @@ -0,0 +1,23 @@ +#!/usr/bin/expect -f + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +send -- "firejail --debug ls -al\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Reading profile /etc/firejail/default.profile" +} +expect { + timeout {puts "TESTING ERROR 2\n";exit} + "Child process initialized" +} +expect { + timeout {puts "TESTING ERROR 2\n";exit} + "Parent is shutting down, bye" +} +after 100 + +puts "\nall done\n" + -- cgit v1.2.3-54-g00ecf