diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /vo/votest/tests/votable_006.cl | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'vo/votest/tests/votable_006.cl')
-rw-r--r-- | vo/votest/tests/votable_006.cl | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/vo/votest/tests/votable_006.cl b/vo/votest/tests/votable_006.cl new file mode 100644 index 00000000..0770c9f0 --- /dev/null +++ b/vo/votest/tests/votable_006.cl @@ -0,0 +1,44 @@ +# +# Print VOTable column information + +# Set the test description string. +votest.descr = "TABLES support: Print VOTable column info" + +# 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 +reset clobber = yes + +# Create the output table name. +string out +out = "/tmp/out_006" +if (access (out) == yes) { + delete (out, verify-, >& "dev$null") +} +; + +# Execute the test commands. +print ("\nLogical Path: data$usno-b.xml") # logical path +tcopy ("data$usno-b.xml", out, verb-) +tinfo ("data$usno-b.xml,"//out) +delete (out) + +print ("\nHTTP URI: " // s1) # remote http URI +tcopy (s1, out, verb-) +tinfo (s1//","//out) +delete (out) + +print ("\nFile URI: " // s2) # file URI +tcopy (s2, out, verb-) +tinfo (s2//","//out) +delete (out) + +print ("\nFile URI: " // s3) # file URI +tcopy (s3, out, verb-) +tinfo (s3//","//out) +delete (out) + |