JAL-931 - groovy test harness code.
[jalview.git] / examples / groovy / JvLoadTestHarness.groovy
diff --git a/examples/groovy/JvLoadTestHarness.groovy b/examples/groovy/JvLoadTestHarness.groovy
new file mode 100644 (file)
index 0000000..c0b3384
--- /dev/null
@@ -0,0 +1,12 @@
+// You need to add the groovy directory to the class path from the script window\r
+// or add the groovy directory to the java classpath when running Jalview\r
+\r
+jvtst = new JvLoadTester().newJvLoadTest('D:\\fooTest.jar');\r
+try { jvtst.TestForAll('D:\\e6-workspace\\Jalview RNA\\examples\\rna\\rfamSml') } \r
+catch (OutOfMemoryError e) { \r
+// inspect jvtst to find out what file + file index it was on\r
+}\r
+// Terminate Jalview - useful if running from command line\r
+if (Jalview.isInBatchMode()) {\r
+ Jalview.quit() \r
+}
\ No newline at end of file