add runOne.sh
authorAdam Megacz <adam.megacz@sun.com>
Tue, 3 Mar 2009 20:46:40 +0000 (20:46 +0000)
committerAdam Megacz <adam.megacz@sun.com>
Tue, 3 Mar 2009 20:46:40 +0000 (20:46 +0000)
testCode/runOne.sh [new file with mode: 0644]

diff --git a/testCode/runOne.sh b/testCode/runOne.sh
new file mode 100644 (file)
index 0000000..6539d16
--- /dev/null
@@ -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