diff options
Diffstat (limited to 'test/environment')
-rwxr-xr-x | test/environment/csh.exp | 1 | ||||
-rwxr-xr-x | test/environment/dash.exp | 1 | ||||
-rwxr-xr-x | test/environment/environment.sh | 10 | ||||
-rwxr-xr-x | test/environment/nice.exp | 8 | ||||
-rwxr-xr-x | test/environment/rlimit-profile.exp | 1 | ||||
-rwxr-xr-x | test/environment/rlimit.exp | 1 | ||||
-rwxr-xr-x | test/environment/zsh.exp | 1 |
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 | ||
6 | set timeout 10 | 6 | set timeout 10 |
7 | cd /home | ||
7 | spawn $env(SHELL) | 8 | spawn $env(SHELL) |
8 | match_max 100000 | 9 | match_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 | ||
3 | set timeout 10 | 3 | set timeout 10 |
4 | cd /home | ||
4 | spawn $env(SHELL) | 5 | spawn $env(SHELL) |
5 | match_max 100000 | 6 | match_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- | |||
51 | echo "TESTING: firejail in firejail - force new sandbox (test/environment/firejail-in-firejail2.exp)" | 51 | echo "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 | ||
54 | echo "TESTING: sound (test/environment/sound.exp)" | 54 | which aplay |
55 | ./sound.exp | 55 | if [ "$?" -eq 0 ]; |
56 | then | ||
57 | echo "TESTING: sound (test/environment/sound.exp)" | ||
58 | ./sound.exp | ||
59 | else | ||
60 | echo "TESTING: aplay not found" | ||
61 | fi | ||
56 | 62 | ||
57 | echo "TESTING: nice (test/environment/nice.exp)" | 63 | echo "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 | |||
17 | send -- "top -b -n 1\r" | 17 | send -- "top -b -n 1\r" |
18 | expect { | 18 | expect { |
19 | timeout {puts "TESTING ERROR 1\n";exit} | 19 | timeout {puts "TESTING ERROR 1\n";exit} |
20 | "netblue" | 20 | $env(USER) |
21 | } | 21 | } |
22 | expect { | 22 | expect { |
23 | timeout {puts "TESTING ERROR 2\n";exit} | 23 | timeout {puts "TESTING ERROR 2\n";exit} |
@@ -29,7 +29,7 @@ expect { | |||
29 | } | 29 | } |
30 | expect { | 30 | expect { |
31 | timeout {puts "TESTING ERROR 4\n";exit} | 31 | timeout {puts "TESTING ERROR 4\n";exit} |
32 | "netblu" | 32 | $env(USER) |
33 | } | 33 | } |
34 | expect { | 34 | expect { |
35 | timeout {puts "TESTING ERROR 5\n";exit} | 35 | timeout {puts "TESTING ERROR 5\n";exit} |
@@ -54,7 +54,7 @@ sleep 1 | |||
54 | send -- "top -b -n 1\r" | 54 | send -- "top -b -n 1\r" |
55 | expect { | 55 | expect { |
56 | timeout {puts "TESTING ERROR 11\n";exit} | 56 | timeout {puts "TESTING ERROR 11\n";exit} |
57 | "netblue" | 57 | $env(USER) |
58 | } | 58 | } |
59 | expect { | 59 | expect { |
60 | timeout {puts "TESTING ERROR 12\n";exit} | 60 | timeout {puts "TESTING ERROR 12\n";exit} |
@@ -66,7 +66,7 @@ expect { | |||
66 | } | 66 | } |
67 | expect { | 67 | expect { |
68 | timeout {puts "TESTING ERROR 14\n";exit} | 68 | timeout {puts "TESTING ERROR 14\n";exit} |
69 | "netblu" | 69 | $env(USER) |
70 | } | 70 | } |
71 | expect { | 71 | expect { |
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 | ||
3 | set timeout 10 | 3 | set timeout 10 |
4 | cd /home | ||
4 | spawn $env(SHELL) | 5 | spawn $env(SHELL) |
5 | match_max 100000 | 6 | match_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 | ||
3 | set timeout 10 | 3 | set timeout 10 |
4 | cd /home | ||
4 | spawn $env(SHELL) | 5 | spawn $env(SHELL) |
5 | match_max 100000 | 6 | match_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 | ||
6 | set timeout 10 | 6 | set timeout 10 |
7 | cd /home | ||
7 | spawn $env(SHELL) | 8 | spawn $env(SHELL) |
8 | match_max 100000 | 9 | match_max 100000 |
9 | 10 | ||