aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-07-30 07:33:21 -0400
committerLibravatar GitHub <noreply@github.com>2016-07-30 07:33:21 -0400
commiteba71f02920502143553fc82d17a64fe6f8a9622 (patch)
tree4696205e5dc8d0cf6cb585c2710fa6bbd7755ff2
parentusing UID_MIN/GID_MIN values from /etc/login.def (diff)
parentUse wildcard for qdisc (diff)
downloadfirejail-eba71f02920502143553fc82d17a64fe6f8a9622.tar.gz
firejail-eba71f02920502143553fc82d17a64fe6f8a9622.tar.zst
firejail-eba71f02920502143553fc82d17a64fe6f8a9622.zip
Merge pull request #657 from reinerh/master
Some test fixes
-rwxr-xr-xtest/arguments/arguments.sh2
-rwxr-xr-xtest/arguments/symrun.exp2
-rwxr-xr-xtest/arguments/symrun.sh3
-rwxr-xr-xtest/environment/doubledash.exp8
-rwxr-xr-xtest/network/bandwidth.exp2
5 files changed, 11 insertions, 6 deletions
diff --git a/test/arguments/arguments.sh b/test/arguments/arguments.sh
index a9b3f9587..2f53eb3fa 100755
--- a/test/arguments/arguments.sh
+++ b/test/arguments/arguments.sh
@@ -1,5 +1,7 @@
1#!/bin/bash 1#!/bin/bash
2 2
3[ -f argtest ] || make argtest
4
3echo "TESTING: 1. regular bash session" 5echo "TESTING: 1. regular bash session"
4./bashrun.exp 6./bashrun.exp
5 7
diff --git a/test/arguments/symrun.exp b/test/arguments/symrun.exp
index 1466b791e..10e7ac6c8 100755
--- a/test/arguments/symrun.exp
+++ b/test/arguments/symrun.exp
@@ -4,7 +4,7 @@ set timeout 10
4spawn $env(SHELL) 4spawn $env(SHELL)
5match_max 100000 5match_max 100000
6 6
7send -- "./bashrun.sh\r" 7send -- "./symrun.sh\r"
8expect { 8expect {
9 timeout {puts "TESTING ERROR 2.1.1\n";exit} 9 timeout {puts "TESTING ERROR 2.1.1\n";exit}
10 "Arguments:" 10 "Arguments:"
diff --git a/test/arguments/symrun.sh b/test/arguments/symrun.sh
index b46803ae2..d28f024a8 100755
--- a/test/arguments/symrun.sh
+++ b/test/arguments/symrun.sh
@@ -3,6 +3,9 @@
3mkdir symtest 3mkdir symtest
4ln -s /usr/bin/firejail symtest/argtest 4ln -s /usr/bin/firejail symtest/argtest
5 5
6# search for argtest in current directory
7export PATH=$PATH:.
8
6echo "TESTING: 2.1 - simple args" 9echo "TESTING: 2.1 - simple args"
7symtest/argtest arg1 arg2 10symtest/argtest arg1 arg2
8 11
diff --git a/test/environment/doubledash.exp b/test/environment/doubledash.exp
index 668468980..7abf4b918 100755
--- a/test/environment/doubledash.exp
+++ b/test/environment/doubledash.exp
@@ -36,23 +36,23 @@ expect {
36sleep 3 36sleep 3
37 37
38spawn $env(SHELL) 38spawn $env(SHELL)
39send -- "firejail --list;pwd\r" 39send -- "firejail --list;ls -d /tmp\r"
40expect { 40expect {
41 timeout {puts "TESTING ERROR 6\n";exit} 41 timeout {puts "TESTING ERROR 6\n";exit}
42 "name=testing" 42 "name=testing"
43} 43}
44expect { 44expect {
45 timeout {puts "TESTING ERROR 7\n";exit} 45 timeout {puts "TESTING ERROR 7\n";exit}
46 "home" 46 "/tmp"
47} 47}
48send -- "firejail --list;pwd\r" 48send -- "firejail --list;ls -d /tmp\r"
49expect { 49expect {
50 timeout {puts "TESTING ERROR 8 (join)\n";exit} 50 timeout {puts "TESTING ERROR 8 (join)\n";exit}
51 "join=testing" 51 "join=testing"
52} 52}
53expect { 53expect {
54 timeout {puts "TESTING ERROR 9\n";exit} 54 timeout {puts "TESTING ERROR 9\n";exit}
55 "home" 55 "/tmp"
56} 56}
57 57
58sleep 1 58sleep 1
diff --git a/test/network/bandwidth.exp b/test/network/bandwidth.exp
index bccb0b9f3..2913c6b14 100755
--- a/test/network/bandwidth.exp
+++ b/test/network/bandwidth.exp
@@ -18,7 +18,7 @@ spawn $env(SHELL)
18send -- "firejail --bandwidth=test status\r" 18send -- "firejail --bandwidth=test status\r"
19expect { 19expect {
20 timeout {puts "TESTING ERROR 1\n";exit} 20 timeout {puts "TESTING ERROR 1\n";exit}
21 "qdisc pfifo_fast 0: dev eth0" 21 "qdisc * 0: dev eth0"
22} 22}
23sleep 1 23sleep 1
24 24