]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- make test more portable (make longtest needs special support programs,
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 16 Aug 2010 12:59:37 +0000 (12:59 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 16 Aug 2010 12:59:37 +0000 (12:59 +0000)
    ldns, wdiff, dig, port-numbers).
  - moved not-always-portable testbound scripts to names .crpl.

git-svn-id: file:///svn/unbound/trunk@2214 be551aaa-1e26-0410-a405-d3ace91eadb9

Makefile.in
doc/Changelog
testdata/03-testbound.tpkg
testdata/val_ds_gost.crpl [moved from testdata/val_ds_gost.rpl with 100% similarity]
testdata/val_ds_gost_downgrade.crpl [moved from testdata/val_ds_gost_downgrade.rpl with 100% similarity]
testdata/val_ds_sha2.crpl [moved from testdata/val_ds_sha2.rpl with 100% similarity]
testdata/val_ds_sha2_downgrade.crpl [moved from testdata/val_ds_sha2_downgrade.rpl with 100% similarity]

index 7a0ff4e2e3d94311f7e62eb7fe8c57c04d2b0980..aabd0f118786c1196604487cf4960e5f93bb034c 100644 (file)
@@ -179,7 +179,7 @@ COMPILE=$(LIBTOOL) --tag=CC --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS)
 LINK=$(LIBTOOL) --tag=CC --mode=link $(strip $(CC) $(staticexe) $(RUNTIME_PATH) $(CFLAGS) $(LDFLAGS))
 LINK_LIB=$(LIBTOOL) --tag=CC --mode=link $(strip $(CC) $(RUNTIME_PATH) $(CFLAGS) $(LDFLAGS) $(staticexe) -version-number @LIBUNBOUND_CURRENT@:@LIBUNBOUND_REVISION@:@LIBUNBOUND_AGE@ -no-undefined)
 
-.PHONY:        clean realclean doc lint all install uninstall tests test download_ldns strip lib
+.PHONY:        clean realclean doc lint all install uninstall tests test download_ldns strip lib longtest longcheck check
 
 $(BUILD)%.lo:    $(srcdir)/%.c 
        $(INFO) Build $<
@@ -194,7 +194,15 @@ TEST_BIN=$(addsuffix $(EXEEXT),asynclook delayer harvest lock-verify \
        memstats perf pktview signit streamtcp testbound unittest)
 tests: all $(TEST_BIN)
 
-test:  tests
+check: test
+longcheck: longtest
+
+test:  unittest$(EXEEXT) testbound$(EXEEXT)
+       ./unittest$(EXEEXT)
+       for x in testdata/*.rpl; do if ./testbound$(EXEEXT) -p $$x >/dev/null 2>&1; then echo $$x OK; else echo $$x failed; exit 1; fi done
+       @echo test OK
+
+longtest:      tests
        if test -x "`which bash`"; then bash testcode/do-tests.sh; else sh testcode/do-tests.sh; fi
 
 lib:   libunbound.la
index 024ddec998dc2d8a93e6e9f2c5cb25be1e428663..444377abde7750a1624be1623af1d40ca145e517 100644 (file)
@@ -1,6 +1,8 @@
 16 August 2010: Wouter
        - Fix acx_nlnetlabs.m4 configure output for autoconf-2.66 AS_TR_CPP
          changes, uses m4_bpatsubst now.
+       - make test (or make check) should be more portable and run the unit 
+         test and testbound scripts. (make longtest has special requirements).
 
 13 August 2010: Wouter
        - More pleasant remote control command parsing.
index 432e942643d817bbe5ccc3a9bcd0f20a27a74abc..30a18456414f39bb8d129289cbed4b38c9cce48d 100644 (file)
Binary files a/testdata/03-testbound.tpkg and b/testdata/03-testbound.tpkg differ