From ea774178f6d8f613c96c0d001fed200155b704b7 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sat, 30 Apr 2016 07:31:21 -0400 Subject: added make test-filters --- test/filters/seccomp-dualfilter.exp | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 test/filters/seccomp-dualfilter.exp (limited to 'test/filters/seccomp-dualfilter.exp') 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 @@ +#!/usr/bin/expect -f +# This file is part of Firejail project +# Copyright (C) 2014-2016 Firejail Authors +# License GPL v2 + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +send -- "firejail ./syscall_test mount\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Child process initialized" +} +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "before mount" +} +expect { + timeout {puts "TESTING ERROR 2\n";exit} + "after mount" {puts "TESTING ERROR 2.1\n";exit} + "Parent is shutting down" +} +sleep 1 + +send -- "firejail ./syscall_test32 mount\r" +expect { + timeout {puts "TESTING ERROR 3\n";exit} + "Child process initialized" +} +expect { + timeout {puts "TESTING ERROR 4\n";exit} + "before mount" +} +expect { + timeout {puts "TESTING ERROR 5\n";exit} + "after mount" {puts "TESTING ERROR 5.1\n";exit} + "Parent is shutting down" +} + +puts "\nall done\n" -- cgit v1.2.3-70-g09d2