aboutsummaryrefslogtreecommitdiff
path: root/vo/votest/tests/req_1.4.cl
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /vo/votest/tests/req_1.4.cl
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'vo/votest/tests/req_1.4.cl')
-rw-r--r--vo/votest/tests/req_1.4.cl45
1 files changed, 45 insertions, 0 deletions
diff --git a/vo/votest/tests/req_1.4.cl b/vo/votest/tests/req_1.4.cl
new file mode 100644
index 00000000..c2730c80
--- /dev/null
+++ b/vo/votest/tests/req_1.4.cl
@@ -0,0 +1,45 @@
+#
+# Demonstrate support for latest VOTable standard spec.
+
+# Set the test description string.
+votest.descr = "Demonstrate support for latest VOTable standard spec."
+
+# Convert the data$logical to a local path.
+s1 = data_url // "/votable_1.2.xml"
+s2 = "file://" // data_path // "/votable_1.2.xml"
+s3 = "file:///localhost" // data_path // "/votable_1.2.xml"
+
+print ("------------------------------------------------------------------")
+print ("Req 1.4: VOTable Interface code will support the IVOA Standard")
+print (" specification of the VOTable format at time of release.")
+print ("------------------------------------------------------------------")
+
+
+fcache init
+
+print (" ")
+print (" The requirement is demonstrated using a VOTable v1.2 document")
+print ("retrieved from the CADC and modified to add v1.2-specific features:")
+print (" ")
+print (" - INFO elements before </TABLE>, </RESOURCE> and </VOTABLE>")
+print (" - INFO elements w/ 'utype', 'ucd', 'ref' and 'unit' attributes")
+print (" - FIELDref and PARAMref elements w/ 'ucd' and 'utype' attributes")
+print (" ")
+print ("The parse will print an error if these v1.2-specifics aren't supported")
+print (" ")
+print (" ")
+
+
+# Execute the test commands.
+print ("\nLogical Path: data$votable_1.2.xml") # logical path
+tlcol ("data$votable_1.2.xml")
+
+print ("\nHTTP URI: " // s1) # remote http URI
+tlcol (s1)
+
+print ("\nFile URI: " // s2) # file URI
+tlcol (s2)
+
+print ("\nFile URI: " // s3) # file URI
+tlcol (s3)
+