summaryrefslogtreecommitdiff
path: root/indra/llcommon/tests/setpython.py
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2011-07-13 17:36:59 -0400
committerNat Goodspeed <nat@lindenlab.com>2011-07-13 17:36:59 -0400
commit0f665666201146069647d1686e2ff565d469097b (patch)
tree9b5a4ef8f508f090ac8418a1b5f1ac4d7205a772 /indra/llcommon/tests/setpython.py
parented648b1f08a191250c5c37f831280c31950b502a (diff)
Introduce support for C++ integration tests running Python scripts.
This is in its infancy; tested on Mac; needs to be ironed out on Windows and Linux. Goal is to test at least some cross-language LLSD serialization.
Diffstat (limited to 'indra/llcommon/tests/setpython.py')
-rw-r--r--indra/llcommon/tests/setpython.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/indra/llcommon/tests/setpython.py b/indra/llcommon/tests/setpython.py
new file mode 100644
index 0000000000..df7b90428e
--- /dev/null
+++ b/indra/llcommon/tests/setpython.py
@@ -0,0 +1,19 @@
+#!/usr/bin/python
+"""\
+@file setpython.py
+@author Nat Goodspeed
+@date 2011-07-13
+@brief Set PYTHON environment variable for tests that care.
+
+$LicenseInfo:firstyear=2011&license=viewerlgpl$
+Copyright (c) 2011, Linden Research, Inc.
+$/LicenseInfo$
+"""
+
+import os
+import sys
+import subprocess
+
+if __name__ == "__main__":
+ os.environ["PYTHON"] = sys.executable
+ sys.exit(subprocess.call(sys.argv[1:]))