summaryrefslogtreecommitdiff
path: root/cpp/test/IceUtil/unicode/run.py
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-01-17 18:53:26 +0000
committerMarc Laukien <marc@zeroc.com>2002-01-17 18:53:26 +0000
commitee96d66cf2a5a5b62b5ac01dbe251ba21e7fae96 (patch)
tree20e6b7d2611345407074be079cdb9f6f6cb64904 /cpp/test/IceUtil/unicode/run.py
parentFix bug with location of annotation for some types. (diff)
downloadice-ee96d66cf2a5a5b62b5ac01dbe251ba21e7fae96.tar.bz2
ice-ee96d66cf2a5a5b62b5ac01dbe251ba21e7fae96.tar.xz
ice-ee96d66cf2a5a5b62b5ac01dbe251ba21e7fae96.zip
unicode tests
Diffstat (limited to 'cpp/test/IceUtil/unicode/run.py')
-rwxr-xr-xcpp/test/IceUtil/unicode/run.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/cpp/test/IceUtil/unicode/run.py b/cpp/test/IceUtil/unicode/run.py
new file mode 100755
index 00000000000..5481554e073
--- /dev/null
+++ b/cpp/test/IceUtil/unicode/run.py
@@ -0,0 +1,39 @@
+#!/usr/bin/env python
+# **********************************************************************
+#
+# Copyright (c) 2001
+# MutableRealms, Inc.
+# Huntsville, AL, USA
+#
+# All Rights Reserved
+#
+# **********************************************************************
+
+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", "unicode")
+testdir = os.path.join(toplevel, "test", name)
+
+client = os.path.join(testdir, "client")
+clientOptions = ' ' + 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)