aboutsummaryrefslogtreecommitdiffstats
path: root/test/filters/seccomp-dualfilter.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-dualfilter.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-dualfilter.exp')
-rwxr-xr-xtest/filters/seccomp-dualfilter.exp41
1 files changed, 41 insertions, 0 deletions
diff --git a/test/filters/seccomp-dualfilter.exp b/test/filters/seccomp-dualfilter.exp
new file mode 100755
index 000000000..26b36236a
--- /dev/null
+++ b/test/filters/seccomp-dualfilter.exp
@@ -0,0 +1,41 @@
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 ./syscall_test mount\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized"
14}
15expect {
16 timeout {puts "TESTING ERROR 1\n";exit}
17 "before mount"
18}
19expect {
20 timeout {puts "TESTING ERROR 2\n";exit}
21 "after mount" {puts "TESTING ERROR 2.1\n";exit}
22 "Parent is shutting down"
23}
24sleep 1
25
26send -- "firejail ./syscall_test32 mount\r"
27expect {
28 timeout {puts "TESTING ERROR 3\n";exit}
29 "Child process initialized"
30}
31expect {
32 timeout {puts "TESTING ERROR 4\n";exit}
33 "before mount"
34}
35expect {
36 timeout {puts "TESTING ERROR 5\n";exit}
37 "after mount" {puts "TESTING ERROR 5.1\n";exit}
38 "Parent is shutting down"
39}
40
41puts "\nall done\n"