Commit graph

3 commits

Author SHA1 Message Date
Kyle Brenneman 3f6730ca08 tests: Add tests for the end of the dispatch table.
Add a '-l' flag to testgldispatch, which tells it to test a generated stub
at the very end of the dispatch table.

On PPC, looking up a function past index 4096 requires more than just a simple
register+immediate load, so this makes sure that it's correct.
2019-12-04 12:28:03 -07:00
Kyle Brenneman 82413e05ff Use sh instead of bash for the test scripts.
Not all systems have bash available, and in those that do, we can't assume that
it's located at /bin/bash.
2018-03-26 14:41:05 -06:00
Kyle Brenneman 8b7a44fb6d tests: Expand the unit tests for libGLdispatch.
Replaced testpatchentrypoints_gldispatch with three new unit tests.

testgldispatch_static and testgldispatch_generated test dispatching to multiple
vendor libraries through static and generated dispatch stubs, respectively.

testgldispatch_generated tests entrypoint patching and unpatching. This adds
coverage for patching generated stubs in addition to the static ones.

The entrypoint patching functions in tests/dummy/patchentrypoints.c now take
the name of the function to patch, instead of hard-coding it to only patch
glVertex3fv.
2017-02-28 16:37:36 -07:00