From d8984ed12a0cb7cef4376f544ac19b6e71bb213c Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 10 Nov 2016 08:23:58 -0500 Subject: testing --- test/fs/mkdir_mkfile.exp | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 test/fs/mkdir_mkfile.exp (limited to 'test/fs/mkdir_mkfile.exp') diff --git a/test/fs/mkdir_mkfile.exp b/test/fs/mkdir_mkfile.exp new file mode 100755 index 000000000..98163bf77 --- /dev/null +++ b/test/fs/mkdir_mkfile.exp @@ -0,0 +1,46 @@ +#!/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 + + +# testing profile and private +send -- "firejail --private --profile=mkdir_mkfile.profile\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Child process initialized" +} +sleep 1 + +send -- "find ~\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "_firejail_test_file" +} +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "_firejail_test_dir" +} +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "_firejail_test_dir/dir1" +} +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "_firejail_test_dir/dir1/dir2" +} +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "_firejail_test_dir/dir1/dir2/dir3" +} +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "_firejail_test_dir/dir1/dir2/dir3/file1" +} +after 100 + +puts "all done\n" -- cgit v1.2.3-70-g09d2