From 1fb1bfe20fbde64d769e846b1581ce021d03e864 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 1 Apr 2018 07:48:11 -0400 Subject: testing --- test/utils/profile_print.exp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 test/utils/profile_print.exp (limited to 'test/utils/profile_print.exp') diff --git a/test/utils/profile_print.exp b/test/utils/profile_print.exp new file mode 100755 index 000000000..20d88a264 --- /dev/null +++ b/test/utils/profile_print.exp @@ -0,0 +1,27 @@ +#!/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 --name=ftest\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Child process initialized" +} +after 100 + +spawn $env(SHELL) +send -- "firejail --profile.print=ftest\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "/etc/firejail/default.profile" +} + + +after 100 +puts "all done\n" -- cgit v1.2.3-70-g09d2