summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2008-07-19 00:25:12 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2008-07-19 00:25:12 +0200
commite2fd1f2e101486859899049147df7993c8042df7 (patch)
tree8607371fba184e2dfe8761eabc46f7d9c7b41c93 /test
parentb6e7a354ed1ab53aebdb775a800156629744a065 (diff)
downloadnbb-e2fd1f2e101486859899049147df7993c8042df7.tar.gz
nbb-e2fd1f2e101486859899049147df7993c8042df7.tar.xz
nbb-e2fd1f2e101486859899049147df7993c8042df7.zip
Ensure cmp/mv/rm rules are correct and silent
Make sure the "if cmp ... mv .. rm" in make rules are correct and useful, and the cmp is silent.
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index acb26d8..3a87f6b 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -87,7 +87,7 @@ $(srcdir)/testsuite.at: $(TESTCASES) Makefile.in
done; \
} > testsuite.at.new
@if test -f $(srcdir)/testsuite.at \
- && cmp testsuite.at.new $(srcdir)/testsuite.at; \
+ && cmp testsuite.at.new $(srcdir)/testsuite.at > /dev/null; \
then rm -f testsuite.at.new; \
else echo "INFO: Updating $(srcdir)/testsuite.at"; \
mv -f testsuite.at.new $(srcdir)/testsuite.at; fi
@@ -99,7 +99,7 @@ $(srcdir)/$(TESTSUITE): testsuite.at local.at package.m4 $(TESTCASES)
AUTOM4TE="$(AUTOM4TE)"; \
if test "x$${AUTOM4TE}" = "x"; then AUTOM4TE="autom4te"; fi; \
$${AUTOM4TE} --language=autotest -I '$(srcdir)' -o $(TESTSUITE).tmp $(srcdir)/testsuite.at
- @if test -f $(srcdir)/$(TESTSUITE) && cmp $(TESTSUITE).tmp $(srcdir)/$(TESTSUITE); \
+ @if test -f $(srcdir)/$(TESTSUITE) && cmp $(TESTSUITE).tmp $(srcdir)/$(TESTSUITE) > /dev/null; \
then rm -f $(TESTSUITE).tmp; \
else echo "INFO: Updating $(srcdir)/$(TESTSUITE)"; \
mv -f $(TESTSUITE).tmp $(srcdir)/$(TESTSUITE); fi