-
-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mesbah Alam <Mesbah_Alam@ca.ibm.com>
- Loading branch information
1 parent
4fd9cfa
commit b893491
Showing
10 changed files
with
479 additions
and
227 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 |
---|---|---|
@@ -1,14 +1,80 @@ | ||
#!/bin/bash | ||
|
||
echo "Starting JCK agent.." | ||
eval $1 | ||
if [ $# -eq 2 ]; then | ||
echo "Starting JCK agent.." | ||
eval $1 | ||
pid=$! | ||
echo "Agent started with PID $pid" | ||
|
||
echo "Starting JCK harness.." | ||
eval $2 | ||
|
||
pid=$! | ||
echo "Test complete. Stopping JCK Agent.." | ||
kill -9 $pid | ||
elif [ $# -eq 4 ]; then | ||
echo "Starting RMI Registry.." | ||
eval $1 | ||
pid1=$! | ||
echo "RMI Registry started with PID $pid1" | ||
|
||
echo "Agent started with PID $pid" | ||
echo "Starting RMID.." | ||
eval $2 | ||
pid2=$! | ||
echo "RMID started with PID $pid2" | ||
|
||
echo "Starting JCK agent.." | ||
eval $3 | ||
pid3=$! | ||
echo "Agent started with PID $pid3" | ||
|
||
echo "Starting JCK harness.." | ||
eval $4 | ||
|
||
echo "Test complete." | ||
|
||
echo "Stopping RMI Registry.." | ||
kill -9 $pid1 | ||
|
||
echo "Stopping RMID.." | ||
kill -9 $pid2 | ||
|
||
echo "Stopping JCK Agent.." | ||
kill -9 $pid3 | ||
elif [ $# -eq 5 ]; then | ||
echo "Starting RMI Registry.." | ||
eval $1 | ||
pid1=$! | ||
echo "RMI Registry started with PID $pid1" | ||
|
||
echo "Starting JCK harness.." | ||
eval $2 | ||
|
||
echo "Test complete. Stopping JCK Agent.." | ||
kill -9 $pid | ||
echo "Starting RMID.." | ||
eval $2 | ||
pid2=$! | ||
echo "RMID started with PID $pid2" | ||
|
||
echo "Starting TNAMESERV.." | ||
eval $3 | ||
pid3=$! | ||
echo "TNAMESERV started with PID $pid3" | ||
|
||
echo "Starting JCK agent.." | ||
eval $4 | ||
pid4=$! | ||
echo "Agent started with PID $pid4" | ||
|
||
echo "Starting JCK harness.." | ||
eval $5 | ||
|
||
echo "Test complete." | ||
|
||
echo "Stopping RMI Registry.." | ||
kill -9 $pid1 | ||
|
||
echo "Stopping RMID.." | ||
kill -9 $pid2 | ||
|
||
echo "Stopping TNAMESERV.." | ||
kill -9 $pid3 | ||
|
||
echo "Stopping JCK Agent.." | ||
kill -9 $pid4 | ||
fi |
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
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
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
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
Oops, something went wrong.