summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-03-22 15:23:30 -0700
committerEric Anholt <eric@anholt.net>2013-03-22 15:36:33 -0700
commit1dacfe517c6d2a5bf957712e4720e53b720a7d82 (patch)
treefec2ca4fd07c47a84fb4187c7a38c8871b84834b
parent97969b875c112d4bd8dfb76f10eddde462abecd2 (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--README8
-rwxr-xr-xrun.py8
2 files changed, 12 insertions, 4 deletions
diff --git a/README b/README
index 6ae1410..2515475 100644
--- a/README
+++ b/README
@@ -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
diff --git a/run.py b/run.py
index b7fa7e6..aa6b13a 100755
--- a/run.py
+++ b/run.py
@@ -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)