aboutsummaryrefslogtreecommitdiffstats
path: root/test/sysutils
diff options
context:
space:
mode:
Diffstat (limited to 'test/sysutils')
-rwxr-xr-xtest/sysutils/sysutils.sh8
-rwxr-xr-xtest/sysutils/whois.exp17
2 files changed, 25 insertions, 0 deletions
diff --git a/test/sysutils/sysutils.sh b/test/sysutils/sysutils.sh
index bab243c4b..a1aaa80a7 100755
--- a/test/sysutils/sysutils.sh
+++ b/test/sysutils/sysutils.sh
@@ -127,3 +127,11 @@ else
127 echo "TESTING SKIP: strings not found" 127 echo "TESTING SKIP: strings not found"
128fi 128fi
129 129
130if command -v whois
131then
132 echo "TESTING: whois"
133 ./whois.exp
134else
135 echo "TESTING SKIP: whois not found"
136fi
137
diff --git a/test/sysutils/whois.exp b/test/sysutils/whois.exp
new file mode 100755
index 000000000..29190253c
--- /dev/null
+++ b/test/sysutils/whois.exp
@@ -0,0 +1,17 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2022 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail whois debian.org\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Domain Name"
14}
15
16after 100
17puts "\nall done\n"