aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/build.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2018-03-30 14:22:30 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2018-03-30 14:22:30 -0400
commit021bfd07923a879c1365e965c81bbe01e40fb8aa (patch)
tree94a82b361a2c0c652e6c0a1e623bb29028eb3466 /test/utils/build.exp
parentnodbus man pages, etc. (diff)
downloadfirejail-021bfd07923a879c1365e965c81bbe01e40fb8aa.tar.gz
firejail-021bfd07923a879c1365e965c81bbe01e40fb8aa.tar.zst
firejail-021bfd07923a879c1365e965c81bbe01e40fb8aa.zip
testing
Diffstat (limited to 'test/utils/build.exp')
-rwxr-xr-xtest/utils/build.exp50
1 files changed, 50 insertions, 0 deletions
diff --git a/test/utils/build.exp b/test/utils/build.exp
new file mode 100755
index 000000000..916f373b9
--- /dev/null
+++ b/test/utils/build.exp
@@ -0,0 +1,50 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2018 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail --build ls ~\r"
11expect {
12 timeout {puts "TESTING ERROR 1\n";exit}
13 "private-tmp"
14}
15expect {
16 timeout {puts "TESTING ERROR 2\n";exit}
17 "private-dev"
18}
19expect {
20 timeout {puts "TESTING ERROR 3\n";exit}
21 "blacklist /var"
22}
23expect {
24 timeout {puts "TESTING ERROR 4\n";exit}
25 "private-bin ls,"
26}
27expect {
28 timeout {puts "TESTING ERROR 5\n";exit}
29 "caps.drop all"
30}
31expect {
32 timeout {puts "TESTING ERROR 6\n";exit}
33 "nonewprivs"
34}
35expect {
36 timeout {puts "TESTING ERROR 7\n";exit}
37 "seccomp"
38}
39expect {
40 timeout {puts "TESTING ERROR 8\n";exit}
41 "net none"
42}
43expect {
44 timeout {puts "TESTING ERROR 9\n";exit}
45 "shell none"
46}
47after 100
48
49
50puts "all done\n"