171fa7481f
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).
8 lines
190 B
Bash
Executable file
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
|