From cb4f31418d8de620a70e9324d44d9a5a4629f8b4 Mon Sep 17 00:00:00 2001 From: Adam Megacz Date: Tue, 3 Mar 2009 20:46:40 +0000 Subject: [PATCH] add runOne.sh --- testCode/runOne.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 testCode/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 -- 1.7.10.4