Anonymous Maarten
bf113bbe2a
cmake: break dependency cycle when doing an in-source build
2025-12-24 22:18:57 +01:00
Anonymous Maarten
9dd3e2305e
dlnote: embed trailing semicolon in SDL_ELF_NOTE_DLOPEN macro
2025-12-24 23:45:50 +03:00
Anonymous Maarten
e79cfbe520
testcustomcursor: plug memory leak
2025-12-22 22:43:05 +01:00
Anonymous Maarten
2cd84bd581
testcustomcursor: add --frames argument accepting multiple paths
2025-12-22 22:43:05 +01:00
Frank Praznik
7fe81f789f
tests: Add clipboard clearing functionality to testclipboard
...
Use Alt+C/P to clear the clipboard/primary selection in testclipboard.
2025-12-22 13:29:28 -05:00
Sam Lantinga
64df9cfa47
testmessage: quit if we get a mouse click
2025-12-15 08:56:11 -08:00
Anonymous Maarten
a296c40867
isfinite is not available on all platforms, so add a bitmasking alternative
...
Compiler Explorer shows both result in the same assembly.
2025-12-08 20:48:47 +01:00
Anonymous Maarten
f896e26f59
tests: find X11 and wayland-client
2025-12-08 20:48:47 +01:00
Ryan C. Gordon
6f774908fe
audio: SDL_GetAudioDeviceName() now works with the default device IDs.
...
Fixes #14615 .
2025-12-08 11:25:15 -05:00
Ryan C. Gordon
4194879df1
surface: Surface rotation property should be float, not int.
...
Adjusted camera internals to work in floats, too.
Reference Issue #14616 .
2025-12-07 22:25:08 -05:00
Ryan C. Gordon
2c11d62d17
camera: Report rotation needed to account for device orientation.
...
Fixes #11476 .
2025-12-06 13:51:10 -05:00
Sam Lantinga
27744952d1
testyuv: respect the --renderer parameter with --all
...
Also fixed a memory leak at shutdown
2025-12-05 08:46:58 -08:00
Anonymous Maarten
0e96cbd8ce
tests: build tests with C99 standard by default
2025-12-05 08:30:52 -08:00
Sam Lantinga
5c7d549267
testyuv: added comprehensive testing of YUV texture rendering
...
This tests all supported colorspaces and YUV formats across all available renderers
2025-12-05 08:30:52 -08:00
Sam Lantinga
e41bdfafe4
testyuv: allow loading BMP files
2025-12-05 08:30:52 -08:00
Sam Lantinga
fc8d725367
testyuv: fixed crash if the test file couldn't be loaded
2025-12-05 08:30:52 -08:00
Sam Lantinga
03c932b9a7
testclipboard: load any image format supported by SDL
2025-12-05 08:30:52 -08:00
Anonymous Maarten
ccdc9231f5
test: allow GNU extensions
2025-12-04 19:22:19 +01:00
Anonymous Maarten
7b74fbb73f
test: build testver in with the C90 standard
...
By building at least one test in C90 mode, we make sure the SDL headers are C90 compatible.
2025-12-04 18:50:19 +01:00
Sam Lantinga
b5dd0ee07b
Relax the requirement that test programs be C90 compliant
...
Fixes https://github.com/libsdl-org/SDL/issues/14588
2025-12-04 07:30:28 -08:00
Simon McVittie
65ef4df6d4
testver: Assert that SDL_GetRevision() starts with SDL-
...
https://github.com/libsdl-org/SDL/issues/14575
Signed-off-by: Simon McVittie <smcv@collabora.com >
2025-12-03 08:48:48 -08:00
Ryan C. Gordon
505cd6cd22
testautomation_video: Don't do fullscreen toggling tests on Emscripten.
...
SDL_SetWindowFullscreen now reports failure while a fullscreen transition is
already in progress on Emscripten, upsetting the test when it tries to come
back to windowed mode, but testautomation will never give correct results here
even when we fix the backend to queue pending reversal requests, because
you'll have to return to the Emscripten mainloop before these state changes
will occur.
It's just sort of luck this specific test passed before on this target.
2025-12-02 14:36:27 -05:00
Sam Lantinga
ea1514ab63
testthread: verify that child threads aren't SDL_IsMainThread()
2025-11-30 12:15:48 -08:00
Sam Lantinga
955698c635
testthread: SDL performs thread initialization automatically
2025-11-30 12:15:48 -08:00
Anonymous Maarten
e221905195
Fix check_stdlib_usage.py libc call matching
...
It now matches libc usage inside statements,
and skips libc-like usage in strings or as struct members.
2025-11-25 01:07:10 +01:00
Sam Lantinga
ebd3aa5289
testgpu_spinning_cube: fixed error handling if texture creation fails
2025-11-24 08:31:38 -08:00
Sam Lantinga
ba919832e4
testgpu_spinning_cube: removed duplicate calls to clear and present
2025-11-24 08:24:43 -08:00
Anonymous Maarten
ce5e46c37d
Add SDL_(Get|Set)iSurfaceClipRect automation test
...
Co-authored-by: Sam Lantinga <slouken@libsdl.org >
(cherry picked from commit a65111bd2d )
2025-11-24 00:02:36 +01:00
Ryan C. Gordon
99d7dad7e6
pen: Dramatic improvements to proximity information.
...
Now everything will attempt to track pens through proximity changes (instead
of removing the pen entirely). testpen.c has been updated to reflect this.
Some platforms and devices are better at this than others, but this seems like
a significant usability improvement across the board.
Fixes #12992 .
2025-11-21 08:13:16 -05:00
eafton
36976ecb43
X11TK: Introduce Thai support and rewrite/cleanup messagebox positioning code ( #14474 )
2025-11-20 15:26:46 -08:00
Sam Lantinga
1e5cbbc1d0
checkkeys: clarify that SDL_HINT_WINDOWS_RAW_KEYBOARD isn't needed
2025-11-19 08:54:43 -08:00
Anonymous Maarten
8f21fe4994
testmouse: avoid use-after-free
...
Bug was introduced in 17a891daa8
2025-11-18 08:35:56 +01:00
Anonymous Maarten
8920736df0
cmake: add testrwlock to CTest test suite
2025-11-17 20:00:02 +01:00
Anonymous Maarten
17a891daa8
test: plug leaks of testmouse and testrwlock
2025-11-17 20:00:02 +01:00
Anonymous Maarten
3ba9bdfc01
test: use SDL_test to parse arguments of tests
2025-11-17 20:00:02 +01:00
Ozkan Sezer
a882afafe5
fixed several -Wzero-as-null-pointer-constant warnings from gcc-15
2025-11-17 17:55:10 +03:00
Sam Lantinga
770b38b4f1
Loosened epsilon for color matching
...
Fixed https://github.com/libsdl-org/SDL/issues/14473
2025-11-15 16:51:19 -08:00
Sam Lantinga
ed6d41f55b
testcontroller: demonstrate multiple sensors on the virtual controller
2025-11-14 08:18:04 -08:00
Sam Lantinga
cc3b5766fa
testsprite: changed return type of LoadSprite() to bool
2025-11-14 08:05:49 -08:00
Maia
a01d6f109d
Add SDL_LoadSurface and SDL_LoadSurface_IO ( #14374 )
2025-11-13 14:50:37 -08:00
Sam Lantinga
fffaf122df
Added temporary workaround for failing Emscripten test
2025-11-10 18:30:02 -08:00
Sam Lantinga
eccd5c03c3
testautomation: added tests to cover linear <-> sRGB colorspace conversion
2025-11-10 18:30:02 -08:00
Anonymous Maarten
2bc886d0bd
testqsort: add custom macro to allow comparing with qsort
2025-11-09 11:24:03 +00:00
Anonymous Maarten
2be18f340f
testqsort: use SDLTest_TestSuite
2025-11-09 11:24:03 +00:00
Sam Lantinga
a2ed1a4197
Fixed blitting bitmaps with a non-zero x offset
...
Also added basic testautomation coverage of bitmap blits
Fixes https://github.com/libsdl-org/sdl2-compat/issues/546
2025-11-06 22:47:50 -08:00
Sam Lantinga
09f00e397c
testsymbols: include SDL_main.h
2025-10-31 10:34:42 -07:00
Sam Lantinga
b3612f6462
testautomation: fixed RLE operation test on big endian systems
...
Fixes https://github.com/libsdl-org/SDL/issues/14348
2025-10-29 16:26:31 +00:00
Sam Lantinga
84fac6ca44
testautomation: verify that RLE operation output is correct
2025-10-29 09:07:56 -07:00
Sam Lantinga
1fa6475c90
Added support for saving indexed PNG images
...
Fixes https://github.com/libsdl-org/SDL/issues/14303
2025-10-23 12:40:41 -07:00
Vicki Pfau
4037c258a1
testcontroller: Fix crash when unplugging a controller while calibrating gyro
2025-10-22 20:10:21 -07:00