From 5c495665ae5c8a258579111ea24229f1bde52b49 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sat, 12 Nov 2016 08:53:08 -0500 Subject: testing --- test/fs/fs.sh | 3 +++ test/fs/private-homedir.exp | 25 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100755 test/fs/private-homedir.exp (limited to 'test/fs') diff --git a/test/fs/fs.sh b/test/fs/fs.sh index 0b9cf977e..efbf505ee 100755 --- a/test/fs/fs.sh +++ b/test/fs/fs.sh @@ -43,6 +43,9 @@ echo "TESTING: private home (test/fs/private-home.exp)" echo "TESTING: private home dir (test/fs/private-home-dir.exp)" ./private-home-dir.exp +echo "TESTING: private home dir same as user home (test/fs/private-homedir.exp)" +./private-homedir.exp + echo "TESTING: private-etc (test/fs/private-etc.exp)" ./private-etc.exp diff --git a/test/fs/private-homedir.exp b/test/fs/private-homedir.exp new file mode 100755 index 000000000..35085948a --- /dev/null +++ b/test/fs/private-homedir.exp @@ -0,0 +1,25 @@ +#!/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 1\n";exit} + "Child process initialized" +} +after 100 + +send -- "ls -l ~\r" +expect { + timeout {puts "TESTING ERROR 2\n";exit} + "total 0" +} +after 100 + +puts "\nall done\n" + -- cgit v1.2.3-54-g00ecf