X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/236f657b6dab66f31f4902cecfc03b4673f5bb98..7cf5c72a6d353ed5a7e340562c11e54c21c85e5e:/struct/Makefile.am diff --git a/struct/Makefile.am b/struct/Makefile.am index 280e52d..a718c09 100644 --- a/struct/Makefile.am +++ b/struct/Makefile.am @@ -47,26 +47,12 @@ pkginclude_HEADERS += darray.h libstruct_la_SOURCES += darray.c LIBMANS += darray.3 -CLEANFILES += da.out -tests:: darray.t da.in da.ref - ./darray.t da.out - cmp da.out da.ref - @echo "darray OK" - -check_PROGRAMS += darray.t -darray_t_SOURCES = da-test.c -darray_t_CPPFLAGS = $(TEST_CPPFLAGS) -darray_t_LDFLAGS = -static - -EXTRA_DIST += da-gtest -CLEANFILES += da.in -da.in: da-gtest - perl $(srcdir)/da-gtest 10000 >$@.new && mv $@.new $@ - -EXTRA_DIST += da-ref -CLEANFILES += da.ref -da.ref: da-ref da.in - perl $(srcdir)/da-ref $@.new && mv $@.new $@ +check_PROGRAMS += t/darray.t +t_darray_t_SOURCES = t/da-test.c +t_darray_t_CPPFLAGS = $(TEST_CPPFLAGS) +t_darray_t_LDFLAGS = -static + +EXTRA_DIST += t/da-gtest.py ## Hash tables. pkginclude_HEADERS += hash.h @@ -78,26 +64,12 @@ pkginclude_HEADERS += sym.h libstruct_la_SOURCES += sym.c LIBMANS += sym.3 -CLEANFILES += sym.out -tests:: sym.t sym.in sym.ref - ./sym.t sym.out - cmp sym.out sym.ref - @echo "sym OK" - -check_PROGRAMS += sym.t -sym_t_SOURCES = sym-test.c -sym_t_CPPFLAGS = $(TEST_CPPFLAGS) -sym_t_LDFLAGS = -static +check_PROGRAMS += t/sym.t +t_sym_t_SOURCES = t/sym-test.c +t_sym_t_CPPFLAGS = $(TEST_CPPFLAGS) +t_sym_t_LDFLAGS = -static -EXTRA_DIST += sym-gtest -CLEANFILES += sym.in -sym.in: sym-gtest - perl $(srcdir)/sym-gtest 10000 >$@.new && mv $@.new $@ - -EXTRA_DIST += sym-ref -CLEANFILES += sym.ref -sym.ref: sym-ref sym.in - perl $(srcdir)/sym-ref $@.new && mv $@.new $@ +EXTRA_DIST += t/sym-gtest.py ## Atoms. pkginclude_HEADERS += atom.h @@ -109,15 +81,9 @@ pkginclude_HEADERS += assoc.h libstruct_la_SOURCES += assoc.c LIBMANS += assoc.3 -CLEANFILES += assoc.out -tests:: assoc.t sym.in sym.ref - ./assoc.t assoc.out - cmp assoc.out sym.ref - @echo "sym OK" - -check_PROGRAMS += assoc.t -assoc_t_SOURCES = assoc-test.c -assoc_t_CPPFLAGS = $(TEST_CPPFLAGS) -assoc_t_LDFLAGS = -static +check_PROGRAMS += t/assoc.t +t_assoc_t_SOURCES = t/assoc-test.c +t_assoc_t_CPPFLAGS = $(TEST_CPPFLAGS) +t_assoc_t_LDFLAGS = -static ###----- That's all, folks --------------------------------------------------