Commit 301e3950 authored by Chad Versace's avatar Chad Versace

framework: Support running Piglit with an out-of-tree build

To run Piglit with an out-of-tree build, set the environment variable
PIGLIT_BUILD_DIR. For example:
    $ env PIGLIT_BUILD_DIR=/path/to/piglit/build/dir \
      ./piglit-run.py tests/sanity.tests results/sanity.results
Signed-off-by: 's avatarChad Versace <chad.versace@intel.com>
parent 161b08b7
......@@ -56,7 +56,13 @@ Make sure that everything is set up correctly:
$ ./piglit-run.py tests/sanity.tests results/sanity.results
This will run some minimal tests. Use
This will run some minimal tests. If you built Piglit out-of-source, then the
environment variable PIGLIT_BUILD_DIR must be set:
$ env PIGLIT_BUILD_DIR=/path/to/piglit/build/dir \
./piglit-run.py tests/sanity.tests results/sanity.results
Use
$ ./piglit-run.py
......
......@@ -80,7 +80,10 @@ def encode(text):
def decode(text):
return text.decode("string_escape")
testBinDir = os.path.dirname(__file__) + '/../bin/'
if 'PIGLIT_BUILD_DIR' in os.environ:
testBinDir = os.environ['PIGLIT_BUILD_DIR'] + '/bin/'
else:
testBinDir = os.path.dirname(__file__) + '/../bin/'
#############################################################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment