aboutsummaryrefslogtreecommitdiffstats
path: root/test/sysutils/dig.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2023-01-19 00:17:47 -0500
committerLibravatar netblue30 <netblue30@protonmail.com>2023-01-19 00:17:47 -0500
commit17189823335d670388e71e25db8d5bec828806c2 (patch)
tree90927ef643dd414ef84a858a91f5cc71f0e60b14 /test/sysutils/dig.exp
parentMerge branch 'master' of ssh://github.com/netblue30/firejail (diff)
downloadfirejail-17189823335d670388e71e25db8d5bec828806c2.tar.gz
firejail-17189823335d670388e71e25db8d5bec828806c2.tar.zst
firejail-17189823335d670388e71e25db8d5bec828806c2.zip
more profile fixes/testing
Diffstat (limited to 'test/sysutils/dig.exp')
-rwxr-xr-xtest/sysutils/dig.exp18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/sysutils/dig.exp b/test/sysutils/dig.exp
new file mode 100755
index 000000000..bd5ccbb5c
--- /dev/null
+++ b/test/sysutils/dig.exp
@@ -0,0 +1,18 @@
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 dig +timeout=1 +retry=0 dns.quad9.net\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 "no servers could be reached" {puts "no network connectivity!\n";exit}
14 "NXDOMAIN" {puts "not found\n";exit}
15 "ANSWER SECTION"
16}
17after 100
18puts "\nall done\n"