16 lines
306 B
Bash
16 lines
306 B
Bash
#! /bin/sh
|
|
|
|
NGSPICE=$1
|
|
TEST=$2
|
|
|
|
DIFFPIPE="Analysis|CPU|memory|Date|Note"
|
|
|
|
testname=$(basename $TEST .cir)
|
|
testdir=$(dirname $TEST)
|
|
$NGSPICE < $testdir/$testname.cir 2>&1 | egrep -v $DIFFPIPE > $testname.test
|
|
if diff -u $testdir/$testname.out $testname.test; then
|
|
rm $testname.test
|
|
exit 0
|
|
fi
|
|
exit 1
|