You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
378 B
15 lines
378 B
#! /bin/sh
|
|
|
|
NGSPICE=$1
|
|
TEST=$2
|
|
|
|
DIFFPIPE="Analysis|CPU|memory|Date|Note|Sun|Mon|Tue|Wed|Thu|Fri|Sat|Jan|Feb|Mar|Apr|Jun|Jul|Aug|Sep|Oct|Nov|Dec"
|
|
|
|
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
|