summaryrefslogtreecommitdiff
path: root/cpp/test/Freeze/cursor/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Freeze/cursor/run.py')
-rwxr-xr-xcpp/test/Freeze/cursor/run.py38
1 files changed, 38 insertions, 0 deletions
diff --git a/cpp/test/Freeze/cursor/run.py b/cpp/test/Freeze/cursor/run.py
new file mode 100755
index 00000000000..c20a913cf4d
--- /dev/null
+++ b/cpp/test/Freeze/cursor/run.py
@@ -0,0 +1,38 @@
+#!/usr/bin/env python
+# **********************************************************************
+#
+# Copyright (c) 2001
+# MutableRealms, Inc.
+# Huntsville, AL, USA
+#
+# All Rights Reserved
+#
+# **********************************************************************
+
+import os, sys
+
+for toplevel in [".", "..", "../..", "../../..", "../../../.."]:
+ if os.path.exists(os.path.normpath(toplevel + "/config/TestUtil.py")):
+ break
+else:
+ raise "can't find toplevel directory!"
+
+sys.path.append(os.path.normpath(toplevel + "/config"))
+import TestUtil
+
+name = "Freeze/cursor"
+
+testdir = os.path.normpath(toplevel + "/test/" + name)
+client = os.path.normpath(testdir + "/client")
+clientOptions = " --Ice.Config=" + testdir + "/config " + testdir;
+
+print "starting client...",
+clientPipe = os.popen(client + clientOptions)
+output = clientPipe.read().strip()
+if not output:
+ print "failed!"
+ sys.exit(1)
+print "ok"
+print output
+
+sys.exit(0)