Skip to content

Commit

Permalink
Add skeleton for actlog test
Browse files Browse the repository at this point in the history
  • Loading branch information
merlea committed Nov 26, 2024
1 parent 1fc957f commit 64a75bf
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
16 changes: 16 additions & 0 deletions actions/testing/ServerShrTest.sh
Original file line number Diff line number Diff line change
@@ -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 $$
7 changes: 7 additions & 0 deletions actions/testing/build_tree.tcl
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions actions/testing/test_action.tcl
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 64a75bf

Please sign in to comment.