summaryrefslogtreecommitdiff
path: root/cpp/test/IceBox/admin/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/IceBox/admin/run.py')
-rwxr-xr-xcpp/test/IceBox/admin/run.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/cpp/test/IceBox/admin/run.py b/cpp/test/IceBox/admin/run.py
index 7f24cb1f9a1..3407a00c52c 100755
--- a/cpp/test/IceBox/admin/run.py
+++ b/cpp/test/IceBox/admin/run.py
@@ -25,3 +25,20 @@ icebox = TestUtil.getIceBox()
config = os.path.join(os.getcwd(), "config.icebox")
TestUtil.clientServerTest(additionalServerOptions= '--Ice.Config=\"%s\"' % config, server = icebox)
+
+sys.stdout.write("testing iceboxadmin... ")
+sys.stdout.flush()
+
+admin = TestUtil.getIceBoxAdmin()
+adminconfig = os.path.join(os.getcwd(), "config.admin")
+
+ib = TestUtil.startServer(icebox, args = '--Ice.Config=\"%s\"' % config)
+iba = TestUtil.startClient(admin, args = '--Ice.Config=\"%s\" stop TestService' % adminconfig)
+iba.waitTestSuccess()
+iba = TestUtil.startClient(admin, args = '--Ice.Config=\"%s\" start TestService' % adminconfig)
+iba.waitTestSuccess()
+iba = TestUtil.startClient(admin, args = '--Ice.Config=\"%s\" shutdown' % adminconfig)
+iba.waitTestSuccess()
+ib.waitTestSuccess()
+
+print("ok")