aboutsummaryrefslogtreecommitdiffstats
path: root/test/filters/seccomp-debug.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-30 07:31:21 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-30 07:31:21 -0400
commitea774178f6d8f613c96c0d001fed200155b704b7 (patch)
treeee2de7fcce0499dcb21cf475a068fe8957ab07bb /test/filters/seccomp-debug.exp
parentadded make test-filters (diff)
downloadfirejail-ea774178f6d8f613c96c0d001fed200155b704b7.tar.gz
firejail-ea774178f6d8f613c96c0d001fed200155b704b7.tar.zst
firejail-ea774178f6d8f613c96c0d001fed200155b704b7.zip
added make test-filters
Diffstat (limited to 'test/filters/seccomp-debug.exp')
-rwxr-xr-xtest/filters/seccomp-debug.exp31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/filters/seccomp-debug.exp b/test/filters/seccomp-debug.exp
new file mode 100755
index 000000000..dbc0d37a9
--- /dev/null
+++ b/test/filters/seccomp-debug.exp
@@ -0,0 +1,31 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2016 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail --seccomp --debug\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 "SECCOMP Filter"
14}
15expect {
16 timeout {puts "TESTING ERROR 2\n";exit}
17 "BLACKLIST"
18}
19expect {
20 timeout {puts "TESTING ERROR 3\n";exit}
21 "open_by_handle_at"
22}
23expect {
24 timeout {puts "TESTING ERROR 4\n";exit}
25 "Child process initialized"
26}
27sleep 2
28
29send -- "exit\r"
30after 100
31puts "all done\n"