diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2015-09-25 09:05:18 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2015-09-25 09:05:18 -0230 |
commit | d1b5e77db0a207e5f23ec9d39cb9917bfb11872e (patch) | |
tree | 1f5398d4de6985839e81dbba69543f5140ba1b91 /cpp/test/IceUtil/stacktrace/run.py | |
parent | Fixed ICE-6811 - ElCapitan build errors (diff) | |
download | ice-d1b5e77db0a207e5f23ec9d39cb9917bfb11872e.tar.bz2 ice-d1b5e77db0a207e5f23ec9d39cb9917bfb11872e.tar.xz ice-d1b5e77db0a207e5f23ec9d39cb9917bfb11872e.zip |
ICE-6773 Added test for C++ stack traces
Diffstat (limited to 'cpp/test/IceUtil/stacktrace/run.py')
-rwxr-xr-x | cpp/test/IceUtil/stacktrace/run.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cpp/test/IceUtil/stacktrace/run.py b/cpp/test/IceUtil/stacktrace/run.py new file mode 100755 index 00000000000..ecdefe0fbf9 --- /dev/null +++ b/cpp/test/IceUtil/stacktrace/run.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python +# ********************************************************************** +# +# Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved. +# +# This copy of Ice is licensed to you under the terms described in the +# ICE_LICENSE file included in this distribution. +# +# ********************************************************************** + +import os, sys + +path = [ ".", "..", "../..", "../../..", "../../../.." ] +head = os.path.dirname(sys.argv[0]) +if len(head) > 0: + path = [os.path.join(head, p) for p in path] +path = [os.path.abspath(p) for p in path if os.path.exists(os.path.join(p, "scripts", "TestUtil.py")) ] +if len(path) == 0: + raise RuntimeError("can't find toplevel directory!") +sys.path.append(os.path.join(path[0], "scripts")) +import TestUtil + +client = os.path.join(os.getcwd(), "client") +TestUtil.simpleTest(client) |