libglvnd/tests/testglxnscrthreads.sh
Brian Nguyen acb5f98231 [tests] Replace SKIP_ENV_INIT with DO_X11_TESTS
Instead of requiring a special environment variable to skip tests
which require a special X11 environment, skip these tests by default
and have users opt-in with the DO_X11_TESTS environment variable.

Signed-off-by: Brian Nguyen <brnguyen@nvidia.com>
2013-09-27 10:25:45 -07:00

14 lines
317 B
Bash
Executable file

#!/bin/bash
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TOP_BUILDDIR/tests/GLX_dummy/.libs
# We require pthreads be loaded before libGLX for correctness
export LD_PRELOAD=libpthread.so.0
if [ -z "$DO_X11_TESTS" ]; then
echo "Skipping test; requires environment init"
exit 77
fi
./testglxnscreens -i 100 -t 5