diff options
author | netblue30 <netblue30@yahoo.com> | 2016-02-20 07:53:02 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-02-20 07:53:02 -0500 |
commit | 27d6f2b771eca9cfb70d598688a76177abcd193a (patch) | |
tree | 56c841e0612313bc77a985756fff7c34e2f517f9 /test/features | |
parent | euid switching (diff) | |
download | firejail-27d6f2b771eca9cfb70d598688a76177abcd193a.tar.gz firejail-27d6f2b771eca9cfb70d598688a76177abcd193a.tar.zst firejail-27d6f2b771eca9cfb70d598688a76177abcd193a.zip |
testing
Diffstat (limited to 'test/features')
-rwxr-xr-x | test/features/3.11.exp | 7 | ||||
-rwxr-xr-x | test/features/3.4.exp | 6 | ||||
-rwxr-xr-x | test/features/3.5.exp | 12 | ||||
-rwxr-xr-x | test/features/3.9.exp | 12 |
4 files changed, 19 insertions, 18 deletions
diff --git a/test/features/3.11.exp b/test/features/3.11.exp index aeaf28bf8..b3d3af18d 100755 --- a/test/features/3.11.exp +++ b/test/features/3.11.exp | |||
@@ -22,7 +22,7 @@ expect { | |||
22 | } | 22 | } |
23 | sleep 1 | 23 | sleep 1 |
24 | 24 | ||
25 | send -- "ls -l ~ | grep xy76_u9\r" | 25 | send -- "ls -l ~ | grep firejail-xy76_u9\r" |
26 | expect { | 26 | expect { |
27 | timeout {puts "TESTING ERROR 1\n";exit} | 27 | timeout {puts "TESTING ERROR 1\n";exit} |
28 | "drwx------" | 28 | "drwx------" |
@@ -71,7 +71,7 @@ if { $overlay == "overlay" } { | |||
71 | } | 71 | } |
72 | sleep 1 | 72 | sleep 1 |
73 | 73 | ||
74 | send -- "ls -l ~ | grep xy76_u9\r" | 74 | send -- "ls -l ~ | grep firejail-xy76_u9\r" |
75 | expect { | 75 | expect { |
76 | timeout {puts "TESTING ERROR 11\n";exit} | 76 | timeout {puts "TESTING ERROR 11\n";exit} |
77 | "drwx------" | 77 | "drwx------" |
@@ -123,7 +123,7 @@ if { $chroot == "chroot" } { | |||
123 | } | 123 | } |
124 | sleep 1 | 124 | sleep 1 |
125 | 125 | ||
126 | send -- "ls -l ~ | grep xy76_u9\r" | 126 | send -- "ls -l ~ | grep firejail-xy76_u9\r" |
127 | expect { | 127 | expect { |
128 | timeout {puts "TESTING ERROR 21\n";exit} | 128 | timeout {puts "TESTING ERROR 21\n";exit} |
129 | "drwx------" | 129 | "drwx------" |
@@ -162,3 +162,4 @@ if { $chroot == "chroot" } { | |||
162 | 162 | ||
163 | 163 | ||
164 | puts "\nall done\n" | 164 | puts "\nall done\n" |
165 | |||
diff --git a/test/features/3.4.exp b/test/features/3.4.exp index 996312334..3f316af5b 100755 --- a/test/features/3.4.exp +++ b/test/features/3.4.exp | |||
@@ -53,7 +53,7 @@ expect { | |||
53 | ".Xauthority" | 53 | ".Xauthority" |
54 | } | 54 | } |
55 | 55 | ||
56 | send -- "ls -al | grep config\r" | 56 | send -- "ls -al | grep .config\r" |
57 | expect { | 57 | expect { |
58 | timeout {puts "TESTING ERROR 1.8\n";exit} | 58 | timeout {puts "TESTING ERROR 1.8\n";exit} |
59 | "netblue" | 59 | "netblue" |
@@ -117,7 +117,7 @@ if { $overlay == "overlay" } { | |||
117 | ".Xauthority" | 117 | ".Xauthority" |
118 | } | 118 | } |
119 | 119 | ||
120 | send -- "ls -al | grep config\r" | 120 | send -- "ls -al | grep .config\r" |
121 | expect { | 121 | expect { |
122 | timeout {puts "TESTING ERROR 3.8\n";exit} | 122 | timeout {puts "TESTING ERROR 3.8\n";exit} |
123 | "netblue" | 123 | "netblue" |
@@ -181,7 +181,7 @@ if { $chroot == "chroot" } { | |||
181 | ".Xauthority" | 181 | ".Xauthority" |
182 | } | 182 | } |
183 | 183 | ||
184 | send -- "ls -al | grep config\r" | 184 | send -- "ls -al | grep .config\r" |
185 | expect { | 185 | expect { |
186 | timeout {puts "TESTING ERROR 5.8\n";exit} | 186 | timeout {puts "TESTING ERROR 5.8\n";exit} |
187 | "netblue" | 187 | "netblue" |
diff --git a/test/features/3.5.exp b/test/features/3.5.exp index d190ef36f..35de90429 100755 --- a/test/features/3.5.exp +++ b/test/features/3.5.exp | |||
@@ -19,10 +19,10 @@ expect { | |||
19 | } | 19 | } |
20 | sleep 1 | 20 | sleep 1 |
21 | 21 | ||
22 | send -- "ls -al /dev | wc -l\r" | 22 | send -- "ls -l /dev | wc -l\r" |
23 | expect { | 23 | expect { |
24 | timeout {puts "TESTING ERROR 1.1\n";exit} | 24 | timeout {puts "TESTING ERROR 1.1\n";exit} |
25 | "14" | 25 | "12" |
26 | } | 26 | } |
27 | 27 | ||
28 | after 100 | 28 | after 100 |
@@ -40,10 +40,10 @@ if { $overlay == "overlay" } { | |||
40 | } | 40 | } |
41 | sleep 1 | 41 | sleep 1 |
42 | 42 | ||
43 | send -- "ls -al /dev | wc -l\r" | 43 | send -- "ls -l /dev | wc -l\r" |
44 | expect { | 44 | expect { |
45 | timeout {puts "TESTING ERROR 3.1\n";exit} | 45 | timeout {puts "TESTING ERROR 3.1\n";exit} |
46 | "13" | 46 | "12" |
47 | } | 47 | } |
48 | 48 | ||
49 | after 100 | 49 | after 100 |
@@ -62,10 +62,10 @@ if { $chroot == "chroot" } { | |||
62 | } | 62 | } |
63 | sleep 1 | 63 | sleep 1 |
64 | 64 | ||
65 | send -- "ls -al /dev | wc -l\r" | 65 | send -- "ls -l /dev | wc -l\r" |
66 | expect { | 66 | expect { |
67 | timeout {puts "TESTING ERROR 5.1\n";exit} | 67 | timeout {puts "TESTING ERROR 5.1\n";exit} |
68 | "13" | 68 | "12" |
69 | } | 69 | } |
70 | 70 | ||
71 | after 100 | 71 | after 100 |
diff --git a/test/features/3.9.exp b/test/features/3.9.exp index 1dc556d78..a1797804f 100755 --- a/test/features/3.9.exp +++ b/test/features/3.9.exp | |||
@@ -12,7 +12,7 @@ set chroot [lindex $argv 1] | |||
12 | # | 12 | # |
13 | # N | 13 | # N |
14 | # | 14 | # |
15 | send -- "firejail --noprofile --whitelist=/dev/tty --whitelist=/dev/shm --whitelist=/dev/null\r" | 15 | send -- "firejail --noprofile --whitelist=/dev/tty --whitelist=/dev/null\r" |
16 | expect { | 16 | expect { |
17 | timeout {puts "TESTING ERROR 0\n";exit} | 17 | timeout {puts "TESTING ERROR 0\n";exit} |
18 | "Child process initialized" | 18 | "Child process initialized" |
@@ -22,7 +22,7 @@ sleep 1 | |||
22 | send -- "ls -l /dev | wc -l\r" | 22 | send -- "ls -l /dev | wc -l\r" |
23 | expect { | 23 | expect { |
24 | timeout {puts "TESTING ERROR 1.1\n";exit} | 24 | timeout {puts "TESTING ERROR 1.1\n";exit} |
25 | "4" | 25 | "3" |
26 | } | 26 | } |
27 | 27 | ||
28 | 28 | ||
@@ -35,7 +35,7 @@ sleep 1 | |||
35 | # O | 35 | # O |
36 | # | 36 | # |
37 | if { $overlay == "overlay" } { | 37 | if { $overlay == "overlay" } { |
38 | send -- "firejail --noprofile --overlay --whitelist=/dev/tty --whitelist=/dev/shm --whitelist=/dev/null\r" | 38 | send -- "firejail --noprofile --overlay --whitelist=/dev/tty --whitelist=/dev/null\r" |
39 | expect { | 39 | expect { |
40 | timeout {puts "TESTING ERROR 2\n";exit} | 40 | timeout {puts "TESTING ERROR 2\n";exit} |
41 | "Child process initialized" | 41 | "Child process initialized" |
@@ -45,7 +45,7 @@ if { $overlay == "overlay" } { | |||
45 | send -- "ls -l /dev | wc -l\r" | 45 | send -- "ls -l /dev | wc -l\r" |
46 | expect { | 46 | expect { |
47 | timeout {puts "TESTING ERROR 3.1\n";exit} | 47 | timeout {puts "TESTING ERROR 3.1\n";exit} |
48 | "4" | 48 | "3" |
49 | } | 49 | } |
50 | 50 | ||
51 | 51 | ||
@@ -58,7 +58,7 @@ if { $overlay == "overlay" } { | |||
58 | # C | 58 | # C |
59 | # | 59 | # |
60 | if { $chroot == "chroot" } { | 60 | if { $chroot == "chroot" } { |
61 | send -- "firejail --noprofile --chroot=/tmp/chroot --whitelist=/dev/tty --whitelist=/dev/shm --whitelist=/dev/null\r" | 61 | send -- "firejail --noprofile --chroot=/tmp/chroot --whitelist=/dev/tty --whitelist=/dev/null\r" |
62 | expect { | 62 | expect { |
63 | timeout {puts "TESTING ERROR 4\n";exit} | 63 | timeout {puts "TESTING ERROR 4\n";exit} |
64 | "Child process initialized" | 64 | "Child process initialized" |
@@ -68,7 +68,7 @@ if { $chroot == "chroot" } { | |||
68 | send -- "ls -l /dev | wc -l\r" | 68 | send -- "ls -l /dev | wc -l\r" |
69 | expect { | 69 | expect { |
70 | timeout {puts "TESTING ERROR 5.1\n";exit} | 70 | timeout {puts "TESTING ERROR 5.1\n";exit} |
71 | "4" | 71 | "3" |
72 | } | 72 | } |
73 | 73 | ||
74 | after 100 | 74 | after 100 |