From: Adam Megacz Date: Tue, 3 Mar 2009 20:46:40 +0000 (+0000) Subject: add runOne.sh X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=cb4f31418d8de620a70e9324d44d9a5a4629f8b4;p=fleet.git add runOne.sh --- diff --git a/testCode/runOne.sh b/testCode/runOne.sh new file mode 100644 index 0000000..6539d16 --- /dev/null +++ b/testCode/runOne.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +# Run one test on Marina +# Use the netlist generated from the schematic. +# First argument is integer specifying which test +# Second argument specifies mode: -exptSch -exptLay -chipSch -silicon + +echo ------------------------------------------------------------------------------ +echo Test number $1 +(time java -classpath "../testCode/adam.jar:MarinaTest.jar" com.sun.vlsi.chips.marina.test.MarinaTest -testNum $1 $2) >& test$1.log +if [ $? -ne 0 ] ; then + if [ $? -eq 1 ] ; then + # possibly buggy test + echo Crashed. + else + # test detected a hardware defect + echo Failed. + fi + ALL_PASSED=false + # save information so I can discover why test failed + mv marina.spi.out test$1.out + mv marina.spi.run test$1.run +else + echo Passed. +fi