aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-12-17 10:31:39 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2015-12-17 10:31:39 -0500
commit24d38a4a23dc0beb66fe03dd042aefae47b03d50 (patch)
treedf42fee1cdb91d70da9b2905898664a5de35cf9f /test
parentbetter error reporting for profile files (diff)
downloadfirejail-24d38a4a23dc0beb66fe03dd042aefae47b03d50.tar.gz
firejail-24d38a4a23dc0beb66fe03dd042aefae47b03d50.tar.zst
firejail-24d38a4a23dc0beb66fe03dd042aefae47b03d50.zip
add support for sandbox name in profile files
Diffstat (limited to 'test')
-rwxr-xr-xtest/features/2.2.exp12
-rwxr-xr-xtest/seccomp-bad-empty.exp6
2 files changed, 3 insertions, 15 deletions
diff --git a/test/features/2.2.exp b/test/features/2.2.exp
index 7dc1e6a7d..c562328fd 100755
--- a/test/features/2.2.exp
+++ b/test/features/2.2.exp
@@ -27,10 +27,6 @@ expect {
27 "google.com" 27 "google.com"
28} 28}
29expect { 29expect {
30 timeout {puts "TESTING ERROR 1.2\n";exit}
31 "google.com"
32}
33expect {
34 timeout {puts "TESTING ERROR 1.3\n";exit} 30 timeout {puts "TESTING ERROR 1.3\n";exit}
35 "SERVER: 4.2.2.1" 31 "SERVER: 4.2.2.1"
36} 32}
@@ -59,10 +55,6 @@ expect {
59 "google.com" 55 "google.com"
60} 56}
61expect { 57expect {
62 timeout {puts "TESTING ERROR 3.2\n";exit}
63 "google.com"
64}
65expect {
66 timeout {puts "TESTING ERROR 3.3\n";exit} 58 timeout {puts "TESTING ERROR 3.3\n";exit}
67 "SERVER: 4.2.2.1" 59 "SERVER: 4.2.2.1"
68} 60}
@@ -90,10 +82,6 @@ expect {
90 "google.com" 82 "google.com"
91} 83}
92expect { 84expect {
93 timeout {puts "TESTING ERROR 5.2\n";exit}
94 "google.com"
95}
96expect {
97 timeout {puts "TESTING ERROR 5.3\n";exit} 85 timeout {puts "TESTING ERROR 5.3\n";exit}
98 "SERVER: 4.2.2.1" 86 "SERVER: 4.2.2.1"
99} 87}
diff --git a/test/seccomp-bad-empty.exp b/test/seccomp-bad-empty.exp
index 53b5c2e21..631d67743 100755
--- a/test/seccomp-bad-empty.exp
+++ b/test/seccomp-bad-empty.exp
@@ -25,14 +25,14 @@ expect {
25send -- "firejail --profile=seccomp-bad-empty.profile\r" 25send -- "firejail --profile=seccomp-bad-empty.profile\r"
26expect { 26expect {
27 timeout {puts "TESTING ERROR 6\n";exit} 27 timeout {puts "TESTING ERROR 6\n";exit}
28 "Error: line 1 in the custom profile is invalid" 28 "Error: line 1 in seccomp-bad-empty.profile is invalid"
29} 29}
30 30
31send -- "firejail --profile=seccomp-bad-empty2.profile\r" 31send -- "firejail --profile=seccomp-bad-empty2.profile\r"
32expect { 32expect {
33 timeout {puts "TESTING ERROR 7\n";exit} 33 timeout {puts "TESTING ERROR 7\n";exit}
34 "Error: line 1 in the custom profile is invalid" 34 "Error: line 1 in seccomp-bad-empty2.profile is invalid"
35} 35}
36sleep 1 36sleep 1
37puts "\n" 37puts "\nall done\n"
38 38