Adjust "make check" to actually pass.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 20 Jun 2017 19:17:08 +0000 (15:17 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 20 Jun 2017 19:17:08 +0000 (15:17 -0400)
The f_decls test doesn't quite pass currently, because there's too
much whitespace in the function return types.  We don't particularly
care about this for PG purposes, as NetBSD indent did that too, and
we've always had a fixup step for it in the pgindent wrapper script.
So make the expected output file match what actually happens.
(If this ever does get fixed by upstream, we can take that fixup
step out of pgindent.)

In passing, make the "make check" script less noisy.

Makefile
tests/f_decls.0.stdout

index e8768c8700c037a48378d97375bec39f3376ad47..8c5ff6e5b157f1e93bc9256917f3071a4632d5df 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -20,9 +20,9 @@ PGXS := $(shell $(PG_CONFIG) --pgxs)
 include $(PGXS)
 
 check: $(PROGRAM)
-       rm -f tests.diff
-       cp $(srcdir)/tests/*.list .
-       for testsrc in $(srcdir)/tests/*.0; do \
+       @rm -f tests.diff
+       @cp $(srcdir)/tests/*.list .
+       @for testsrc in $(srcdir)/tests/*.0; do \
                test=`basename "$$testsrc" .0`; \
                ./$(PROGRAM) $$testsrc $$test.out -P$(srcdir)/tests/$$test.pro || echo FAILED >>$$test.out; \
                diff -u $$testsrc.stdout $$test.out >>tests.diff 2>&1 || true; \
index e4177df18edd13e9b1d923ce1410f57c170f3361..bc2124855247e6d30b5a091f9f69ec1e46ce47f3 100644 (file)
@@ -1,4 +1,4 @@
-char *
+char          *
 x(void)
 {
        type            identifier;
@@ -13,7 +13,7 @@ x(void)
        return NULL;
 }
 
-int *
+int           *
 y(void)
 {