diff options
author | netblue30 <netblue30@yahoo.com> | 2015-10-16 07:17:55 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2015-10-16 07:17:55 -0400 |
commit | 83b898c9d7c14e70bb7531fffc56de40d2db4fb8 (patch) | |
tree | d3b627fefbc898424cf17b81f9f1fa1b4b85954e /test | |
parent | testing (diff) | |
download | firejail-83b898c9d7c14e70bb7531fffc56de40d2db4fb8.tar.gz firejail-83b898c9d7c14e70bb7531fffc56de40d2db4fb8.tar.zst firejail-83b898c9d7c14e70bb7531fffc56de40d2db4fb8.zip |
seccomp testing
Diffstat (limited to 'test')
-rwxr-xr-x | test/chk_config.exp | 3 | ||||
-rwxr-xr-x | test/servers3.exp | 17 |
2 files changed, 18 insertions, 2 deletions
diff --git a/test/chk_config.exp b/test/chk_config.exp index ada59d655..253ebf98e 100755 --- a/test/chk_config.exp +++ b/test/chk_config.exp | |||
@@ -80,7 +80,8 @@ expect { | |||
80 | } | 80 | } |
81 | expect { | 81 | expect { |
82 | timeout {puts "TESTING ERROR 5\n";exit} | 82 | timeout {puts "TESTING ERROR 5\n";exit} |
83 | "home" | 83 | "home" {puts "regular user\n"} |
84 | "root" {puts "root user\n"} | ||
84 | } | 85 | } |
85 | 86 | ||
86 | 87 | ||
diff --git a/test/servers3.exp b/test/servers3.exp index f23ffba46..da44a28ee 100755 --- a/test/servers3.exp +++ b/test/servers3.exp | |||
@@ -26,6 +26,21 @@ expect { | |||
26 | "apache" | 26 | "apache" |
27 | } | 27 | } |
28 | 28 | ||
29 | send -- "rm index.html\r" | ||
30 | sleep 1 | ||
31 | send -- "wget 0\r" | ||
32 | expect { | ||
33 | timeout {puts "TESTING ERROR 2\n";exit} | ||
34 | "saved" | ||
35 | } | ||
36 | send -- "cat index.html\r" | ||
37 | expect { | ||
38 | timeout {puts "TESTING ERROR 3\n";exit} | ||
39 | "This is the default web page for this server" | ||
40 | } | ||
41 | |||
42 | |||
43 | |||
29 | send -- "exit\r" | 44 | send -- "exit\r" |
30 | sleep 1 | 45 | sleep 1 |
31 | puts "\n" | 46 | puts "\nall done\n" |