diff options
author | netblue30 <netblue30@yahoo.com> | 2017-09-05 19:15:39 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2017-09-05 19:15:39 -0400 |
commit | 912ec614b6c059c9cbc1028ddd56b13beb7ad393 (patch) | |
tree | e02c1e30eb17602f19d7adb451415f4ead14ebf3 /test/root/checkcfg.exp | |
parent | testing (diff) | |
download | firejail-912ec614b6c059c9cbc1028ddd56b13beb7ad393.tar.gz firejail-912ec614b6c059c9cbc1028ddd56b13beb7ad393.tar.zst firejail-912ec614b6c059c9cbc1028ddd56b13beb7ad393.zip |
testing
Diffstat (limited to 'test/root/checkcfg.exp')
-rwxr-xr-x | test/root/checkcfg.exp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/root/checkcfg.exp b/test/root/checkcfg.exp index 205ef1e0c..e17e9cda2 100755 --- a/test/root/checkcfg.exp +++ b/test/root/checkcfg.exp | |||
@@ -88,6 +88,7 @@ expect { | |||
88 | timeout {puts "TESTING ERROR 9\n";exit} | 88 | timeout {puts "TESTING ERROR 9\n";exit} |
89 | "noroot feature is disabled in Firejail configuration file\r" | 89 | "noroot feature is disabled in Firejail configuration file\r" |
90 | } | 90 | } |
91 | sleep 1 | ||
91 | 92 | ||
92 | # netfilter-default | 93 | # netfilter-default |
93 | send -- "echo \"netfilter-default blablabla\" > /etc/firejail/firejail.config\r" | 94 | send -- "echo \"netfilter-default blablabla\" > /etc/firejail/firejail.config\r" |
@@ -97,6 +98,7 @@ expect { | |||
97 | timeout {puts "TESTING ERROR 10\n";exit} | 98 | timeout {puts "TESTING ERROR 10\n";exit} |
98 | "netfilter-default file blablabla not available\r" | 99 | "netfilter-default file blablabla not available\r" |
99 | } | 100 | } |
101 | after 100 | ||
100 | 102 | ||
101 | # strings | 103 | # strings |
102 | send -- "echo \"xephyr-screen 800x600\" > /etc/firejail/firejail.config\r" | 104 | send -- "echo \"xephyr-screen 800x600\" > /etc/firejail/firejail.config\r" |
@@ -104,17 +106,15 @@ after 100 | |||
104 | send -- "echo \"xvfb-screen 800x600x24\" >> /etc/firejail/firejail.config\r" | 106 | send -- "echo \"xvfb-screen 800x600x24\" >> /etc/firejail/firejail.config\r" |
105 | after 100 | 107 | after 100 |
106 | send -- "echo \"xvfb-extra-params blablabla\" >> /etc/firejail/firejail.config\r" | 108 | send -- "echo \"xvfb-extra-params blablabla\" >> /etc/firejail/firejail.config\r" |
107 | after 100 | 109 | sleep 1 |
108 | send -- "firejail --noprofile\r" | 110 | send -- "firejail --noprofile echo done\r" |
109 | expect { | 111 | expect { |
110 | timeout {puts "TESTING ERROR 11\n";exit} | 112 | timeout {puts "TESTING ERROR 11\n";exit} |
111 | "Child process initialized\r" | 113 | "done\r" |
112 | } | 114 | } |
113 | after 100 | 115 | sleep 1 |
114 | send -- "exit\r" | ||
115 | after 100 | ||
116 | 116 | ||
117 | # error exit | 117 | after 100 |
118 | send -- "echo \"join no\" > /etc/firejail/firejail.config\r" | 118 | send -- "echo \"join no\" > /etc/firejail/firejail.config\r" |
119 | after 100 | 119 | after 100 |
120 | send -- "echo \"cache-tmpfs no\" >> /etc/firejail/firejail.config\r" | 120 | send -- "echo \"cache-tmpfs no\" >> /etc/firejail/firejail.config\r" |