Browse Source

When check.sh was modified to run ngspice/sed without && in between, the change was not applied to the OpenBSD/SunOS branch. This leads to a test failure when ngspice returns nonzero, as in xpressn-1.cir, xpressn-2.cir, xpressn-3.cir, and bxpressn-1.cir.

Attached patch makes the code like the Linux code, and all tests now pass on OpenBSD.
pre-master-46
Anthony J. Bentley 6 years ago
committed by Holger Vogt
parent
commit
f40f5a5ae4
  1. 4
      tests/bin/check.sh

4
tests/bin/check.sh

@ -40,8 +40,8 @@ case $HOST_TYPE in
rm -f $testname.test_tmp $testname.out_tmp
;;
FreeBSD*|SunOS*|OpenBSD*)
$SPICE --batch $testdir/$testname.cir >$testname.test &&\
sed -e '/^$/d' $testname.test | egrep -v "$FILTER" > $testname.test_tmp &&\
$SPICE --batch $testdir/$testname.cir >$testname.test
sed -e '/^$/d' $testname.test | egrep -v "$FILTER" > $testname.test_tmp
sed -e '/^$/d' $testdir/$testname.out | egrep -v "$FILTER" > $testname.out_tmp
if diff -b -w $testname.out_tmp $testname.test_tmp; then
rm $testname.test $testname.test_tmp $testname.out_tmp

Loading…
Cancel
Save