diff options
author | Eric Anholt <eric@anholt.net> | 2013-03-22 15:23:30 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2013-03-22 15:36:33 -0700 |
commit | 1dacfe517c6d2a5bf957712e4720e53b720a7d82 (patch) | |
tree | fec2ca4fd07c47a84fb4187c7a38c8871b84834b | |
parent | 97969b875c112d4bd8dfb76f10eddde462abecd2 (diff) |
Switch to just relying on a link to piglit's binaries from the cwd.
Making other people replace my path with their path sucks.
-rw-r--r-- | README | 8 | ||||
-rwxr-xr-x | run.py | 8 |
2 files changed, 12 insertions, 4 deletions
@@ -12,10 +12,12 @@ split-to-files.pl appname log $EDITOR shaders/appname/* === Running shaders === -# set your location to hacked glslparsertest that links shaders. -$EDITOR run.pl +# We rely on piglit binaries to actually execute the shader code. +# Replace this path with wherever you actually built piglit. +ln -s $HOME/src/piglit/bin ./ + # this relies on i965 driver debug output, hack it up for anything else. -./run.pl shaders/**/*.frag +./run.py shaders/**/*.frag === Analysis === diff old-run new-run @@ -18,7 +18,7 @@ Options: sys.exit(1) def run_test(filename): - command = ['/home/anholt/src/piglit/bin/glslparsertest', + command = ['./bin/glslparsertest', filename, 'pass'] @@ -92,6 +92,12 @@ def main(): if len(args) < 1: usage() + try: + os.stat("bin/glslparsertest") + except: + print("./bin must be a symlink to a built piglit bin directory") + sys.exit(1) + executor = ThreadPoolExecutor(cpu_count()) for t in executor.map(run_test, args): sys.stdout.write(t) |