aboutsummaryrefslogtreecommitdiffstats
path: root/test/fnetfilter/cmdline.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/fnetfilter/cmdline.exp')
-rwxr-xr-xtest/fnetfilter/cmdline.exp37
1 files changed, 37 insertions, 0 deletions
diff --git a/test/fnetfilter/cmdline.exp b/test/fnetfilter/cmdline.exp
new file mode 100755
index 000000000..1a0b1c5aa
--- /dev/null
+++ b/test/fnetfilter/cmdline.exp
@@ -0,0 +1,37 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2017 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "fnetfilter\r"
11expect {
12 timeout {puts "TESTING ERROR 1\n";exit}
13 "Usage:"
14}
15after 100
16
17send -- "fnetfilter -h\r"
18expect {
19 timeout {puts "TESTING ERROR 2\n";exit}
20 "Usage:"
21}
22after 100
23
24send -- "fnetfilter -h a b c d\r"
25expect {
26 timeout {puts "TESTING ERROR 2\n";exit}
27 "Usage:"
28}
29after 100
30
31send -- "fnetfilter a b c d\r"
32expect {
33 timeout {puts "TESTING ERROR 2\n";exit}
34 "Usage:"
35}
36after 100
37puts "\nall done\n"