Commit 5becb42c authored by Michal Cadilhac's avatar Michal Cadilhac

2005-09-16 Michael Cadilhac <michael.cadilhac@lrde.epita.fr>

	* tests/Makefile.am: Use diff(1) instead of cmp(1) if VERBOSE is set.
	Copy the failing C file to `file.c.fail'.
parent 463f58d8
2005-09-16 Michael Cadilhac <michael.cadilhac@lrde.epita.fr>
* tests/Makefile.am: Use diff(1) instead of cmp(1) if VERBOSE is set.
Copy the failing C file to `file.c.fail'.
2005-09-16 Michael Cadilhac <michael.cadilhac@lrde.epita.fr>
* src/emit_functions.c (emit_emitter_func): Fix small bug on #define
......
......@@ -27,12 +27,15 @@ $(top_builddir)/src/monoburg$(EXEEXT):
$(top_builddir)/src/monoburg$(EXEEXT) $< > $@
%.test: %.c
if ! cmp $< $(srcdir)/$<.ref; then \
echo 'rm $$0; exit 1' > $@; \
else \
echo 'rm $$0; exit 0' > $@; \
diff_tool=diff; \
test x$(VERBOSE) = x && diff_tool=cmp; \
if ! $$diff_tool $< $(srcdir)/$<.ref; then \
cp -f $< $<.fail; \
echo 'rm $$0; exit 1' > $@; \
else \
echo 'rm $$0; exit 0' > $@; \
fi
chmod a+x $@
EXTRA_DIST = $(TESTS:.test=.brg) $(TESTS:.test=.c.ref)
CLEANFILES = $(TESTS:.test=.c)
CLEANFILES = $(TESTS:.test=.c) $(TESTS:.test=.c.fail)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment