From 4a4bd8a617cfd01a95e92e915a118ba550870995 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Mon, 6 Feb 2023 14:13:12 -0500 Subject: testing --- test/private-lib/whois.exp | 17 ----------------- test/sysutils/sysutils.sh | 8 ++++++++ test/sysutils/whois.exp | 17 +++++++++++++++++ 3 files changed, 25 insertions(+), 17 deletions(-) delete mode 100755 test/private-lib/whois.exp create mode 100755 test/sysutils/whois.exp (limited to 'test') diff --git a/test/private-lib/whois.exp b/test/private-lib/whois.exp deleted file mode 100755 index 29190253c..000000000 --- a/test/private-lib/whois.exp +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/expect -f -# This file is part of Firejail project -# Copyright (C) 2014-2022 Firejail Authors -# License GPL v2 - -set timeout 10 -spawn $env(SHELL) -match_max 100000 - -send -- "firejail whois debian.org\r" -expect { - timeout {puts "TESTING ERROR 0\n";exit} - "Domain Name" -} - -after 100 -puts "\nall done\n" 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 echo "TESTING SKIP: strings not found" fi +if command -v whois +then + echo "TESTING: whois" + ./whois.exp +else + echo "TESTING SKIP: whois not found" +fi + 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 @@ +#!/usr/bin/expect -f +# This file is part of Firejail project +# Copyright (C) 2014-2022 Firejail Authors +# License GPL v2 + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +send -- "firejail whois debian.org\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Domain Name" +} + +after 100 +puts "\nall done\n" -- cgit v1.2.3-54-g00ecf