diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /vo/votest/tests/votable_004.cl | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'vo/votest/tests/votable_004.cl')
-rw-r--r-- | vo/votest/tests/votable_004.cl | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/vo/votest/tests/votable_004.cl b/vo/votest/tests/votable_004.cl new file mode 100644 index 00000000..dafbacd2 --- /dev/null +++ b/vo/votest/tests/votable_004.cl @@ -0,0 +1,43 @@ +# +# Copy VOTable columns + +# Set the test description string. +votest.descr = "TABLES support: Copy VOTable columns" + +# Convert the data$logical to a local path. +s1 = data_url // "/usno-b.xml" +s2 = "file://" // data_path // "/usno-b.xml" +s3 = "file:///localhost" // data_path // "/usno-b.xml" + + +fcache init + +# Create the output table name. +string out +out = "tmp$out_004" +if (access (out) == yes) { + delete (out, verify-, >& "dev$null") +} +; + + +# Execute the test commands. +print ("\nLogical Path: data$usno-b.xml") # logical path +tproject ("data$usno-b.xml", out, "id sRa sDec") +tdump (out, cdfile="", pfile="") +delete (out, verify-, >& "dev$null") + +print ("\nHTTP URI: " // s1) # remote http URI +tproject (s1, out, "id sRa sDec") +tdump (out, cdfile="", pfile="") +delete (out, verify-, >& "dev$null") + +print ("\nFile URI: " // s2) # file URI +tproject (s2, out, "id sRa sDec") +tdump (out, cdfile="", pfile="") +delete (out, verify-, >& "dev$null") + +print ("\nFile URI: " // s3) # file URI +tproject (s3, out, "id sRa sDec") +tdump (out, cdfile="", pfile="") +delete (out, verify-, >& "dev$null") |