]> git.draconx.ca Git - liblbx.git/blobdiff - Makefile.am
tests: First stab at a proper test suite.
[liblbx.git] / Makefile.am
index 966ad2ea7d587517c209867b2b54c078bb8e4c23..ccadd435ccd78a300204d67c617714b2930ca1e4 100644 (file)
@@ -4,6 +4,7 @@
 # This is free software: you are free to do what the fuck you want to.
 # There is NO WARRANTY, to the extent permitted by law.
 
+AUTOMAKE_OPTIONS = parallel-tests color-tests
 ACLOCAL_AMFLAGS = -I m4 -I common/m4
 
 EXTRA_DIST         = m4/gnulib-cache.m4
@@ -48,6 +49,23 @@ lbxgui_SOURCES = src/gui/lbxgui.c src/gui/render.c src/gui/render.h \
 lbxgui_LDFLAGS = $(AM_LDFLAGS) -export-dynamic
 lbxgui_LDADD = liblbx.la $(GTK_LIBS)
 
+TEST_EXTENSIONS = .tap
+
+TAP_LOG_COMPILER = $(SHELL)
+TAP_LOG_DRIVER = AM_TAP_AWK='$(AWK)' \
+       $(SHELL) $(srcdir)/tests/util/tap-driver.sh
+
+TESTS = tests/empty-image.tap
+
+mostlyclean-local: clean-testdirs
+clean-testdirs:
+       for dir in $(TESTS:.tap=.dir); do \
+               case $$dir in \
+               *.dir) rm -rf "$$dir" ;; \
+               esac; \
+       done
+.PHONY: clean-testdirs
+
 .xml.c:
        $(AM_V_GEN) printf '%s\n' $(*F) | sed -e 's/[^[:alnum:]]/_/g' \
                -e 's/.*/const char &[] =/' > $@.tmp