From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- vo/votest/tests/req_1.4.cl | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 vo/votest/tests/req_1.4.cl (limited to 'vo/votest/tests/req_1.4.cl') 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 , and ") +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) + -- cgit