diff options
author | Michi Henning <michi@zeroc.com> | 2002-07-08 02:26:16 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2002-07-08 02:26:16 +0000 |
commit | b6b4680a72e2d45ed9fca0fde867ce7564dccc21 (patch) | |
tree | 73b4ba7f47fc1ca5ac00a2d77d18c5ac4d99bf0f /cpp/test/IceUtil/inputUtil/run.py | |
parent | Move the ICE_INT64_LITERAL macro into its own header file (Ice/Const.h). (diff) | |
download | ice-b6b4680a72e2d45ed9fca0fde867ce7564dccc21.tar.bz2 ice-b6b4680a72e2d45ed9fca0fde867ce7564dccc21.tar.xz ice-b6b4680a72e2d45ed9fca0fde867ce7564dccc21.zip |
Added stringToInt64() to IceUtil. (Windows only for the moment)
Diffstat (limited to 'cpp/test/IceUtil/inputUtil/run.py')
-rwxr-xr-x | cpp/test/IceUtil/inputUtil/run.py | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/cpp/test/IceUtil/inputUtil/run.py b/cpp/test/IceUtil/inputUtil/run.py new file mode 100755 index 00000000000..d120c591799 --- /dev/null +++ b/cpp/test/IceUtil/inputUtil/run.py @@ -0,0 +1,42 @@ +#!/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", "inpututil") +testdir = os.path.join(toplevel, "test", name) + +client = os.path.join(testdir, "client") +clientOptions = ' ' + testdir; + +print "starting client...", +clientPipe = os.popen(client + clientOptions) +print "ok" + +for output in clientPipe.xreadlines(): + print output, + +clientStatus = clientPipe.close() + +if clientStatus: + sys.exit(1) + +sys.exit(0) |