diff options
Diffstat (limited to 'cpp/test/Ice/gc/run.py')
-rwxr-xr-x | cpp/test/Ice/gc/run.py | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/cpp/test/Ice/gc/run.py b/cpp/test/Ice/gc/run.py new file mode 100755 index 00000000000..946369582ab --- /dev/null +++ b/cpp/test/Ice/gc/run.py @@ -0,0 +1,45 @@ +#!/usr/bin/env python +# ********************************************************************** +# +# Copyright (c) 2003 +# ZeroC, Inc. +# Billerica, MA, USA +# +# All Rights Reserved. +# +# Ice is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 2 as published by +# the Free Software Foundation. +# +# ********************************************************************** + +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("Ice", "gc") +testdir = os.path.join(toplevel, "test", name) + +client = os.path.join(testdir, "client") + +print "starting client...", +clientPipe = os.popen(client) +print "ok" + +for output in clientPipe.xreadlines(): + print output, + +clientStatus = clientPipe.close() + +if clientStatus: + sys.exit(1) + +sys.exit(0) |