mirror of https://github.com/getdnsapi/getdns.git
tpkg for the header extension
This commit is contained in:
parent
b12aeb80fb
commit
6e0d8de885
|
@ -0,0 +1,15 @@
|
|||
builddir = @BUILDDIR@
|
||||
testname = @TPKG_NAME@
|
||||
LIBTOOL = $(builddir)/libtool
|
||||
|
||||
CFLAGS=-I$(builddir)/src
|
||||
LDLIBS=$(builddir)/src/libgetdns.la
|
||||
|
||||
.SUFFIXES: .c .o .a .lo .h
|
||||
|
||||
.c.lo:
|
||||
$(LIBTOOL) --quiet --tag=CC --mode=compile $(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
$(testname): $(testname).lo
|
||||
$(LIBTOOL) --tag=CC --mode=link $(CC) $(LDLIBS) $(LDFLAGS) -o $@ $<
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
BaseName: 270-header-extension
|
||||
Version: 1.0
|
||||
Description: Test json pointers
|
||||
CreationDate: do 28 apr 2016 13:48:05 CEST
|
||||
Maintainer: Willem Toorop
|
||||
Category:
|
||||
Component:
|
||||
CmdDepends:
|
||||
Depends: 200-stub-only-compile.tpkg
|
||||
Help:
|
||||
Pre: 270-header-extension.pre
|
||||
Post:
|
||||
Test: 270-header-extension.test
|
||||
AuxFiles:
|
||||
Passed:
|
||||
Failure:
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
"answer_type": GETDNS_NAMETYPE_DNS,
|
||||
"canonical_name": <bindata of "bogus.nlnetlabs.nl.">,
|
||||
"replies_tree":
|
||||
[
|
||||
{
|
||||
"additional": [],
|
||||
"answer": [],
|
||||
"answer_type": GETDNS_NAMETYPE_DNS,
|
||||
"authority": [],
|
||||
"canonical_name": <bindata of "bogus.nlnetlabs.nl.">,
|
||||
"header":
|
||||
{
|
||||
"aa": 0,
|
||||
"ad": 0,
|
||||
"ancount": 0,
|
||||
"arcount": 0,
|
||||
"cd": 0,
|
||||
"nscount": 0,
|
||||
"opcode": GETDNS_OPCODE_STATUS,
|
||||
"qdcount": 0,
|
||||
"qr": 1,
|
||||
"ra": 0,
|
||||
"rcode": GETDNS_RCODE_NOTIMP,
|
||||
"rd": 0,
|
||||
"tc": 0,
|
||||
"z": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"status": GETDNS_RESPSTATUS_NO_NAME
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
# #-- 270-header-extension.test --#
|
||||
# source the master var file when it's there
|
||||
[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
|
||||
# use .tpkg.var.test for in test variable passing
|
||||
[ -f .tpkg.var.test ] && source .tpkg.var.test
|
||||
|
||||
(
|
||||
grep '^CC=' "${BUILDDIR}/build-stub-only/src/Makefile"
|
||||
grep '^LDFLAGS=' "${BUILDDIR}/build-stub-only/src/Makefile"
|
||||
|
||||
BUILDDIR4SED=`echo "${BUILDDIR}/build-stub-only" | sed 's/\//\\\\\//g'`
|
||||
sed -e "s/@BUILDDIR@/${BUILDDIR4SED}/g" \
|
||||
-e "s/@TPKG_NAME@/${TPKG_NAME}/g" "${TPKG_NAME}.Makefile"
|
||||
) > Makefile
|
|
@ -0,0 +1,7 @@
|
|||
# #-- 270-header-extension.test --#
|
||||
# source the master var file when it's there
|
||||
[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
|
||||
# use .tpkg.var.test for in test variable passing
|
||||
[ -f .tpkg.var.test ] && source .tpkg.var.test
|
||||
|
||||
make && "./${TPKG_NAME}" | tee out && diff out "${TPKG_NAME}.good"
|
Loading…
Reference in New Issue