--- /dev/null
+#!/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