Andreas Schiffler
e23532eac2
Add additional input validation to SDL_GetWindowDisplayMode; add tests to video suite
2013-02-28 09:11:04 -08:00
Jørgen P. Tjernø
cf58b77360
sdl2
...
- change the windows scancode logic to use the scan code value in lparam rather than VK's to get a stable scancode value across different KB layouts
2013-02-25 16:52:42 -08:00
Andreas Schiffler
c5865bdd87
Add tests to video suite
2013-02-25 08:05:26 -08:00
Ryan C. Gordon
a5862a96a3
Changed the game controller enum types to match SDL naming conventions.
2013-02-25 00:56:21 -05:00
Ryan C. Gordon
db73a392c2
Minor cleanup.
2013-02-25 00:47:47 -05:00
Ryan C. Gordon
e4ef7cba60
Made testgamecontroller minimally more useful.
2013-02-24 22:57:25 -05:00
David Ludwig
776ebe3bda
WinRT: merged with latest, official, SDL 2.x code
2013-02-23 20:01:46 -05:00
Andreas Schiffler
6b7a2ee71b
Fix bug 1723: flipped log text in audio suite - thanks P. Wiesemann
2013-02-18 07:59:05 -08:00
Andreas Schiffler
e19bbcffd3
Add tests to Video suite
2013-02-16 23:09:10 -08:00
Andreas Schiffler
edbd20ec34
Add tests to SDLtest suite
2013-02-13 23:10:29 -08:00
Andreas Schiffler
ea312e87fa
Fix fuzzer random boundary functions; add tests for fuzzer
2013-02-12 22:23:42 -08:00
Jørgen P. Tjernø
ee501f4736
Fix another non-C90 variable declaration
...
This fixes a build issue with C variable declarations in the tests, for
VisualC.
2013-02-12 14:53:47 -08:00
Jørgen P. Tjernø
f85aeb98c7
Don't clobber refcounting in SDL_Init.
...
- Fixes bug 1712 by not overwriting SDL_SubsystemRefCount in SDL_Init.
- Removes the SDL_initialized variable, and makes SDL_SubsystemRefCount
the canonical source of truth for whether or not a subsystem has been
initialized.
- Refactors SDL_InitSubSystem and SDL_QuitSubSystem to use helper
functions to manage refcount.
- Adds automated tests for SDL_Init/Quit*.
- Adds SDL_bits.h which contains SDL_MostSignificantBitIndex.
2013-02-12 11:47:31 -08:00
Sam Lantinga
d36265107b
Backed out use of @autorelease keyword for now, since it's not supported by older Xcode versions.
2013-02-11 17:39:52 -08:00
Andreas Schiffler
da76be8927
Add SDL_test test suite; add fuzzer test cases; fix fuzzer bug; fix compiler warnings
2013-02-08 07:14:50 -08:00
stopiccot
929560081c
Replaced manual NSAutoreleasePool handing with @autorelease
2013-01-06 19:04:53 +03:00
Andreas Schiffler
ade15e571f
Add tests to audio suite; update harness filter logic
2013-01-31 08:45:30 -08:00
Andreas Schiffler
2e9dea31c5
Add mouse tests; update test suites
2013-01-24 07:58:59 -08:00
Andreas Schiffler
896befb67b
Add tests to mouse suite; fix VS compiler warnings in tests
2013-01-23 08:03:19 -08:00
Andreas Schiffler
b507ef3afa
Add additional input validation to SDL_BuildAudioCVT; add additional tests to automation (audio, rwops)
2013-01-21 09:16:27 -08:00
Andreas Schiffler
a971c6b291
Added timer test suite
2013-01-14 08:14:53 -08:00
Andreas Schiffler
02493c6188
Fix RWops test suite crash on Linux: remove unnecessary fclose
2013-01-14 07:20:55 -08:00
Andreas Schiffler
3bc9dbe16c
Add input validation to SDL_GetKeyFromScancode; fix compiler warning in testautomation driver on Linux; update keyboard test suite
2013-01-13 22:55:26 -08:00
Andreas Schiffler
b4a190fb6f
Update SDL_InvalidParamError to take param name; add additional fuzzer function; add new tests to keyboard test suite; improve surface test suite
2013-01-12 22:58:12 -08:00
Andreas Schiffler
a20096403e
Add new internal error message for invalid parameters; add validation of input rect in SDL_SetTextInputRect; add test cases for SDL_SetTextInputRect to keyboard suite
2013-01-11 20:36:39 -08:00
Andreas Schiffler
054a17097d
Added 3 more test cases to keyboard suite
2013-01-10 23:26:49 -08:00
Andreas Schiffler
71eabe59cb
Add a few keyboard tests; fix missing input validation in SDL_GetKeyFromName
2013-01-07 07:39:15 -08:00
Andreas Schiffler
5220df817b
Add new test suite (mouse) with a few new tests
2013-01-06 18:19:30 -08:00
Andreas Schiffler
687ba034f6
Add new test suites (events, keyboard, syswm, video) with a few new tests each
2013-01-06 15:17:59 -08:00
Sam Lantinga
441cba9b55
Fixed bug 1672 - Found: seg-fault with testgesture
...
automata 2012-12-23 22:05:21 PST
An incorrect guard resulted in segmentation faults with the
SDL/test/testgesture executable. The attached patch fixes this issue, and also
allows the program's window to properly handle resize events.
Apply the attached patch to .../SDL/test/testgesture.c
2012-12-31 14:08:43 -08:00
Sam Lantinga
1a92f18381
Added SDL_SetWindowMaximumSize() and SDL_GetWindowMaximumSize()
...
Also fixed Cocoa implementation so that it affects client area, not the whole window area.
2012-12-31 12:15:25 -08:00
Sam Lantinga
ce28a79602
Added SDL_GetDisplayName(), with implementation for Mac OS X
2012-12-31 11:07:46 -08:00
Sam Lantinga
5e519b21ed
Renamed SDL_GetWindowDisplay() to SDL_GetWindowDisplayIndex()
2012-12-31 10:29:17 -08:00
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
13fe19497e
Added --fullscreen-desktop option to test the new SDL_WINDOW_FULLSCREEN_DESKTOP functionality
2012-12-31 10:13:25 -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
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
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
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
David Ludwig
643b3f0a30
WinRT: merged with the latest official SDL source
2012-12-16 22:02:01 -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