From 8c5254162b0f3f7635f1af29b52a93c021b77c25 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 8 Oct 2015 08:40:58 -0400 Subject: fixed transmission-qt.profile --- test/test-profile.exp | 20 ++++++++++++++++++++ test/test.sh | 8 ++++++++ 2 files changed, 28 insertions(+) create mode 100755 test/test-profile.exp (limited to 'test') diff --git a/test/test-profile.exp b/test/test-profile.exp new file mode 100755 index 000000000..89fe9c10a --- /dev/null +++ b/test/test-profile.exp @@ -0,0 +1,20 @@ +#!/usr/bin/expect -f + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +if { $argc != 1 } { + puts "TESTING ERROR: argument missing" + puts "Usage: test-profile.exp profile_name" + exit +} + +send -- "firejail --profile=$argv\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Child process initialized" +} +send -- "exit\r" +after 100 +puts "\n" diff --git a/test/test.sh b/test/test.sh index 61dd58f9e..6f198cd52 100755 --- a/test/test.sh +++ b/test/test.sh @@ -2,6 +2,14 @@ ./chk_config.exp +echo "TESTING: default profiles installed in /etc" +PROFILES=`ls /etc/firejail/*.profile` +for PROFILE in $PROFILES +do + echo "TESTING: $PROFILE" + ./test-profile.exp $PROFILE +done + ./fscheck.sh echo "TESTING: environment variables" -- cgit v1.2.3-54-g00ecf