From ef4409e7b79b3dabf5a35879138d66b0b8a0c24d Mon Sep 17 00:00:00 2001 From: startx2017 Date: Thu, 30 Aug 2018 07:29:05 -0400 Subject: added whois and dig profiles --- test/private-lib/dig.exp | 17 +++++++++++++++++ test/private-lib/private-lib.sh | 2 +- test/private-lib/whois.exp | 17 +++++++++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100755 test/private-lib/dig.exp create mode 100755 test/private-lib/whois.exp (limited to 'test') diff --git a/test/private-lib/dig.exp b/test/private-lib/dig.exp new file mode 100755 index 000000000..6e03b0503 --- /dev/null +++ b/test/private-lib/dig.exp @@ -0,0 +1,17 @@ +#!/usr/bin/expect -f +# This file is part of Firejail project +# Copyright (C) 2014-2018 Firejail Authors +# License GPL v2 + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +send -- "firejail dig 1.1.1.1\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Query time" +} + +after 100 +puts "\nall done\n" diff --git a/test/private-lib/private-lib.sh b/test/private-lib/private-lib.sh index edf81917a..5d23ebe88 100755 --- a/test/private-lib/private-lib.sh +++ b/test/private-lib/private-lib.sh @@ -5,7 +5,7 @@ export MALLOC_CHECK_=3 export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) -LIST="evince galculator gnome-calculator gedit leafpad mousepad pluma transmission-gtk xcalc atril gpicview eom eog" +LIST="dig whois evince galculator gnome-calculator gedit leafpad mousepad pluma transmission-gtk xcalc atril gpicview eom eog" for app in $LIST; do diff --git a/test/private-lib/whois.exp b/test/private-lib/whois.exp new file mode 100755 index 000000000..6807b7cc2 --- /dev/null +++ b/test/private-lib/whois.exp @@ -0,0 +1,17 @@ +#!/usr/bin/expect -f +# This file is part of Firejail project +# Copyright (C) 2014-2018 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