X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/236f657b6dab66f31f4902cecfc03b4673f5bb98..7cf5c72a6d353ed5a7e340562c11e54c21c85e5e:/hash/Makefile.am diff --git a/hash/Makefile.am b/hash/Makefile.am index c6167a6..4ab562c 100644 --- a/hash/Makefile.am +++ b/hash/Makefile.am @@ -56,6 +56,13 @@ $(precomp)/crc32-tab.c: mv $@.new $@ endif +check_PROGRAMS += t/crc32.t +t_crc32_t_SOURCES = t/crc32-test.c +t_crc32_t_CPPFLAGS = $(TEST_CPPFLAGS) +t_crc32_t_LDFLAGS = -static + +EXTRA_DIST += t/crc32.tests + ## Universal hashing. pkginclude_HEADERS += unihash.h noinst_LTLIBRARIES += libunihash.la @@ -79,18 +86,11 @@ $(precomp)/unihash-global.c: mv $@.new $@ endif -check_PROGRAMS += unihash.t -unihash_t_SOURCES = unihash.c -unihash_t_CPPFLAGS = $(TEST_CPPFLAGS) -unihash_t_LDFLAGS = -static - -tests:: unihash.t unihash.in - ./unihash.t -f unihash.in - -EXTRA_DIST += unihash-check.pl -CLEANFILES += unihash.in -unihash.in: unihash-check.pl - perl $(srcdir)/unihash-check.pl >$@.new && mv $@.new $@ +check_PROGRAMS += t/unihash.t +t_unihash_t_SOURCES = t/unihash-test.c +t_unihash_t_CPPFLAGS = $(TEST_CPPFLAGS) +t_unihash_t_LDFLAGS = -static +EXTRA_DIST += t/unihash-testgen.py ###----- That's all, folks --------------------------------------------------