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

gEDA-cvs: CVS update: Makefile.am



  User: ahvezda 
  Date: 07/04/21 15:13:39

  Modified:    .        Makefile.am
  Log:
  A bunch of work/changes to get "make distcheck" to work correctly (run all the 
  
  regression tests when doing check and distcheck)
  
  
  
  
  Revision  Changes    Path
  1.5       +14 -9     eda/geda/gaf/gnetlist/tests/drc2/Makefile.am
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Makefile.am
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gnetlist/tests/drc2/Makefile.am,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- Makefile.am	17 Feb 2007 03:15:41 -0000	1.4
  +++ Makefile.am	21 Apr 2007 19:13:39 -0000	1.5
  @@ -39,22 +39,27 @@
   # make distcheck
   check_SCRIPTS = tests
   
  +BUILDDIR=$(top_builddir)/tests/drc2
  +SRCDIR=$(srcdir)
  +
   tests:
   # cleanup
  -	rm -f new_*
  +	rm -f $(BUILDDIR)/new_*
   
   # make the tests
  -	for file in *.sch; do \
  +	for file in $(SRCDIR)/*.sch; do \
   	  file_basename=`basename $$file .sch`; \
  -	  echo Checking test in $$file_basename.sch; \
  -	  gnetlist -g drc2 -o new_$$file_basename.drc2 $$file || true; \
  -	  test -f $$file_basename.drc2 && \
  -            diff $$file_basename.drc2 new_$$file_basename.drc2; \
  +	  echo Checking test in $(SRCDIR)/$$file_basename.sch; \
  +	  ( export TESTDIR=$(SRCDIR) ; \
  +	    gnetlist -g drc2 -o $(BUILDDIR)/new_$$file_basename.drc2 \
  +            $$file ); \
  +          diff $(SRCDIR)/$$file_basename.drc2 \
  +                 $(BUILDDIR)/new_$$file_basename.drc2; \
             if [ $$? -ne 0 ]; then \
  -	     echo "Test in $$file_basename.sch FAILED!!"; \
  -	     break; \
  +	     echo "Test in $(SRCDIR)/$$file_basename.sch FAILED!!"; \
  +	     exit 1; \
   	  else \
  -	     echo "Test in $$file_basename.sch PASSED."; \
  +	     echo "Test in $(SRCDIR)/$$file_basename.sch PASSED."; \
   	  fi; \
   	done
   
  
  
  


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