summaryrefslogtreecommitdiffstats
path: root/test/environment
diff options
context:
space:
mode:
authorLibravatar Reiner Herrmann <reiner@reiner-h.de>2016-04-28 00:02:53 +0200
committerLibravatar Reiner Herrmann <reiner@reiner-h.de>2016-04-28 01:29:07 +0200
commitdbb0b361a3abb95745372ba626c4427277b72ccc (patch)
tree81beb5d2d2408c1081c566bb11149cf15e007a11 /test/environment
parenttesting (diff)
downloadfirejail-dbb0b361a3abb95745372ba626c4427277b72ccc.tar.gz
firejail-dbb0b361a3abb95745372ba626c4427277b72ccc.tar.zst
firejail-dbb0b361a3abb95745372ba626c4427277b72ccc.zip
Make some tests more robust
Diffstat (limited to 'test/environment')
-rwxr-xr-xtest/environment/csh.exp1
-rwxr-xr-xtest/environment/dash.exp1
-rwxr-xr-xtest/environment/environment.sh10
-rwxr-xr-xtest/environment/nice.exp8
-rwxr-xr-xtest/environment/rlimit-profile.exp1
-rwxr-xr-xtest/environment/rlimit.exp1
-rwxr-xr-xtest/environment/zsh.exp1
7 files changed, 17 insertions, 6 deletions
diff --git a/test/environment/csh.exp b/test/environment/csh.exp
index 10ad3607e..7fd69ed43 100755
--- a/test/environment/csh.exp
+++ b/test/environment/csh.exp
@@ -4,6 +4,7 @@
4# License GPL v2 4# License GPL v2
5 5
6set timeout 10 6set timeout 10
7cd /home
7spawn $env(SHELL) 8spawn $env(SHELL)
8match_max 100000 9match_max 100000
9 10
diff --git a/test/environment/dash.exp b/test/environment/dash.exp
index f5a60719e..d727d302e 100755
--- a/test/environment/dash.exp
+++ b/test/environment/dash.exp
@@ -1,6 +1,7 @@
1#!/usr/bin/expect -f 1#!/usr/bin/expect -f
2 2
3set timeout 10 3set timeout 10
4cd /home
4spawn $env(SHELL) 5spawn $env(SHELL)
5match_max 100000 6match_max 100000
6 7
diff --git a/test/environment/environment.sh b/test/environment/environment.sh
index ede5735c6..9164b43a2 100755
--- a/test/environment/environment.sh
+++ b/test/environment/environment.sh
@@ -51,8 +51,14 @@ echo "TESTING: firejail in firejail - single sandbox (test/environment/firejail-
51echo "TESTING: firejail in firejail - force new sandbox (test/environment/firejail-in-firejail2.exp)" 51echo "TESTING: firejail in firejail - force new sandbox (test/environment/firejail-in-firejail2.exp)"
52./firejail-in-firejail2.exp 52./firejail-in-firejail2.exp
53 53
54echo "TESTING: sound (test/environment/sound.exp)" 54which aplay
55./sound.exp 55if [ "$?" -eq 0 ];
56then
57 echo "TESTING: sound (test/environment/sound.exp)"
58 ./sound.exp
59else
60 echo "TESTING: aplay not found"
61fi
56 62
57echo "TESTING: nice (test/environment/nice.exp)" 63echo "TESTING: nice (test/environment/nice.exp)"
58./nice.exp 64./nice.exp
diff --git a/test/environment/nice.exp b/test/environment/nice.exp
index 7e5731c63..3a5db71c8 100755
--- a/test/environment/nice.exp
+++ b/test/environment/nice.exp
@@ -17,7 +17,7 @@ sleep 1
17send -- "top -b -n 1\r" 17send -- "top -b -n 1\r"
18expect { 18expect {
19 timeout {puts "TESTING ERROR 1\n";exit} 19 timeout {puts "TESTING ERROR 1\n";exit}
20 "netblue" 20 $env(USER)
21} 21}
22expect { 22expect {
23 timeout {puts "TESTING ERROR 2\n";exit} 23 timeout {puts "TESTING ERROR 2\n";exit}
@@ -29,7 +29,7 @@ expect {
29} 29}
30expect { 30expect {
31 timeout {puts "TESTING ERROR 4\n";exit} 31 timeout {puts "TESTING ERROR 4\n";exit}
32 "netblu" 32 $env(USER)
33} 33}
34expect { 34expect {
35 timeout {puts "TESTING ERROR 5\n";exit} 35 timeout {puts "TESTING ERROR 5\n";exit}
@@ -54,7 +54,7 @@ sleep 1
54send -- "top -b -n 1\r" 54send -- "top -b -n 1\r"
55expect { 55expect {
56 timeout {puts "TESTING ERROR 11\n";exit} 56 timeout {puts "TESTING ERROR 11\n";exit}
57 "netblue" 57 $env(USER)
58} 58}
59expect { 59expect {
60 timeout {puts "TESTING ERROR 12\n";exit} 60 timeout {puts "TESTING ERROR 12\n";exit}
@@ -66,7 +66,7 @@ expect {
66} 66}
67expect { 67expect {
68 timeout {puts "TESTING ERROR 14\n";exit} 68 timeout {puts "TESTING ERROR 14\n";exit}
69 "netblu" 69 $env(USER)
70} 70}
71expect { 71expect {
72 timeout {puts "TESTING ERROR 15\n";exit} 72 timeout {puts "TESTING ERROR 15\n";exit}
diff --git a/test/environment/rlimit-profile.exp b/test/environment/rlimit-profile.exp
index 7d2637444..aed634201 100755
--- a/test/environment/rlimit-profile.exp
+++ b/test/environment/rlimit-profile.exp
@@ -1,6 +1,7 @@
1#!/usr/bin/expect -f 1#!/usr/bin/expect -f
2 2
3set timeout 10 3set timeout 10
4cd /home
4spawn $env(SHELL) 5spawn $env(SHELL)
5match_max 100000 6match_max 100000
6 7
diff --git a/test/environment/rlimit.exp b/test/environment/rlimit.exp
index 17d2bd9d1..680520b33 100755
--- a/test/environment/rlimit.exp
+++ b/test/environment/rlimit.exp
@@ -1,6 +1,7 @@
1#!/usr/bin/expect -f 1#!/usr/bin/expect -f
2 2
3set timeout 10 3set timeout 10
4cd /home
4spawn $env(SHELL) 5spawn $env(SHELL)
5match_max 100000 6match_max 100000
6 7
diff --git a/test/environment/zsh.exp b/test/environment/zsh.exp
index 2604b2be5..96fa84dfe 100755
--- a/test/environment/zsh.exp
+++ b/test/environment/zsh.exp
@@ -4,6 +4,7 @@
4# License GPL v2 4# License GPL v2
5 5
6set timeout 10 6set timeout 10
7cd /home
7spawn $env(SHELL) 8spawn $env(SHELL)
8match_max 100000 9match_max 100000
9 10