X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/e05aabbb81cddec46b3d9da802f632c3b20c67d1..deef49564bd7cd4b9d046569fdc367457f8893a0:/test/Makefile.am?ds=sidebyside diff --git a/test/Makefile.am b/test/Makefile.am index 3ffec2b..8145746 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -48,6 +48,16 @@ TESTS += test check_PROGRAMS += test -include test.c-dep test.h-dep +bad.out: bad.sod $(SOD) + $(SOD) -tc $(srcdir)/bad.sod >bad.raw-out 2>bad.raw-err; rc=$$?; \ + { sed 's/^/| /' bad.raw-out; \ + sed 's/^/* /; s,$(srcdir)/,test/,' bad.raw-err; \ + echo "; rc = $$rc"; } >$@.new && \ + mv $@.new $@ +check-local:: bad.out + diff -u $(srcdir)/bad.ref bad.out +CLEANFILES += bad.raw-out bad.raw-err bad.out + EXTRA_DIST += test.sod nodist_test_SOURCES = test.c test.h BUILT_SOURCES += $(nodist_test_SOURCES)