From 17189823335d670388e71e25db8d5bec828806c2 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 19 Jan 2023 00:17:47 -0500 Subject: more profile fixes/testing --- test/sysutils/nslookup.exp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 test/sysutils/nslookup.exp (limited to 'test/sysutils/nslookup.exp') diff --git a/test/sysutils/nslookup.exp b/test/sysutils/nslookup.exp new file mode 100755 index 000000000..2a99441d9 --- /dev/null +++ b/test/sysutils/nslookup.exp @@ -0,0 +1,18 @@ +#!/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 nslookup -timeout=1 -retry=0 dns.quad9.net\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "no servers could be reached" {puts "no network connectivity!\n";exit} + "NXDOMAIN" {puts "not found\n";exit} + "Address" +} +after 100 +puts "\nall done\n" -- cgit v1.2.3-70-g09d2