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/samp.tests/req_2.2.cl | 61 +++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 vo/votest/tests/samp.tests/req_2.2.cl (limited to 'vo/votest/tests/samp.tests/req_2.2.cl') diff --git a/vo/votest/tests/samp.tests/req_2.2.cl b/vo/votest/tests/samp.tests/req_2.2.cl new file mode 100644 index 00000000..e42fa0aa --- /dev/null +++ b/vo/votest/tests/samp.tests/req_2.2.cl @@ -0,0 +1,61 @@ +# +# Demonstrate ability to execute remote IRAF cmds via SAMP + +# Set the test description string. +votest.descr = "Demonstrate ability to execute remote IRAF cmds via SAMP" + +print ("------------------------------------------------------------------") +print ("Req 2.2: Users shall be able to execute IRAF tasks and set or") +print (" retrieve information in/from the IRAF environment via") +print (" SAMP messaging from clients that implement the required") +print (" message types.") +print ("------------------------------------------------------------------") + + +string res + +# Execute the test commands. +print ("") +print ("") +print ("") + + +########################################### +# Broadcast to all clients. +########################################### + +# Remote command execution +res = sampCmdExec ("imstat dev$pix") + +# Environment Set/Get +res = sampEnvSet ("foo", "bar") +res = sampEnvGet ("foo") +print ("Result = " // res) + +# Task Parameter Set/Get +res = sampParamSet ("imstat.images", "dev$pix") +res = sampParamGet ("imstat.images") +print ("Parameter = " // res) + + + +########################################### +# Targeted message to specific client. +########################################### + + +# Remote command execution +res = sampCmdExec ("imstat dev$pix", "iraf2") + +# Environment Set/Get +res = sampEnvSet ("foo", "bar", "iraf2") +res = sampEnvGet ("foo", "iraf2") +print ("Result = " // res) + +# Task Parameter Set/Get +res = sampParamSet ("imstat.images", "dev$pix", "iraf2") +res = sampParamGet ("imstat.images", "iraf2") +print ("Parameter = " // res) + + + -- cgit