diff --git a/actions/testing/ServerShrTest.sh b/actions/testing/ServerShrTest.sh new file mode 100755 index 0000000000..b65e347ecc --- /dev/null +++ b/actions/testing/ServerShrTest.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +export distest_path=/tmp/$USER/distest + +mkdir -p $distest_path + +mdsip -p 9997 -s > server_9997.log 2> server_9997.err & # Monitor server +mdsip -p 9998 -s > server_9998.log 2> server_9998.err & # Action server +mdsip -p 9999 -s > server_9999.log 2> server_9999.err & # Dispatch server +actlog -monitor localhost:9997 > actlog.log 2> actlog.err & + +mdstcl @build_tree + +mdstcl @test_action + +pkill -P $$ diff --git a/actions/testing/build_tree.tcl b/actions/testing/build_tree.tcl new file mode 100644 index 0000000000..f7694a96f4 --- /dev/null +++ b/actions/testing/build_tree.tcl @@ -0,0 +1,7 @@ +edit distest /shot=1 /new +add node act01 /usage=action +write +put/extend ACT01 +Build_Action(Build_Dispatch(2,"localhost:9998","INIT",10,*),BUILD_FUNCTION(BUILTIN_OPCODE("COMMA"),BUILD_FUNCTION(BUILTIN_OPCODE("WRITE"),*,"Test action"),1)) + +close diff --git a/actions/testing/test_action.tcl b/actions/testing/test_action.tcl new file mode 100644 index 0000000000..cf1dcf503f --- /dev/null +++ b/actions/testing/test_action.tcl @@ -0,0 +1,6 @@ +dispatch /command /server=localhost:9999 set tree distest /shot=1 +wait 1 +dispatch /command /server=localhost:9999 dispatch/build/monitor=localhost:9997 +wait 1 +dispatch /command /server=localhost:9999 dispatch/phase/monitor=localhost:9997 init +wait 1