Commit Graph
82 Commits
Author SHA1 Message Date
Eric Anholt 7f68641d1b Make headerguards check for double-inclusion of our own headers.
Since I was touching these bits, it was easy enough to make sure that
our header guards work on our own headers.
2014-01-22 01:05:59 -08:00
Eric Anholt 972989b4ce Fix copyrights on the Makefile.ams.
When initially writing the Makefiles, I started from a Makefile.am
that had ajax's copyright instead of an Intel one.  The only line I
can see that's left from the original Makefile.am is "pkgconfigdir" in
the root Makefile.am.
2013-12-16 09:20:25 -08:00
Eric Anholt c92fcc852f Fix testsuite build on OS X.
There's no linker flag of this name in the normal clang, presumably
beause the linker feature doesn't exist.
2013-12-16 08:27:55 -08:00
Eric Anholt 3d2a2b3c80 Abandon ifuncs and go with the traditional global function pointers.
In addition to the failing testcase, there were a couple of
regressions in piglit's attribs test: one from glBegin_unwrapped vs
glBegin confusion in the __asm__ directives we were generating, and
one where the function pointers apparently were just getting mixed up
at application runtime.
2013-12-15 20:15:51 -08:00
Eric Anholt e58e98feee Fix the behavior of glx_shared_znow if it doesn't die at startup.
We're sharing the source file with glx_static, but we don't want to
SKIP due to not being statically linked.
2013-12-13 17:00:56 -08:00
Eric Anholt 5c4f73fa7f Add a test showing a way that our ifuncs are broken. 2013-12-13 13:01:22 -08:00
Eric Anholt acd3b38d6e Relink tests when the library changes.
For the dynamically-linked tests, it wasn't a big deal because the
updated library was always picked up.  But for glx_static, we were
actually testing stale code.
2013-12-13 12:30:14 -08:00
Eric Anholt d6e4e9ac4c Fix the build of the headerguards test on OS X. 2013-12-11 17:18:28 -08:00
Eric Anholt 34d7b3d872 Fix signedness warning on OS X build of the testsuite. 2013-12-11 17:18:28 -08:00
Eric Anholt 6553c08752 Fix compiler warning in glx_static. 2013-12-11 14:58:33 -08:00
Eric Anholt 22ce76fe0b Make glx_static report skip if it was built non-static.
It won't have that symbol, unless it happens to be linked against the
full library.
2013-12-11 14:35:46 -08:00
Eric Anholt 2206e6e302 Add a testcase for trying to use libepoxy as a static library.
Note that it will only actually link statically against epoxy if
you've set --enable-static.
2013-12-11 13:49:08 -08:00
Eric Anholt ca14052cfe Add a test for basic functionality on win32. 2013-12-10 14:19:01 -08:00
Eric Anholt bfd687da89 Port tests directory to win32. 2013-12-06 18:34:46 -08:00
Eric Anholt 0d7d26537d Conditionalize building GLX and EGL tests and headers.
Note that the generated code is still generated, they just aren't
built and installed.  The goal with that is that someone could take
the built .c and .h files and drop it into their own project, if they
want to avoid shared libs.
2013-12-06 15:50:01 -08:00
Eric Anholt 19053c4d6f Fix out of tree build 2013-12-06 15:50:01 -08:00
Eric Anholt 01ce694073 Add a compile-time test for missing #defines. 2013-12-06 11:38:41 -08:00
Eric Anholt 0983996e49 Fix calling new entrypoints from within glBegin()/glEnd(). 2013-12-05 15:07:08 -08:00
Eric Anholt 9ffa5d25c4 Add a test for a bug when called during glBegin()/glEnd(). 2013-12-05 15:07:08 -08:00
Eric Anholt 8bb5a2545e Fix extension detection on core GL contexts.
The nasty old strings were deprecated.
2013-12-05 13:02:51 -08:00
Eric Anholt 20f03e65c4 Add a new test for our public API against a core context.
Our extension detection for core is totally broken.
2013-12-05 12:56:58 -08:00
Eric Anholt a258cdcffe Pull a helper function from piglit.
I need this for doing testing against core contexts.
2013-12-05 12:56:58 -08:00
Eric Anholt f2d5248e3d Add missing .gitignore bits for EGL 2013-12-05 12:56:57 -08:00
Eric Anholt 0270c80008 Add support for EGL.
This totally replaces the getprocaddress and dlsym code, which was
basically just stubs up until now.  The is_glx/is_egl() is also
dropped -- they weren't doing anything, and the only false answer they
could give is if the dlopen were to fail.
2013-12-05 12:38:15 -08:00
Eric Anholt 2be86a9a9c Add .gitignore for the built tests. 2013-12-05 11:06:23 -08:00
Eric Anholt de70a2a0ab Fix a similar bug to HEAD~2, this time in epoxy_has_glx_extension(). 2013-12-04 19:22:13 -08:00
Eric Anholt 7603c144db Add a failing testcase for the public API of epoxy_has_glx_extension. 2013-12-04 19:20:34 -08:00
Eric Anholt 0f67bf3f11 Fix bug in public entrypoint for epoxy_glx_version()
Unfortunately, for GLX 1.4+ entrypoints (just glxGetProcAddress
currently) or extensions, if there isn't a context bound then we don't
have a dpy and screen available to provide useful debug messages.  Oh
well.
2013-12-04 19:18:31 -08:00
Eric Anholt 14f822ee91 Add a testcase for a bug in the public API. 2013-12-04 19:18:31 -08:00
Eric Anholt 617fd39b5b Add a test for including system GL headers after epoxy. 2013-12-04 16:19:20 -08:00
Eric Anholt 106298f2f9 Add a little more testing of our public GLX API. 2013-12-04 16:11:53 -08:00
Eric Anholt 04cf940e1b Add an initial testsuite for GLX API. 2013-11-14 11:18:15 -08:00