Sam Lantinga
ac0f89315c
Switched the test code over to use the common functions in the test library.
2012-12-31 10:26:38 -08:00
Sam Lantinga
f367ee7277
Implemented SDL_HINT_ALLOW_TOPMOST for the Cocoa video driver
2012-12-31 10:14:38 -08:00
Sam Lantinga
13fe19497e
Added --fullscreen-desktop option to test the new SDL_WINDOW_FULLSCREEN_DESKTOP functionality
2012-12-31 10:13:25 -08:00
Sam Lantinga
f4294fd806
Improvements from Alfred:
...
- Added new SDL_HINT_ALLOW_TOPMOST hint, when set to "0" then never set the topmost bit on a window. Useful when debugging fullscreen issues.
- fixed crash in windows joystick scanning if we failed to load the xinput dll
- added support for SDL_WINDOW_FULLSCREEN_DESKTOP under windows
- synthesize relative mouse movements if directinput fails to send relative moves, happens under virtual box.
2012-12-31 09:30:15 -08:00
Andreas Schiffler
1b938d7de2
Fix incorrect use of SDL_FreeRW in rwops suite; add testcase for SDL_AllocRW/SDL_FreeRW to rwops test suite
2012-12-30 19:05:50 -08:00
Andreas Schiffler
485dd6420e
Add define to surface suite to quiet VS compiler warnings
2012-12-30 11:12:31 -08:00
Andreas Schiffler
1ab1039416
Add missing VS project dependencies to fix buildbot build; fix surface suite; minor update to rwops suite
2012-12-30 10:58:18 -08:00
Andreas Schiffler
40c14b85a8
Add testautomation to VS project; remove automated from VS project; minor update to platform suite
2012-12-30 09:58:03 -08:00
Ryan C. Gordon
da7983235f
Better compiler warning fix for gcc2.
2012-12-28 20:01:41 -05:00
Ryan C. Gordon
cfbe53d1df
Fixing buildbot on Haiku.
...
Damn you, gcc2.
2012-12-28 18:15:02 -05:00
Sam Lantinga
db5b89f13f
Don't crash if loading the OpenGL library fails
2012-12-28 14:46:03 -08:00
Ryan C. Gordon
fc98164d8d
Replaced Gnome screensaver hack with D-Bus messages to org.gnome.ScreenSaver.
2012-12-28 03:46:55 -05:00
Andreas Schiffler
9ddb1f459d
Add surface test suite; minor improvements to render suite; refactor image saving into test lib compare function; fix for Haiku build
2012-12-26 22:26:44 -08:00
Andreas Schiffler
d9a9083464
Added audio test suite; minor code cleanups in test lib
2012-12-24 14:43:57 -08:00
Andreas Schiffler
2e4dc511a0
Fix compiler warning; minor harness driver cleanup; fix test build for SDL versions compiled with --disable-joystick or --disable-haptic
2012-12-22 20:43:51 -08:00
Andreas Schiffler
1b63b3fd52
Reorder test lib use to fix build for some compilers
2012-12-22 20:13:25 -08:00
Sam Lantinga
fff2381298
Added the automation test to the autoconf build system
...
--HG--
rename : test/tests/testclipboard.c => test/testautomation_clipboard.c
rename : test/tests/testplatform.c => test/testautomation_platform.c
rename : test/tests/testrect.c => test/testautomation_rect.c
rename : test/tests/testrender.c => test/testautomation_render.c
rename : test/tests/testrwops.c => test/testautomation_rwops.c
rename : test/tests/testsuites.h => test/testautomation_suites.h
2012-12-22 17:24:42 -08:00
Sam Lantinga
b11f967898
Fixed const correctness in the test harness
2012-12-22 17:24:14 -08:00
Sam Lantinga
a7b1d9f530
Added the test library to fatbuild
2012-12-22 17:24:02 -08:00
Sam Lantinga
acdd875c64
Fixed bug in SDL_strcasecmp() with strings of different sizes
2012-12-22 16:52:33 -08:00
Sam Lantinga
f1d2b88a2f
Merged Andreas' changes
2012-12-22 16:52:00 -08:00
Andreas Schiffler
81eb615d45
Test lib updates: updated harness to support filtering, added surface comparer, updated interface to test images; added Render test suite from GSOC project
2012-12-22 16:06:55 -08:00
Sam Lantinga
062602b52b
The latest version of MinGW-w64 has the necessary headers and libraries: http://mingw-w64.sourceforge.net/
2012-12-22 11:23:18 -08:00
Andreas Schiffler
f5af517cd2
Add image data definitions (for render tests) to test lib
2012-12-20 08:50:36 -08:00
Ryan C. Gordon
02c860852a
Patched to compile when SDL_ASSERT_LEVEL is zero.
...
--HG--
extra : rebase_source : a8a29d66692b1bba00003c017c1e3785ce008780
2012-12-18 06:35:49 -05:00
Andreas Schiffler
fa5fe44bc0
Port clipboard and rwops test suites from GSOC code; minor updates to harness and fuzzer in test lib
2012-12-16 21:59:29 -08:00
Ryan C. Gordon
ec4cfa8c73
SDL_assertion messages use "\n" instead of "\r\n" on non-Windows platforms.
2012-12-16 14:46:16 -05:00
Ryan C. Gordon
c2ec53f4fa
X11 messageboxes should treat "\r\n" as "\n" by ignoring the '\r' char.
...
--HG--
extra : rebase_source : 0054e96755f753555237f3d7dd64f1dfa1a1e56c
2012-12-16 14:39:49 -05:00
Andreas Schiffler
adefd543ce
Fixes in harness and fuzzer test lib components; improve harness driver; add rect test suite
2012-12-15 21:50:17 -08:00
Andreas Schiffler
a6185d6ad9
Refactor/fix test lib harness, assert and log component; add harness driver; port platform suite from GSOC code
2012-12-14 23:05:34 -08:00
Sam Lantinga
dfe7f2bc59
Improvements from Alfred:
...
- Add new SDL_WINDOW_FULLSCREEN_DESKTOP video mode, makes a fullscreen window the size of the desktop (i.e no window manager mode change)
- Fix crash in warp mouse if you specified null as the window
- Added new SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS Hint, if set to 0 then don't minimize a fullscreen window on focus lost (if not set or set to non-zero then minimize on focus loss)
2012-12-15 00:30:17 +00:00
Sam Lantinga
29bfd0ab48
Load the runtime udev library, not the development one.
2012-12-14 18:50:07 +00:00
Sam Lantinga
80493dfae0
Only check SDL_SYS_JoystickNeedsPolling() if we know we don't need to poll for other reasons. This avoids a select() syscall on Linux if it isn't necessary.
2012-12-14 09:22:13 -08:00
Ryan C. Gordon
6b4cb17219
Corrected Linux joystick things, fixes assertion failure from testjoystick.
2012-12-13 22:26:30 -05:00
Ryan C. Gordon
d2b1601539
Corrected device instance value for Linux joysticks.
2012-12-13 22:18:32 -05:00
Sam Lantinga
79bd6b2b7d
Added missing SDL_gamecontroller.h to the Mac OS X project
2012-12-13 16:57:12 -08:00
Ryan C. Gordon
22f3f2b927
Fixed compiler warning.
2012-12-11 19:25:35 -05:00
Ryan C. Gordon
7cb9995377
Minor sanity checking and tweaks in SDL_JoystickGetGUIDString().
2012-12-11 18:46:09 -05:00
Ryan C. Gordon
c773de800d
Patched testjoystick.c to compile.
2012-12-11 16:53:59 -05:00
Ryan C. Gordon
3da6d29ab7
Fixed comment on SDL_JoystickGetGUIDString().
2012-12-11 16:53:38 -05:00
Sam Lantinga
2d04749a9c
Fixed building joystick code on Mac OS X
2012-12-11 12:35:11 -08:00
Sam Lantinga
5f53c47559
Fixed joystick GUID renaming for other platforms
2012-12-11 12:16:28 -08:00
Sam Lantinga
af4d258edb
Fixed compiling Linux code
2012-12-11 12:08:36 -08:00
Sam Lantinga
71f9f9517c
Don't build with X11 by default since it's not included with the latest versions of Mac OS X. Cocoa is the preferred path here.
2012-12-11 12:03:00 -08:00
Sam Lantinga
b92a0f20b1
Fixed permissions on test file
2012-12-11 12:01:30 -08:00
Sam Lantinga
3899bd164f
Fixed permissions for code generation scripts
2012-12-11 12:01:04 -08:00
Sam Lantinga
5ef567b795
Fixed permissions on joystick files
2012-12-11 11:59:08 -08:00
Sam Lantinga
89ef9e3168
Changes from Alfred:
...
- rename JoystickGUID -> SDL_JoystickGUID
- change SDL_JoystickGetGUIDString to take the string as an arg, rather than doing a malloc
2012-12-11 11:54:32 -08:00
Sam Lantinga
6b3312c807
Updated configure with libudev detection
2012-12-11 10:50:45 -08:00
Sam Lantinga
a8fab2d5bf
You can get window events after shutting down the window, so don't abort the program if that happens.
2012-12-11 10:50:26 -08:00