summaryrefslogtreecommitdiff
path: root/cpp/test/IceUtil/timer/run.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2007-08-28 14:29:40 +0200
committerBenoit Foucher <benoit@zeroc.com>2007-08-28 14:29:40 +0200
commitf4367dedecfef432263c9d9c29d25da9b1e31a13 (patch)
tree126125174908dfb1f33893ba3acf45426d2c351c /cpp/test/IceUtil/timer/run.py
parentFixed compilation on hp (diff)
downloadice-f4367dedecfef432263c9d9c29d25da9b1e31a13.tar.bz2
ice-f4367dedecfef432263c9d9c29d25da9b1e31a13.tar.xz
ice-f4367dedecfef432263c9d9c29d25da9b1e31a13.zip
Added new IceUtil::Timer class
Diffstat (limited to 'cpp/test/IceUtil/timer/run.py')
-rwxr-xr-xcpp/test/IceUtil/timer/run.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/cpp/test/IceUtil/timer/run.py b/cpp/test/IceUtil/timer/run.py
new file mode 100755
index 00000000000..d7cb0424185
--- /dev/null
+++ b/cpp/test/IceUtil/timer/run.py
@@ -0,0 +1,39 @@
+#!/usr/bin/env python
+# **********************************************************************
+#
+# Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
+#
+# This copy of Ice is licensed to you under the terms described in the
+# ICE_LICENSE file included in this distribution.
+#
+# **********************************************************************
+
+import os, sys
+
+for toplevel in [".", "..", "../..", "../../..", "../../../.."]:
+ toplevel = os.path.normpath(toplevel)
+ if os.path.exists(os.path.join(toplevel, "config", "TestUtil.py")):
+ break
+else:
+ raise "can't find toplevel directory!"
+
+sys.path.append(os.path.join(toplevel, "config"))
+import TestUtil
+
+name = os.path.join("IceUtil", "timer")
+testdir = os.path.join(toplevel, "test", name)
+
+client = os.path.join(testdir, "client")
+
+print "starting client...",
+clientPipe = os.popen(client + " 2>&1")
+print "ok"
+
+TestUtil.printOutputFromPipe(clientPipe);
+
+clientStatus = TestUtil.closePipe(clientPipe)
+
+if clientStatus:
+ sys.exit(1)
+
+sys.exit(0)