Re: [Flex-help] flex-2.5.37 testsuite clean up on Solaris
flex is a tool for generating scanners
Brought to you by:
wlestes
|
From: Hugh S. <hg...@dm...> - 2012-10-31 16:29:22
|
On Cygwin I've tested this vanishingly small patch to do the diff -q
to cmp -s change and it passed all tests after a
autoreconf && ./configure && make && make check
diff -Naur flex-2.5.37.orig/tests/test-extended/Makefile.am flex-2.5.37/tests/test-extended/Makefile.am
--- flex-2.5.37.orig/tests/test-extended/Makefile.am 2012-07-21 02:18:27.000000000 +0100
+++ flex-2.5.37/tests/test-extended/Makefile.am 2012-10-31 13:43:59.076084400 +0000
@@ -38,7 +38,7 @@
$(CC) -o $@ $(LDFLAGS) $(OBJS) $(LOADLIBES)
test: $(testname)$(EXEEXT)
- ./$(testname)$(EXEEXT) < $(srcdir)/test.input | diff -q $(srcdir)/test.input -
+ ./$(testname)$(EXEEXT) < $(srcdir)/test.input | cmp -s $(srcdir)/test.input -
.c.o:
$(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) $<
diff -Naur flex-2.5.37.orig/tests/test-quotes/Makefile.am flex-2.5.37/tests/test-quotes/Makefile.am
--- flex-2.5.37.orig/tests/test-quotes/Makefile.am 2012-07-21 02:18:27.000000000 +0100
+++ flex-2.5.37/tests/test-quotes/Makefile.am 2012-10-31 13:44:36.469284400 +0000
@@ -40,7 +40,7 @@
test: $(testname)$(EXEEXT)
grep TEST_XXX < $(srcdir)/scanner.l | sed 's/^ *//' > l.out
grep TEST_XXX < scanner.c | sed 's/^ *//' > c.out
- diff -q l.out c.out
+ cmp -s l.out c.out
./$(testname)$(EXEEXT) < $(srcdir)/test.input
.c.o:
Hope that helps,
Hugh
|