glsl/tests/optimization-test: correctly manage srcdir/builddir
authorEmil Velikov <emil.velikov@collabora.com>
Sun, 26 Feb 2017 20:17:00 +0000 (20:17 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 28 Mar 2017 14:31:23 +0000 (15:31 +0100)
commit86a937d2644adcd724dae58c5212de5358326e9c
treede734b83e8bcd90b0ed5b790c0073aa8af3261ae
parenta7d9f0a361c4fd5d7e223cac61eca180c309cdc1
glsl/tests/optimization-test: correctly manage srcdir/builddir

At the moment we look for generator script(s) in builddir while they
are in srcdir, and we proceed to generate the tests and expected output
in srcdir, which is not allowed.

To untangle:
 - look for the generator script in the correct place
 - generate the files in builddir, by extending create_test_cases.py to
use --outdir

With this in place the test passes `make check' for OOT builds - would
that be as standalone or part of `make distcheck'

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/compiler/glsl/tests/lower_jumps/create_test_cases.py
src/compiler/glsl/tests/optimization-test.sh