This website requires JavaScript.
Explore
Help
Sign In
picnoir
/
libglvnd
Watch
1
Star
0
Fork
You've already forked libglvnd
0
Code
Issues
Pull requests
Packages
Projects
Releases
Wiki
Activity
e99a11518c
libglvnd
/
tests
/
testgldispatch_patched.sh
8 lines
75 B
Bash
Raw
Normal View
History
Unescape
Escape
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-08 19:43:49 +01:00
#!/bin/sh
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 20:40:53 +01:00
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-11-28 16:30:38 +01:00
set
-e
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 20:40:53 +01:00
./testgldispatch -s -g -p
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-11-28 16:30:38 +01:00
./testgldispatch -s -g -p -l
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 20:40:53 +01:00
Reference in a new issue
Copy permalink