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

gEDA-cvs: branch: stable-1.0 updated (1.0-20070526-13-ge67e418)



The branch, stable-1.0 has been updated
       via  e67e4182992a494ac8203b201f26181f7b6221d8 (commit)
       via  8c4f362d4b6e779f3319c960ee349f6a54ad71aa (commit)
      from  ddb277edae93607d3525aa26158d651dd5667730 (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/configure.ac                 |    2 +-
 gnetlist/scheme/gnet-cascade.scm      |    6 +-
 gnetlist/scheme/gnet-pcbpins.scm      |    4 +-
 gnetlist/tests/Makefile.am            |   18 ++++-
 gnetlist/tests/cascade.cascade        |   19 +++++
 gnetlist/tests/cascade.sch            |  126 +++++++++++++++++++++++++++++++++
 gnetlist/tests/runtest.sh             |    8 ++-
 gnetlist/tests/singlenet.pcbpins      |   18 +++++
 gnetlist/tests/spice-sdb/Makefile.am  |    2 +-
 gnetlist/tests/spice-sdb/run_tests.sh |   12 +++-
 gnetlist/tests/spice-sdb/tests.list   |   13 ++--
 11 files changed, 209 insertions(+), 19 deletions(-)
 create mode 100644 gnetlist/tests/cascade.cascade
 create mode 100644 gnetlist/tests/cascade.sch
 create mode 100644 gnetlist/tests/singlenet.pcbpins


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

commit e67e4182992a494ac8203b201f26181f7b6221d8
Author: Dan McMahill <dan@xxxxxxxxxxxx>
Date:   Tue Jun 26 18:11:39 2007 -0400

    guile-1.8.1 fixes and testsuite additions.
    
    Updated the cascade and pcbpins backends to work with guile-1.8.1.
    While here added a testsuite entry for these two backends.
    (cherry picked from commit b44a1e527497e55471a75b0af410e78310ed50d8)

:100644 100644 4a2e2cd... 75a444a... M	gnetlist/scheme/gnet-cascade.scm
:100644 100644 92a435a... ec01997... M	gnetlist/scheme/gnet-pcbpins.scm
:100644 100644 b6a40d0... 0ff4e17... M	gnetlist/tests/Makefile.am
:000000 100644 0000000... e11fa3c... A	gnetlist/tests/cascade.cascade
:000000 100644 0000000... 8d91db9... A	gnetlist/tests/cascade.sch
:000000 100644 0000000... 354731e... A	gnetlist/tests/singlenet.pcbpins

commit 8c4f362d4b6e779f3319c960ee349f6a54ad71aa
Author: Dan McMahill <dan@xxxxxxxxxxxx>
Date:   Tue Jun 26 16:20:58 2007 -0400

    Portability fixes for the testsuite.
    
    Get the testsuite fully working on SunOS-5.9/sparc.  This
    entails two issues.  The "-I" option to diff is a GNU
    extension and is not supported by the solaris diff.  Work
    around this by using sed to filter out the lines which were
    to be ignored.  This addresses the tests run by gnetlist/tests/runtest.sh.
    
    The other issue is that the longopts tests in the spice-sdb
    testsuite should not be run on a system that does not have
    getopt_long().  To address this, extend the run_tests.sh to allow
    a variable in the tests.list file to disable a test unless set to "yes".
    (cherry picked from commit f8680b18c8e27617eccbbf158acb84ccac7ac386)

:100644 100644 5a1a357... b5e4a50... M	gnetlist/configure.ac
:100644 100644 0992edf... b6a40d0... M	gnetlist/tests/Makefile.am
:100755 100755 df9084c... 381f5e5... M	gnetlist/tests/runtest.sh
:100644 100644 633c519... 1747cf6... M	gnetlist/tests/spice-sdb/Makefile.am
:100755 100755 ed1c706... fe10f64... M	gnetlist/tests/spice-sdb/run_tests.sh
:100644 100644 fba2b7a... dfc9d69... M	gnetlist/tests/spice-sdb/tests.list

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

commit e67e4182992a494ac8203b201f26181f7b6221d8
Author: Dan McMahill <dan@xxxxxxxxxxxx>
Date:   Tue Jun 26 18:11:39 2007 -0400

    guile-1.8.1 fixes and testsuite additions.
    
    Updated the cascade and pcbpins backends to work with guile-1.8.1.
    While here added a testsuite entry for these two backends.
    (cherry picked from commit b44a1e527497e55471a75b0af410e78310ed50d8)

diff --git a/gnetlist/scheme/gnet-cascade.scm b/gnetlist/scheme/gnet-cascade.scm
index 4a2e2cd..75a444a 100644
--- a/gnetlist/scheme/gnet-cascade.scm
+++ b/gnetlist/scheme/gnet-cascade.scm
@@ -54,7 +54,7 @@
   (lambda (port pkgs)
     (if (not (null? pkgs))
 	(let ( (package (car pkgs) )
-	       (sourcenet nil)
+	       (sourcenet #f)
 	       )
 	  (if (string=? (get-device package) "cascade-source")
 	      (begin
@@ -80,7 +80,7 @@
 	      )
 	  )
 	;; the list of packages is now empty
-	nil
+	'()
 	)
     )
   )
@@ -145,7 +145,7 @@
      (display (string-append "Writing to output file \"" filename
 			     "\"... ") )
       (let ((port (open-output-file filename))
-	    (first_block nil)
+	    (first_block #f)
 	    )
 
 	;; write the header
diff --git a/gnetlist/scheme/gnet-pcbpins.scm b/gnetlist/scheme/gnet-pcbpins.scm
index 92a435a..ec01997 100644
--- a/gnetlist/scheme/gnet-pcbpins.scm
+++ b/gnetlist/scheme/gnet-pcbpins.scm
@@ -27,8 +27,8 @@
 	(begin
 	  (let (
 		(pin (car pins))
-		(label nil)
-		(pinnum nil)
+		(label #f)
+		(pinnum #f)
 		)
 	    (display "ChangePinName(" port)
 	    (display package port)
diff --git a/gnetlist/tests/Makefile.am b/gnetlist/tests/Makefile.am
index b6a40d0..0ff4e17 100644
--- a/gnetlist/tests/Makefile.am
+++ b/gnetlist/tests/Makefile.am
@@ -3,11 +3,13 @@
 SUBDIRS = hierarchy drc2 spice-sdb
 
 EXTRA_DIST = runtest.sh \
-	     7447.vhdl README amp.spice darlington.spice netattrib.geda \
+	     7447.vhdl README amp.spice cascade.sch cascade.cascade \
+	     darlington.spice netattrib.geda \
 	     netattrib.sch powersupply.PCB powersupply.allegro \
              powersupply.bae powersupply.geda powersupply.maxascii \
              powersupply.pads powersupply.protelII powersupply.sch \
              powersupply.tango singlenet.PCB singlenet.geda singlenet.pads \
+             singlenet.pcbpins \
              singlenet.protelII singlenet.sch stack_1.geda amp.spice-sdb \
 	     darlington.spice-sdb skt.switcap test.ana multiequal.sch \
 	     multiequal.spice-sdb gnetlistrc.vhdl
@@ -40,6 +42,10 @@ tests:
 	$(SRCDIR)/runtest.sh $(SRCDIR)/singlenet.sch PCB \
 		$(BUILDDIR) $(SRCDIR)
 
+# singlenet pcbpins
+	$(SRCDIR)/runtest.sh $(SRCDIR)/singlenet.sch pcbpins \
+		$(BUILDDIR) $(SRCDIR)
+
 # singlenet PADS
 	$(SRCDIR)/runtest.sh $(SRCDIR)/singlenet.sch pads \
 		$(BUILDDIR) $(SRCDIR)
@@ -84,6 +90,10 @@ tests:
 	$(SRCDIR)/runtest.sh $(SRCDIR)/multiequal.sch spice-sdb \
 		$(BUILDDIR) $(SRCDIR)
 
+# cascade backend
+	$(SRCDIR)/runtest.sh $(SRCDIR)/cascade.sch cascade \
+		$(BUILDDIR) $(SRCDIR)
+
 # Cleanup
 	rm -f $(BUILDDIR)/new_*
 	rm -rf $(BUILDDIR)/devfiles
diff --git a/gnetlist/tests/cascade.cascade b/gnetlist/tests/cascade.cascade
new file mode 100644
index 0000000..e11fa3c
--- /dev/null
+++ b/gnetlist/tests/cascade.cascade
@@ -0,0 +1,19 @@
+# Cascade (http://rfcascade.sourceforge.net)
+# Created with gEDA/gnetlist
+
+# Initial global defaults
+defaults RIN=50 ROUT=50 RHO=0 
+
+# Source definition
+source C=0 CN=70 BW=1 
+
+# Cascaded system
+AMP1 G=12 NF=5 IIP3=-2 
+defaults RIN=50 ROUT=50 RHO=0.2 
+FL1 G=-5.5 NF=5.5 
+MX1 G=12 NF=15 IIP3=5 
+T1 G=0 NF=0 RIN=50 ROUT=50 
+AMP2 G=10 NF=12 IIP3=12 
+
+# End of netlist created by gEDA/gnetlist
+
diff --git a/gnetlist/tests/cascade.sch b/gnetlist/tests/cascade.sch
new file mode 100644
index 0000000..8d91db9
--- /dev/null
+++ b/gnetlist/tests/cascade.sch
@@ -0,0 +1,126 @@
+v 20070526 1
+C 40000 40000 0 0 0 title-B.sym
+C 41300 48800 1 0 0 cascade-defaults-2.sym
+{
+T 43100 52200 5 10 0 1 0 0 1
+device=cascade-defaults-top
+T 41400 48900 5 10 1 1 0 0 1
+refdes=DEFAULTS
+T 41500 49500 5 10 1 0 0 0 1
+RIN=50
+T 42900 49500 5 10 1 0 0 0 1
+ROUT=50
+T 44500 49500 5 10 1 0 0 0 1
+RHO=0
+}
+C 40800 46000 1 0 0 cascade-source-1.sym
+{
+T 39600 45900 5 10 0 0 0 0 1
+device=cascade-source
+T 40900 47300 5 10 1 1 0 0 1
+refdes=SOURCE
+T 40100 46200 5 10 0 1 0 0 1
+footprint=none
+T 40900 46400 5 10 1 0 0 0 1
+C=0
+T 40900 46200 5 10 1 0 0 0 1
+CN=70
+T 40900 46000 5 10 1 0 0 0 1
+BW=1
+}
+C 42500 46100 1 0 0 cascade-amp-1.sym
+{
+T 42425 46650 5 8 0 0 0 0 1
+device=cascade-amp
+T 42700 47500 5 10 1 1 0 0 1
+refdes=AMP1
+T 42100 46400 5 10 0 1 0 0 1
+footprint=none
+T 42800 46500 5 10 1 0 0 0 1
+G=12
+T 42800 46300 5 10 1 0 0 0 1
+NF=5
+T 42800 46100 5 10 1 0 0 0 1
+IIP3=-2
+}
+C 44000 46600 1 0 0 cascade-defaults-1.sym
+{
+T 44525 47550 5 8 0 0 0 0 1
+device=cascade-defaults
+T 44200 47700 5 10 1 1 0 0 1
+refdes=DEF1
+T 44300 47200 5 10 1 0 0 1 1
+RIN=50
+T 44300 47000 5 10 1 0 0 1 1
+ROUT=50
+T 44300 46800 5 10 1 0 0 1 1
+RHO=0.2
+T 44000 46600 5 10 0 1 0 0 1
+footprint=none
+}
+C 46500 46200 1 0 0 cascade-filter-1.sym
+{
+T 46700 47700 5 10 0 0 0 0 1
+footprint=none
+T 44700 44850 5 10 0 1 0 0 1
+device=cascade-filter
+T 46800 47500 5 10 1 1 0 0 1
+refdes=FL1
+T 46900 46400 5 10 1 0 0 0 1
+G=-5.5
+T 46900 46200 5 10 1 0 0 0 1
+NF=5.5
+}
+C 48500 45800 1 0 0 cascade-mixer-1.sym
+{
+T 49000 47400 5 10 0 0 0 0 1
+footprint=none
+T 47300 45650 5 10 0 1 0 0 1
+device=cascade-mixer
+T 48800 47600 5 10 1 1 0 0 1
+refdes=MX1
+T 49000 46200 5 10 1 0 0 0 1
+G=12
+T 49000 46000 5 10 1 0 0 0 1
+NF=15
+T 49000 45800 5 10 1 0 0 0 1
+IIP3=5
+}
+C 50500 45100 1 0 0 cascade-transformer-1.sym
+{
+T 50800 47150 5 10 1 1 0 0 1
+refdes=T1
+T 49200 45550 5 10 0 0 0 0 1
+device=cascade-transformer
+T 50200 46300 5 10 0 1 0 0 1
+footprint=none
+T 51100 45700 5 10 1 0 0 0 1
+G=0
+T 51100 45500 5 10 1 0 0 0 1
+NF=0
+T 51100 45300 5 10 1 0 0 0 1
+RIN=50
+T 51100 45100 5 10 1 0 0 0 1
+ROUT=50
+}
+C 52900 46100 1 0 0 cascade-amp-1.sym
+{
+T 52825 46650 5 8 0 0 0 0 1
+device=cascade-amp
+T 53100 47500 5 10 1 1 0 0 1
+refdes=AMP2
+T 52500 46400 5 10 0 1 0 0 1
+footprint=none
+T 53200 46500 5 10 1 0 0 0 1
+G=10
+T 53200 46300 5 10 1 0 0 0 1
+NF=12
+T 53200 46100 5 10 1 0 0 0 1
+IIP3=12
+}
+N 52900 47000 52000 47000 4
+N 50500 47000 49900 47000 4
+N 48500 47000 47800 47000 4
+N 46500 47000 45600 47000 4
+N 44000 47000 43500 47000 4
+N 42500 47000 41500 47000 4
diff --git a/gnetlist/tests/singlenet.pcbpins b/gnetlist/tests/singlenet.pcbpins
new file mode 100644
index 0000000..354731e
--- /dev/null
+++ b/gnetlist/tests/singlenet.pcbpins
@@ -0,0 +1,18 @@
+# Pin name action command file
+
+# Start of element U100
+ChangePinName(U100, unknown, unknown)
+ChangePinName(U100, unknown, unknown)
+ChangePinName(U100, 9, A)
+ChangePinName(U100, 10, B)
+ChangePinName(U100, 8, Y)
+ChangePinName(U100, unknown, unknown)
+ChangePinName(U100, unknown, unknown)
+ChangePinName(U100, 1, A)
+ChangePinName(U100, 2, B)
+ChangePinName(U100, 3, Y)
+ChangePinName(U100, unknown, unknown)
+ChangePinName(U100, unknown, unknown)
+ChangePinName(U100, 4, A)
+ChangePinName(U100, 5, B)
+ChangePinName(U100, 6, Y)

commit 8c4f362d4b6e779f3319c960ee349f6a54ad71aa
Author: Dan McMahill <dan@xxxxxxxxxxxx>
Date:   Tue Jun 26 16:20:58 2007 -0400

    Portability fixes for the testsuite.
    
    Get the testsuite fully working on SunOS-5.9/sparc.  This
    entails two issues.  The "-I" option to diff is a GNU
    extension and is not supported by the solaris diff.  Work
    around this by using sed to filter out the lines which were
    to be ignored.  This addresses the tests run by gnetlist/tests/runtest.sh.
    
    The other issue is that the longopts tests in the spice-sdb
    testsuite should not be run on a system that does not have
    getopt_long().  To address this, extend the run_tests.sh to allow
    a variable in the tests.list file to disable a test unless set to "yes".
    (cherry picked from commit f8680b18c8e27617eccbbf158acb84ccac7ac386)

diff --git a/gnetlist/configure.ac b/gnetlist/configure.ac
index 5a1a357..b5e4a50 100644
--- a/gnetlist/configure.ac
+++ b/gnetlist/configure.ac
@@ -76,7 +76,7 @@ if test "x$HAVE_GETOPT_LONG" = xyes ; then
 	AC_DEFINE(HAVE_GETOPT_LONG, [], [Define to 1 if you have the 'getopt_long' function])
 fi
 AC_SUBST(GETOPT_LONG_LIBS)
-
+AC_SUBST(HAVE_GETOPT_LONG)
 
 # 
 # Command line flags end
diff --git a/gnetlist/tests/Makefile.am b/gnetlist/tests/Makefile.am
index 0992edf..b6a40d0 100644
--- a/gnetlist/tests/Makefile.am
+++ b/gnetlist/tests/Makefile.am
@@ -82,7 +82,7 @@ tests:
 
 # multiple equals in attributes SPICE-SDB 
 	$(SRCDIR)/runtest.sh $(SRCDIR)/multiequal.sch spice-sdb \
-		$(BUILDDIR) $(SRCDIR) "-I gnetlist"
+		$(BUILDDIR) $(SRCDIR)
 
 # Cleanup
 	rm -f $(BUILDDIR)/new_*
@@ -108,11 +108,11 @@ tests_ales:
 
 # amp SPICE SDB
 	$(SRCDIR)/runtest.sh $(HOME)/gEDA/alesch/amp.sch spice-sdb \
-		$(BUILDDIR) $(SRCDIR) "-I gnetlist"
+		$(BUILDDIR) $(SRCDIR) 
 
 # darlington SPICE SDB
 	$(SRCDIR)/runtest.sh $(HOME)/gEDA/alesch/darlington.sch spice-sdb \
-		$(BUILDDIR) $(SRCDIR) "-I gnetlist"
+		$(BUILDDIR) $(SRCDIR)
 
 # switcap (does not work with make distcheck due to local test.ana file)
 	gnetlist -o $(BUILDDIR)/new_skt.switcap -g switcap \
diff --git a/gnetlist/tests/runtest.sh b/gnetlist/tests/runtest.sh
index df9084c..381f5e5 100755
--- a/gnetlist/tests/runtest.sh
+++ b/gnetlist/tests/runtest.sh
@@ -20,9 +20,15 @@ then
 	exit 1
 fi
 
-diff $EXTRADIFF ${SRCDIR}/${schbasename}.$BACKEND ${BUILDDIR}/new_${schbasename}.$BACKEND
+sed '/gnetlist.*-g/d' ${SRCDIR}/${schbasename}.$BACKEND > \
+	${BUILDDIR}/${schbasename}.${BACKEND}.filtered
+sed '/gnetlist.*-g/d' ${BUILDDIR}/new_${schbasename}.$BACKEND > \
+	${BUILDDIR}/new_${schbasename}.${BACKEND}.filtered
+diff $EXTRADIFF ${BUILDDIR}/${schbasename}.${BACKEND}.filtered \
+	 ${BUILDDIR}/new_${schbasename}.${BACKEND}.filtered
 status=$?
 
+rm ${BUILDDIR}/${schbasename}.${BACKEND}.filtered ${BUILDDIR}/new_${schbasename}.${BACKEND}.filtered
 if [ "$status" != 0 ]
 then
 	exit 2
diff --git a/gnetlist/tests/spice-sdb/Makefile.am b/gnetlist/tests/spice-sdb/Makefile.am
index 633c519..1747cf6 100644
--- a/gnetlist/tests/spice-sdb/Makefile.am
+++ b/gnetlist/tests/spice-sdb/Makefile.am
@@ -3,7 +3,7 @@
 
 SUBDIRS= inputs outputs
 
-TESTS_ENVIRONMENT= PERL=${PERL}
+TESTS_ENVIRONMENT= PERL=${PERL} HAVE_GETOPT_LONG=${HAVE_GETOPT_LONG}
 
 #RUN_TESTS= run_tests.sh
 
diff --git a/gnetlist/tests/spice-sdb/run_tests.sh b/gnetlist/tests/spice-sdb/run_tests.sh
index ed1c706..fe10f64 100755
--- a/gnetlist/tests/spice-sdb/run_tests.sh
+++ b/gnetlist/tests/spice-sdb/run_tests.sh
@@ -131,10 +131,20 @@ for t in $all_tests ; do
     if test "X$code" = "X" ; then
 	code=0
     fi
+    condition=`grep "^[ \t]*${t}[ \t]*|" $TESTLIST | awk 'BEGIN{FS="|"} {print $6}' | sed 's; ;;g'`
+
     echo "Schematics to copy   = $schematics"
     echo "Args to copy         = $args"
     echo "Expected return code = \"$code\""
-
+    if test "X$condition" != "X" ; then
+        eval "ctest=\`echo \$$condition\`"
+        if test X$ctest = "Xyes" ; then
+            echo "Running test because $condition = yes"
+        else
+            echo "Skipping test because $condition = $ctest"
+	    continue
+        fi
+    fi
 
     tot=`expr $tot + 1`
 
diff --git a/gnetlist/tests/spice-sdb/tests.list b/gnetlist/tests/spice-sdb/tests.list
index fba2b7a..dfc9d69 100644
--- a/gnetlist/tests/spice-sdb/tests.list
+++ b/gnetlist/tests/spice-sdb/tests.list
@@ -2,7 +2,8 @@
 #
 # test_name | input schematics | aux files (gafrc, symbols, etc) | \ 
 # extra flags to pass to gnetlist -g spice-sdb | \
-# return code if non-zero expected
+# return code if non-zero expected | \
+# variable which must be set for the test to run
 #
 
 
@@ -13,9 +14,9 @@
 # The two stage amp
 TwoStageAmp | TwoStageAmp.sch | Simulation.cmd gafrc models/2N3904.mod sym/transistor.sym | | 
 TwoStageAmp_Include | TwoStageAmp.sch | Simulation.cmd gafrc models/2N3904.mod sym/transistor.sym | -I
-TwoStageAmp_Include_longopt | TwoStageAmp.sch | Simulation.cmd gafrc models/2N3904.mod sym/transistor.sym | --include
+TwoStageAmp_Include_longopt | TwoStageAmp.sch | Simulation.cmd gafrc models/2N3904.mod sym/transistor.sym | --include | | HAVE_GETOPT_LONG
 TwoStageAmp_Sort | TwoStageAmp.sch | Simulation.cmd gafrc models/2N3904.mod sym/transistor.sym | -s
-TwoStageAmp_Sort_longopt | TwoStageAmp.sch | Simulation.cmd gafrc models/2N3904.mod sym/transistor.sym | --sort
+TwoStageAmp_Sort_longopt | TwoStageAmp.sch | Simulation.cmd gafrc models/2N3904.mod sym/transistor.sym | --sort | | HAVE_GETOPT_LONG
 
 # John Doty's test circuit
 # First test mangling
@@ -26,9 +27,9 @@ JD_Sort | LVDfoo.sch | gafrc models/openIP_5.cir sym/LVD.sym | -s
 JD_nomunge | LVDfoo.sch | gafrc models/openIP_5.cir sym/LVD.sym | | -n
 JD_Include_nomunge | LVDfoo.sch | gafrc models/openIP_5.cir sym/LVD.sym | -I -n
 JD_Sort_nomunge | LVDfoo.sch | gafrc models/openIP_5.cir sym/LVD.sym | -s -n
-JD_nomunge_longopt | LVDfoo.sch | gafrc models/openIP_5.cir sym/LVD.sym | | --nomunge
-JD_Include_nomunge_longopt | LVDfoo.sch | gafrc models/openIP_5.cir sym/LVD.sym | -I --nomunge
-JD_Sort_nomunge_longopt | LVDfoo.sch | gafrc models/openIP_5.cir sym/LVD.sym | -s --nomunge
+JD_nomunge_longopt | LVDfoo.sch | gafrc models/openIP_5.cir sym/LVD.sym | --nomunge | | HAVE_GETOPT_LONG
+JD_Include_nomunge_longopt | LVDfoo.sch | gafrc models/openIP_5.cir sym/LVD.sym | -I --nomunge | | HAVE_GETOPT_LONG
+JD_Sort_nomunge_longopt | LVDfoo.sch | gafrc models/openIP_5.cir sym/LVD.sym | -s --nomunge | | HAVE_GETOPT_LONG
 
 
 # Tests for slotted parts




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