diff options
Diffstat (limited to 'cpp/test/Ice/slicing/exceptions/run.py')
-rwxr-xr-x | cpp/test/Ice/slicing/exceptions/run.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/cpp/test/Ice/slicing/exceptions/run.py b/cpp/test/Ice/slicing/exceptions/run.py new file mode 100755 index 00000000000..d42a594f9c1 --- /dev/null +++ b/cpp/test/Ice/slicing/exceptions/run.py @@ -0,0 +1,31 @@ +#!/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", "slicing", "exceptions") + +TestUtil.clientServerTest(name) +sys.exit(0) |