aboutsummaryrefslogtreecommitdiff
path: root/vo/votest/tests/req_4.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_4.4.cl
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'vo/votest/tests/req_4.4.cl')
-rw-r--r--vo/votest/tests/req_4.4.cl39
1 files changed, 39 insertions, 0 deletions
diff --git a/vo/votest/tests/req_4.4.cl b/vo/votest/tests/req_4.4.cl
new file mode 100644
index 00000000..4c4952d5
--- /dev/null
+++ b/vo/votest/tests/req_4.4.cl
@@ -0,0 +1,39 @@
+#
+# Save data-query results in formats other than VOTable.
+
+# Set the test description string.
+votest.descr = "Save data-query results in formats other than VOTable."
+
+print ("------------------------------------------------------------------")
+print ("Req 4.4: Users shall be able to save the results of a query in a")
+print (" tabular format other than VOTable.")
+print ("------------------------------------------------------------------")
+
+
+fcache init
+
+# Execute the test commands.
+
+string qstr, ofn
+
+# Generate a query string.
+qstring ("gsc2.3", "m101", size=0.005, type="catalog") | scan (qstr)
+print (qstr)
+
+votcopy (qstr, "STDOUT", format="ascii")
+votcopy (qstr, "STDOUT", format="asv")
+votcopy (qstr, "STDOUT", format="bsv")
+votcopy (qstr, "STDOUT", format="csv")
+votcopy (qstr, "STDOUT", format="tsv")
+votcopy (qstr, "STDOUT", format="html")
+votcopy (qstr, "STDOUT", format="shtml")
+votcopy (qstr, "STDOUT", format="xml")
+votcopy (qstr, "STDOUT", format="raw")
+votcopy (qstr, "STDOUT", format="votable")
+
+# The FITS file is a special case where we want to create a file.
+ofn = "tmp$req44.fits"
+delete (ofn, verify-, >& "dev$null")
+votcopy (qstr, ofn, format="fits")
+tinfo (ofn)
+delete (ofn, verify-, >& "dev$null")