Skip to content

Commit 56ca583

Browse files
committed
Issue #407 run only offline tests
1 parent ed36240 commit 56ca583

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

ChangeLog

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* Issue #432: answer_ipv4_address and answer_ipv6_address in reply
33
and response dicts.
44
* Issue #430: Record and guard UDP max payload size with servers.
5+
* Issue #407: Run only offline-tests option with:
6+
src/test/tpkg/run-offline-only.sh (only with git checkouts).
57

68
* 2019-12-20: Version 1.6.0-beta.1
79
* Migration of build system to cmake. Build now works on Ubuntu,

project-doc/packages.txt

+3
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ https://github.com/astlinux-project/astlinux/tree/master/package/getdns
1515

1616
For Genode, created and maintained by Emery Hemingway (ehmry)
1717
https://github.com/genodelabs/genode/blob/master/repos/ports/ports/getdns.port
18+
19+
For Gentoo, created and maintained by CaseOf (Quentin R.?)
20+
https://packages.gentoo.org/packages/net-dns/getdns

src/test/tpkg/run-offline-only.sh

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/sh
2+
3+
export SRCDIR=`dirname $0`
4+
. `dirname $0`/setup-env.sh
5+
6+
control_c()
7+
# run if user hits control-c
8+
{
9+
echo -en "\n*** Exiting ***\n"
10+
exit $?
11+
}
12+
13+
for TEST_PKG in 080-iana-rr-types.tpkg 125-valgrind-checks.tpkg \
14+
130-run-unit-tests.tpkg 225-stub-only-valgrind-checks.tpkg \
15+
230-stub-only-run-unit-tests.tpkg 270-header-extension.tpkg \
16+
290-transports.tpkg 330-event-loops-unit-tests.tpkg \
17+
340-run-stubby.tpkg
18+
do
19+
"${TPKG}" $* fake "${TEST_PKG}"
20+
done
21+
for TEST_PKG in ${SRCDIR}/*.tpkg
22+
do
23+
"${TPKG}" $* exe "${TEST_PKG}"
24+
# trap keyboard interrupt (control-c)
25+
trap control_c 2
26+
done
27+
"${TPKG}" -n -1 r

0 commit comments

Comments
 (0)