-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 $$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |