summaryrefslogtreecommitdiff
path: root/cpp/demo/IceGrid/icebox/expect.py
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2008-02-06 15:50:51 -0330
committerDwayne Boone <dwayne@zeroc.com>2008-02-06 15:50:51 -0330
commit6c6f104dbdf439783b9ebea489ff108f5d018377 (patch)
tree3a4e5f5a0496112b88fe31412f4d5061b1beaba4 /cpp/demo/IceGrid/icebox/expect.py
parentFixed for slow java startup (diff)
downloadice-6c6f104dbdf439783b9ebea489ff108f5d018377.tar.bz2
ice-6c6f104dbdf439783b9ebea489ff108f5d018377.tar.xz
ice-6c6f104dbdf439783b9ebea489ff108f5d018377.zip
Added expect script for IceGrid/icebox demo
Diffstat (limited to 'cpp/demo/IceGrid/icebox/expect.py')
-rwxr-xr-xcpp/demo/IceGrid/icebox/expect.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/cpp/demo/IceGrid/icebox/expect.py b/cpp/demo/IceGrid/icebox/expect.py
new file mode 100755
index 00000000000..b5d15e89099
--- /dev/null
+++ b/cpp/demo/IceGrid/icebox/expect.py
@@ -0,0 +1,29 @@
+#!/usr/bin/env python
+# **********************************************************************
+#
+# Copyright (c) 2003-2008 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 sys, os
+
+try:
+ import demoscript
+except ImportError:
+ for toplevel in [".", "..", "../..", "../../..", "../../../.."]:
+ toplevel = os.path.normpath(toplevel)
+ if os.path.exists(os.path.join(toplevel, "demoscript")):
+ break
+ else:
+ raise "can't find toplevel directory!"
+ sys.path.append(os.path.join(toplevel))
+ import demoscript
+
+import demoscript.Util
+demoscript.Util.defaultLanguage = "C++"
+import demoscript.IceGrid.icebox
+
+demoscript.IceGrid.icebox.run('./client')