From 83f626d79489985152156eee6ecca52c7da8b5ba Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 24 Apr 2016 06:41:28 -0400 Subject: testing --- test/utils/trace.exp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test/utils/trace.exp') diff --git a/test/utils/trace.exp b/test/utils/trace.exp index 21dd6a559..c08925101 100755 --- a/test/utils/trace.exp +++ b/test/utils/trace.exp @@ -1,4 +1,7 @@ #!/usr/bin/expect -f +# This file is part of Firejail project +# Copyright (C) 2014-2016 Firejail Authors +# License GPL v2 set timeout 30 spawn $env(SHELL) @@ -90,5 +93,20 @@ expect { } sleep 1 +send -- "firejail --trace\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Child process initialized" +} +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "bash:open /dev/tty" {puts "64bit\n"} + "bash:open64 /dev/tty" {puts "32bit\n"} +} +expect { + timeout {puts "TESTING ERROR 3\n";exit} + "bash:access /etc/terminfo/x/xterm" {puts "debian\n"} + "bash:access /usr/share/terminfo/x/xterm" {puts "arch\n"} +} puts "\nall done\n" -- cgit v1.2.3-70-g09d2