From fc116c063938d5e141d5fbc38e8013d9832ef315 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 15 Sep 2016 09:59:11 -0400 Subject: testing --- test/root/option_bind_file.exp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 test/root/option_bind_file.exp (limited to 'test/root/option_bind_file.exp') diff --git a/test/root/option_bind_file.exp b/test/root/option_bind_file.exp new file mode 100755 index 000000000..8926e0391 --- /dev/null +++ b/test/root/option_bind_file.exp @@ -0,0 +1,22 @@ +#!/usr/bin/expect -f + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +send -- "firejail --bind=tmpfile,/etc/passwd\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Child process initialized" +} +sleep 1 + +send -- "cat /etc/passwd;pwd\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "hello" +} +sleep 1 + +puts "\n" + -- cgit v1.2.3-70-g09d2