diff options
author | Marc Laukien <marc@zeroc.com> | 2002-01-17 20:44:43 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-01-17 20:44:43 +0000 |
commit | 1f1cf73acd69c71de92bd3ee8349eb6e4fc76823 (patch) | |
tree | 0abb119b376a4f1b726688c842036ec9f7f28ffc /cpp/test/IceUtil/unicode/run.py | |
parent | interop fix (diff) | |
download | ice-1f1cf73acd69c71de92bd3ee8349eb6e4fc76823.tar.bz2 ice-1f1cf73acd69c71de92bd3ee8349eb6e4fc76823.tar.xz ice-1f1cf73acd69c71de92bd3ee8349eb6e4fc76823.zip |
unicode test suite extensions
Diffstat (limited to 'cpp/test/IceUtil/unicode/run.py')
-rwxr-xr-x | cpp/test/IceUtil/unicode/run.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cpp/test/IceUtil/unicode/run.py b/cpp/test/IceUtil/unicode/run.py index 5481554e073..8a49bb5bb09 100755 --- a/cpp/test/IceUtil/unicode/run.py +++ b/cpp/test/IceUtil/unicode/run.py @@ -27,6 +27,20 @@ testdir = os.path.join(toplevel, "test", name) client = os.path.join(testdir, "client") clientOptions = ' ' + testdir; +print "creating random utf-8 data...", +import random, string +values = range(32, 500) + range(2000, 2500) + range(40000, 40100) +random.shuffle(values) +characters = string.join(map(unichr, values), u"") +file = open(os.path.join(testdir, "numeric.txt"), "w") +for w in values: + file.write(str(w) + "\n") +file.close(); +file = open(os.path.join(testdir, "utf8.txt"), "wb") +file.write(characters.encode("utf-8")) +file.close(); +print "ok" + print "starting client...", clientPipe = os.popen(client + clientOptions) output = clientPipe.read().strip() |