From: Jelte Jansen Date: Mon, 19 Sep 2005 12:45:22 +0000 (+0000) Subject: updated tests and configures X-Git-Tag: release-1.0.0~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e51fb835cf44bfdbfb53cb6d60ca0fd3e490aa97;p=thirdparty%2Fldns.git updated tests and configures --- diff --git a/configure.ac b/configure.ac index e7a0497d..2907e801 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) -AC_INIT(libdns, 1.00, libdns@nlnetlabs.nl, libdns) +AC_INIT(libdns, 1.0.0, libdns@nlnetlabs.nl, libdns) AC_CONFIG_SRCDIR([packet.c]) OURCPPFLAGS='-ansi -pedantic -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600' diff --git a/examples/configure.ac b/examples/configure.ac index d9e5fe49..5e6d2a4b 100644 --- a/examples/configure.ac +++ b/examples/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) -AC_INIT(libdns-tests, 1.0, ldns@nlnetlabs.nl, ldns-tests-1.0) +AC_INIT(libdns-tests, 1.0.0, ldns@nlnetlabs.nl, ldns-tests-1.0.0) AC_CONFIG_SRCDIR([../ldns/config.h]) AC_AIX diff --git a/tests/Makefile.in b/tests/Makefile.in index efff8979..3b8230b3 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -20,7 +20,7 @@ LINK = $(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) HEADER = config.h TESTS = run-test0 run-test7 run-test18 run-test19 run-test20 \ dname-label-test notify \ - rrsig-test serial server ldns-mx ldns-chaos + rrsig-test serial server .PHONY: all clean realclean diff --git a/tests/configure.ac b/tests/configure.ac index d9e5fe49..5e6d2a4b 100644 --- a/tests/configure.ac +++ b/tests/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) -AC_INIT(libdns-tests, 1.0, ldns@nlnetlabs.nl, ldns-tests-1.0) +AC_INIT(libdns-tests, 1.0.0, ldns@nlnetlabs.nl, ldns-tests-1.0.0) AC_CONFIG_SRCDIR([../ldns/config.h]) AC_AIX diff --git a/tests/run-test18.c b/tests/run-test18.c index 5ed19daa..940bb552 100644 --- a/tests/run-test18.c +++ b/tests/run-test18.c @@ -160,7 +160,7 @@ main() printf("Now we are going to verify\n"); - printf("\n[%d]\n", ldns_verify(rrs, signatures, dnskeys)); + printf("\n[%d]\n", ldns_verify(rrs, signatures, dnskeys, NULL)); return 0; } diff --git a/tests/run-test20.c b/tests/run-test20.c index f8bc2900..8907dea2 100644 --- a/tests/run-test20.c +++ b/tests/run-test20.c @@ -38,7 +38,8 @@ main(void) ldns_rr_list *rrs; ldns_rr_list *signatures; ldns_rr_list *dnskeys; -ldns_rr_list *result; + ldns_rr_list *result_keys; + ldns_status result; /* ----- */ FILE *f; @@ -99,12 +100,13 @@ ldns_rr_list *result; printf("Now we are going to verify\n"); - result = ldns_verify(rrs, signatures, dnskeys); + result_keys = ldns_rr_list_new(); + result = ldns_verify(rrs, signatures, dnskeys, result_keys); -printf("RESULT:\n"); -ldns_rr_list_print(stdout, result); + printf("RESULT:\n"); + ldns_rr_list_print(stdout, result_keys); - if (result != NULL) { + if (result == LDNS_STATUS_OK) { printf("SUCCESS\n\n"); } else { printf("FAILURE\n\n");