From 1fb1bfe20fbde64d769e846b1581ce021d03e864 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 1 Apr 2018 07:48:11 -0400 Subject: testing --- test/utils/command.exp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 test/utils/command.exp (limited to 'test/utils/command.exp') diff --git a/test/utils/command.exp b/test/utils/command.exp new file mode 100755 index 000000000..3b18540db --- /dev/null +++ b/test/utils/command.exp @@ -0,0 +1,23 @@ +#!/usr/bin/expect -f +# This file is part of Firejail project +# Copyright (C) 2014-2018 Firejail Authors +# License GPL v2 + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +send -- "firejail --quiet --private-etc=passwd,group -c ls -al /etc\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "cron" {puts "TESTING ERROR 2\n";exit} + "group" +} +expect { + timeout {puts "TESTING ERROR 3\n";exit} + "passwd" +} + + +after 100 +puts "\nall done\n" -- cgit v1.2.3-70-g09d2