From 745742f17378cde52591c1aa8e112445022abb2d Mon Sep 17 00:00:00 2001 From: netblue30 Date: Mon, 14 Nov 2016 07:53:22 -0500 Subject: cleanup --- test/root/private.exp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 test/root/private.exp (limited to 'test/root/private.exp') diff --git a/test/root/private.exp b/test/root/private.exp new file mode 100755 index 000000000..4040081ee --- /dev/null +++ b/test/root/private.exp @@ -0,0 +1,33 @@ +#!/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 --private\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Child process initialized" +} +sleep 2 + +send -- "ls -l /home\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "total 0" +} +after 100 + +send -- "ls -l /root\r" +expect { + timeout {puts "TESTING ERROR 2\n";exit} + "total 0" +} +after 100 + +send -- "exit\r" +after 100 +puts "\nall done\n" -- cgit v1.2.3-70-g09d2