[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: gaf.git: branch: master updated (1.5.0-20080706-328-g817e5dc)



The branch, master has been updated
       via  817e5dcfe478ae02f60d74ca1574518a1976bd17 (commit)
      from  635546dcc9615c490e85ff6e7ef0c7d990af6842 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 gnetlist/tests/drc2/Makefile.am |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)


=================
 Commit Messages
=================

commit 817e5dcfe478ae02f60d74ca1574518a1976bd17
Author: Dan McMahill <dan@xxxxxxxxxxxx>
Date:   Mon Dec 1 02:55:24 2008 -0500

    Run all tests and report failures at the end.  Also add missing .PHONY.
    
    - Add missing .PHONY to the tests target.
    - Rather than exiting on the first test that fails, run them all and
      keep track of how many failed and which ones.  This lets you run
      through all the tests and then come back to the failed ones.

:100644 100644 0ba7e04... b244fd3... M	gnetlist/tests/drc2/Makefile.am

=========
 Changes
=========

commit 817e5dcfe478ae02f60d74ca1574518a1976bd17
Author: Dan McMahill <dan@xxxxxxxxxxxx>
Date:   Mon Dec 1 02:55:24 2008 -0500

    Run all tests and report failures at the end.  Also add missing .PHONY.
    
    - Add missing .PHONY to the tests target.
    - Rather than exiting on the first test that fails, run them all and
      keep track of how many failed and which ones.  This lets you run
      through all the tests and then come back to the failed ones.

diff --git a/gnetlist/tests/drc2/Makefile.am b/gnetlist/tests/drc2/Makefile.am
index 0ba7e04..b244fd3 100644
--- a/gnetlist/tests/drc2/Makefile.am
+++ b/gnetlist/tests/drc2/Makefile.am
@@ -42,11 +42,14 @@ check_SCRIPTS = tests
 BUILDDIR=$(top_builddir)/tests/drc2
 SRCDIR=$(srcdir)
 
+.PHONY : tests
 tests:
 # cleanup
 	rm -f $(BUILDDIR)/new_*
+	rm -f $(BUILDDIR)/failed.log
 
 # make the tests
+	failed=0; \
 	for file in $(SRCDIR)/*.sch; do \
 	  file_basename=`basename $$file .sch`; \
 	  echo Checking test in $(SRCDIR)/$$file_basename.sch; \
@@ -56,12 +59,18 @@ tests:
           diff $(SRCDIR)/$$file_basename.drc2 \
                  $(BUILDDIR)/new_$$file_basename.drc2; \
           if [ $$? -ne 0 ]; then \
-	     echo "Test in $(SRCDIR)/$$file_basename.sch FAILED!!"; \
-	     exit 1; \
+	     echo "# Test in $(SRCDIR)/$$file_basename.sch FAILED!!" | tee -a $(BUILDDIR)/failed.log ; \
+	     echo "diff $(SRCDIR)/$$file_basename.drc2 $(BUILDDIR)/new_$$file_basename.drc2" >> $(BUILDDIR)/failed.log ; \
+	     failed=`expr $$failed + 1`; \
 	  else \
 	     echo "Test in $(SRCDIR)/$$file_basename.sch PASSED."; \
 	  fi; \
-	done
+	done ; \
+	if test $$failed -ne 0 ; then \
+		echo "FAILED $$failed test(s)" ; \
+		cat $(BUILDDIR)/failed.log ; \
+		exit 1 ; \
+	fi
 
 MOSTLYCLEANFILES = new_* core *.log FILE *.ps *~
 CLEANFILES = new_* core *.log FILE *.ps *~




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs