summaryrefslogtreecommitdiffstats
path: root/petascope/test/wcps_xml.sh
diff options
context:
space:
mode:
Diffstat (limited to 'petascope/test/wcps_xml.sh')
-rwxr-xr-xpetascope/test/wcps_xml.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/petascope/test/wcps_xml.sh b/petascope/test/wcps_xml.sh
new file mode 100755
index 0000000..aadfd92
--- /dev/null
+++ b/petascope/test/wcps_xml.sh
@@ -0,0 +1,11 @@
+#! /bin/bash
+# Run the xml CLI tool.
+# Use as below: wcps_xml.sh testcases_wcps/1.test.xml
+# Input: ProcessCoverages XML document (WCPS 1.0.0)
+# Output: RasQL query (on the last line of output)
+
+CLASSPATH=.:lib/wcps-all.jar:lib/jaxb-api.jar:lib/jaxb-impl.jar:lib/postgresql-8.3-604.jdbc4.jar:lib/jsr173_api.jar:lib/rasj.jar:lib/commons-math-1.1.jar:lib/antlrworks-1.2.3.jar
+
+echo "Will run with file '$1'"
+
+cd .. && java -cp $CLASSPATH wcps.server.cli.xml test/$1