libglvnd/tests/testpatchentrypoints.sh
Brian Nguyen 171fa7481f Add testpatchentrypoints unit test
This unit test verifies that entrypoint patching works as expected, by
loading libGLX_patchentry.so, looking up the address of
__glXSawVertex3fv defined in libGLX_patchentry.so, and verifying that
the value at this symbol matches the number of calls to glVertex3fv()
(which is hacked to increment __glXSawVertex3fv via entrypoint
rewriting).
2014-01-23 20:28:50 -08:00

8 lines
190 B
Bash
Executable file

#!/bin/bash
export __GLX_VENDOR_LIBRARY_NAME=patchentry
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TOP_BUILDDIR/tests/GLX_dummy/.libs
# Run the patch entrypoint test.
./testpatchentrypoints