aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-10-08 08:40:58 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2015-10-08 08:40:58 -0400
commit8c5254162b0f3f7635f1af29b52a93c021b77c25 (patch)
treefcebaf44fd172fa3b18dea503ce398a4a52373cd /test
parentfixed transmission-qt profile (diff)
downloadfirejail-8c5254162b0f3f7635f1af29b52a93c021b77c25.tar.gz
firejail-8c5254162b0f3f7635f1af29b52a93c021b77c25.tar.zst
firejail-8c5254162b0f3f7635f1af29b52a93c021b77c25.zip
fixed transmission-qt.profile
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-profile.exp20
-rwxr-xr-xtest/test.sh8
2 files changed, 28 insertions, 0 deletions
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 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7if { $argc != 1 } {
8 puts "TESTING ERROR: argument missing"
9 puts "Usage: test-profile.exp profile_name"
10 exit
11}
12
13send -- "firejail --profile=$argv\r"
14expect {
15 timeout {puts "TESTING ERROR 0\n";exit}
16 "Child process initialized"
17}
18send -- "exit\r"
19after 100
20puts "\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 @@
2 2
3./chk_config.exp 3./chk_config.exp
4 4
5echo "TESTING: default profiles installed in /etc"
6PROFILES=`ls /etc/firejail/*.profile`
7for PROFILE in $PROFILES
8do
9 echo "TESTING: $PROFILE"
10 ./test-profile.exp $PROFILE
11done
12
5./fscheck.sh 13./fscheck.sh
6 14
7echo "TESTING: environment variables" 15echo "TESTING: environment variables"