From: Eric S. Raymond Date: Sun, 14 Sep 2003 15:30:14 +0000 (+0000) Subject: Use -u diff. X-Git-Tag: 1.6~29 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=0cf5ab4671e52efc6d982c4634582a36e8b01e2a;p=comparator.git Use -u diff. --- diff --git a/Makefile b/Makefile index 423cf7f..8a86655 100644 --- a/Makefile +++ b/Makefile @@ -47,10 +47,20 @@ regress: comparator -C -d test test$${n}-a test$${n}-b >test/out$${n}.log 2>/dev/null;\ if diff -c test/out$${n}.good test/out$${n}.log; \ then \ - echo "Test $${n} passed."; \ + echo "Test $${n} from trees passed."; \ else \ - echo "Test $${n} failed."; \ - fi \ + echo "Test $${n} from trees failed."; \ + fi; \ + comparator -C -d test -c test$${n}-a >test$${n}-a.scf; \ + comparator -C -d test -c test$${n}-b >test$${n}-b.scf; \ + comparator -C test$${n}-a.scf test$${n}-b.scf >test/out$${n}.log 2>/dev/null;\ + rm test$${n}-a.scf test$${n}-b.scf; \ + if diff -u test/out$${n}.good test/out$${n}.log; \ + then \ + echo "Test $${n} from SCFs passed."; \ + else \ + echo "Test $${n} from SCFs failed."; \ + fi; \ done install: comparator.1 uninstall