diff options
Diffstat (limited to 'test/utils/build.exp')
-rwxr-xr-x | test/utils/build.exp | 38 |
1 files changed, 27 insertions, 11 deletions
diff --git a/test/utils/build.exp b/test/utils/build.exp index e8dd2bbbc..44b73179c 100755 --- a/test/utils/build.exp +++ b/test/utils/build.exp | |||
@@ -61,24 +61,40 @@ expect { | |||
61 | } | 61 | } |
62 | after 100 | 62 | after 100 |
63 | 63 | ||
64 | send -- "firejail --build cat /var/tmp/firejail-test-file-7699\r" | 64 | send -- "rm firejail-test-file-4388\r" |
65 | expect { | ||
66 | timeout {puts "TESTING ERROR 11\n";exit} | ||
67 | "whitelist /var/tmp/firejail-test-file-7699" | ||
68 | } | ||
69 | after 100 | 65 | after 100 |
70 | 66 | send -- "firejail --build=firejail-test-file-4388 cat /etc/passwd\r" | |
71 | send -- "firejail --build man firejail\r" | 67 | after 100 |
68 | send -- "cat firejail-test-file-4388\r" | ||
72 | expect { | 69 | expect { |
73 | timeout {puts "TESTING ERROR 12\n";exit} | 70 | timeout {puts "TESTING ERROR 10.1\n";exit} |
74 | "whitelist /usr/share/man" | 71 | "private-etc passwd," |
75 | } | 72 | } |
76 | after 100 | 73 | after 100 |
77 | 74 | ||
78 | send -- "firejail --build wget blablabla\r" | 75 | |
76 | #send -- "firejail --build cat /var/tmp/firejail-test-file-7699\r" | ||
77 | #expect { | ||
78 | # timeout {puts "TESTING ERROR 11\n";exit} | ||
79 | # "whitelist /var/tmp/firejail-test-file-7699" | ||
80 | #} | ||
81 | #after 100 | ||
82 | |||
83 | #send -- "firejail --build man firejail\r" | ||
84 | #expect { | ||
85 | # timeout {puts "TESTING ERROR 12\n";exit} | ||
86 | # "whitelist /usr/share/man" | ||
87 | #} | ||
88 | #after 100 | ||
89 | |||
90 | send -- "firejail --build wget --output-document=~ debian.org\r" | ||
79 | expect { | 91 | expect { |
80 | timeout {puts "TESTING ERROR 13\n";exit} | 92 | timeout {puts "TESTING ERROR 13\n";exit} |
81 | "protocol inet" | 93 | "protocol" |
94 | } | ||
95 | expect { | ||
96 | timeout {puts "TESTING ERROR 13.1\n";exit} | ||
97 | "inet" | ||
82 | } | 98 | } |
83 | after 100 | 99 | after 100 |
84 | 100 | ||