Prepare to release 1.5.2-5 to unstable
* d/t/control, d/t/stubby:
- [from ubuntu] Skip test if we don't have internet connection.
Roger Shimizu
3 years ago
|
0 |
getdns (1.5.2-5) unstable; urgency=medium
|
|
1 |
|
|
2 |
* Team upload.
|
|
3 |
* d/t/control, d/t/stubby:
|
|
4 |
- [from ubuntu] Skip test if we don't have internet connection.
|
|
5 |
|
|
6 |
-- Roger Shimizu <rosh@debian.org> Thu, 09 Jul 2020 23:53:35 +0900
|
|
7 |
|
0 | 8 |
getdns (1.5.2-4) unstable; urgency=medium
|
1 | 9 |
|
2 | 10 |
* Team upload.
|
0 | 0 |
Tests: stubby
|
1 | 1 |
Depends: stubby, knot-dnsutils, procps
|
2 | |
Restrictions: allow-stderr
|
|
2 |
Restrictions: allow-stderr, skippable
|
0 | 0 |
#!/bin/bash
|
|
1 |
|
|
2 |
# verify we have an internet connection before testing, by TLS querying
|
|
3 |
# one of the default upstream servers in our /etc/stubby/stubby.yml
|
|
4 |
UPSTREAM=$(grep -m1 -E '^[^#].*address_data: *([0-9]+\.){3}[0-9]+' /etc/stubby/stubby.yml | cut -d ':' -f 2)
|
|
5 |
if [[ -z $UPSTREAM ]]; then
|
|
6 |
echo "no upstream nameserver found in /etc/stubby/stubby.yml"
|
|
7 |
exit 77
|
|
8 |
fi
|
|
9 |
NET_TEST=$(kdig +short +tls @${UPSTREAM## } getdnsapi.net)
|
|
10 |
if [[ $NET_TEST != 185.49.141.37 ]]; then
|
|
11 |
# Couldn't reach upstream nameserver, skip the test
|
|
12 |
exit 77
|
|
13 |
fi
|
|
14 |
|
1 | 15 |
set -e
|
2 | 16 |
|
3 | 17 |
getpid() {
|