summaryrefslogtreecommitdiff
path: root/cpp/test/IceXML/encoding/run.py
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2002-01-29 02:03:02 +0000
committerMatthew Newhook <matthew@zeroc.com>2002-01-29 02:03:02 +0000
commit1a347f053ed10e965411c4768567d3c6d0b0e424 (patch)
tree56685aadd79e5e7b954850369616e4d7915dbe1b /cpp/test/IceXML/encoding/run.py
parentfix (diff)
downloadice-1a347f053ed10e965411c4768567d3c6d0b0e424.tar.bz2
ice-1a347f053ed10e965411c4768567d3c6d0b0e424.tar.xz
ice-1a347f053ed10e965411c4768567d3c6d0b0e424.zip
Added test/IceXML/encoding. Various bug fixes for IceXML.
Diffstat (limited to 'cpp/test/IceXML/encoding/run.py')
-rwxr-xr-xcpp/test/IceXML/encoding/run.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/cpp/test/IceXML/encoding/run.py b/cpp/test/IceXML/encoding/run.py
new file mode 100755
index 00000000000..d46c7cb4950
--- /dev/null
+++ b/cpp/test/IceXML/encoding/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("IceXML", "encoding")
+
+testdir = os.path.join(toplevel, "test", name)
+
+client = os.path.join(testdir, "client" + ' ' + testdir)
+
+print "starting client...",
+clientPipe = os.popen(client)
+output = clientPipe.read().strip()
+if not output:
+ print "failed!"
+ sys.exit(1)
+print "ok"
+print output
+
+sys.exit(0)