SDL/test
Sam Lantinga e027b85cc4 Validate that pixel formats have the correct attributes
Also added a test to save and load as BMP format to make sure pixel transformations are working correctly.

Fixes https://github.com/libsdl-org/SDL/issues/11483
2024-11-17 11:58:57 -08:00
..
android android+test: testcamera needs CAMERA permissions 2024-05-16 16:43:53 +02:00
emscripten ctest/emscripten: make audio and video driver configurable 2024-08-21 20:14:55 +02:00
n3ds N3DS port (squashed) 2022-10-10 08:50:59 -07:00
testgpu GPU: Remove D3D11 shaders from testgpu_spinning_cube 2024-11-12 17:32:25 -08:00
win32 sdlprocdump: fix minidump filename 2024-08-30 14:18:03 +02:00
audiofile.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
checkkeys.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
childprocess.c Make sure stdio handles are in blocking mode 2024-10-14 22:10:49 -07:00
CMakeLists.txt PSP: Allow building tests in parallel 2024-11-01 08:57:09 -04:00
COPYING Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
gamepad_axis_arrow.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_axis_arrow.h Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_axis.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_axis.h Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_back.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_back.h Reduced the size of the gamepad front and back images 2023-07-11 10:20:08 -07:00
gamepad_battery_unknown.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_battery_unknown.h Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_battery_wired.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_battery_wired.h Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_battery.bmp Separate joystick power state into battery status and percentage 2024-04-01 13:59:00 -07:00
gamepad_battery.h Fixed crashes when a window has NULL driverdata 2024-04-15 10:15:10 -07:00
gamepad_button_background.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_button_background.h Added button background 2023-07-11 10:26:22 -07:00
gamepad_button_small.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_button_small.h Added joystick and gamepad element display in testgamepad 2023-07-10 17:06:42 -07:00
gamepad_button.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_button.h Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_face_abxy.bmp Use light text for button labels so they show up well over the activity highlight 2023-07-16 04:32:12 -07:00
gamepad_face_abxy.h Use light text for button labels so they show up well over the activity highlight 2023-07-16 04:32:12 -07:00
gamepad_face_bayx.bmp Use light text for button labels so they show up well over the activity highlight 2023-07-16 04:32:12 -07:00
gamepad_face_bayx.h Use light text for button labels so they show up well over the activity highlight 2023-07-16 04:32:12 -07:00
gamepad_face_sony.bmp Use light text for button labels so they show up well over the activity highlight 2023-07-16 04:32:12 -07:00
gamepad_face_sony.h Use light text for button labels so they show up well over the activity highlight 2023-07-16 04:32:12 -07:00
gamepad_front.bmp Use light text for button labels so they show up well over the activity highlight 2023-07-16 04:32:12 -07:00
gamepad_front.h Use light text for button labels so they show up well over the activity highlight 2023-07-16 04:32:12 -07:00
gamepad_touchpad.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_touchpad.h Added touchpad visualization for testgamepad 2023-07-10 11:36:32 -07:00
gamepadutils.c testcontroller: fixed incorrect usage of memcpy() 2024-10-24 18:12:01 -07:00
gamepadutils.h Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
glass.bmp Re-added a simplified version of SDL_SetWindowShape() 2024-02-09 16:04:46 -08:00
glass.h Re-added a simplified version of SDL_SetWindowShape() 2024-02-09 16:04:46 -08:00
icon2x.bmp Added support for high-DPI cursors and icons 2024-08-01 13:48:28 -07:00
icon.bmp Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
icon.h testspriteminimal: make standalone by embedding icon.bmp 2023-09-19 17:58:25 +02:00
LICENSE.txt test: Replace README with LICENSE.txt 2024-10-06 19:05:18 -04:00
logaudiodev.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
loopwave.c main: SDL_AppQuit() now reports the result value. 2024-09-29 23:24:04 -04:00
main.cpp Make WinRT's SDL_main header-only 2022-12-15 08:01:01 -08:00
moose.dat Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
physaudiodev.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
picture.xbm Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
pretest.c Removed temporary memory from the API 2024-07-26 20:59:14 -07:00
relative_mode.markdown Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
sample.bmp Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
sample.wav Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
soundboard_levels.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
soundboard.bmp testaudio: Fixed soundboard icon, which had a colorkey issue. 2023-08-03 21:35:38 -04:00
speaker.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
template.test.in build: Fix testprocess invocation during "as-installed" tests 2024-09-25 14:48:26 -07:00
testatomic.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testaudio.c Removed unnecessary const-qualifiers in src and test files 2024-10-03 17:39:08 -04:00
testaudiohotplug.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testaudioinfo.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testaudiorecording.c main: SDL_AppQuit() now reports the result value. 2024-09-29 23:24:04 -04:00
testaudiostreamdynamicresample.c tests: Fix tests when run with the --high-pixel-density flag 2024-09-19 12:54:13 -04:00
testautomation_audio.c Remove casts from typed pointer to void * for printf %p in test projects 2024-09-24 14:40:32 +03:00
testautomation_blit.c Adding void to empty function prototype parenthesis 2024-09-11 19:44:52 -07:00
testautomation_clipboard.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_events.c Remove casts from typed pointer to void * for printf %p in test projects 2024-09-24 14:40:32 +03:00
testautomation_guid.c SDL_test: use SDLCALL calling convention 2024-09-06 14:19:05 +02:00
testautomation_hints.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_images.c test: Make blit_testExampleApplicationRender work on big endian 2024-10-06 08:27:58 -07:00
testautomation_images.h Added SDL_BlitSurfaceTiled() 2024-07-20 18:21:19 -07:00
testautomation_intrinsics.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_iostream.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_joystick.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_keyboard.c testautomation keyboard: use space instead of a 2024-11-08 07:01:50 -08:00
testautomation_log.c Added SDL_LogTrace() 2024-09-17 02:04:54 -07:00
testautomation_main.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_math.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_mouse.c test: Fix mouse focus test on X11 2024-10-10 11:37:45 -04:00
testautomation_pixels.c Validate that pixel formats have the correct attributes 2024-11-17 11:58:57 -08:00
testautomation_platform.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_properties.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_rect.c Fixed Cohen-Sutherland out code computation for float line intersection 2024-10-13 13:04:59 -07:00
testautomation_render.c Made texture size and format public in the API 2024-10-01 08:10:04 -07:00
testautomation_sdltest.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_stdlib.c test/testautomation_stdlib.c: fix gcc warning on 32 bit 2024-10-10 21:10:24 +03:00
testautomation_subsystems.c Verify that the subsystems were successfully initialized 2024-09-15 12:04:10 -07:00
testautomation_suites.h pen: Rework public API. 2024-08-09 22:09:23 -04:00
testautomation_surface.c A zero source rect is valid for blitting 2024-09-25 22:36:55 -07:00
testautomation_time.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_timer.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_video.c testautomation_video: Another Emscripten test to be skipped. 2024-11-14 19:34:25 -05:00
testautomation.c SDL_test: move argument parsing into SDL_test 2024-09-06 03:06:40 +02:00
testbounds.c Use SDL_bool instead an int return code in the SDL API 2024-08-27 10:31:46 -07:00
testcamera.c Made texture size and format public in the API 2024-10-01 08:10:04 -07:00
testcolorspace.c testcolorspace.c: Fix unreachable code warning 2024-09-27 15:22:24 -07:00
testcontroller.c testcontroller: update the controller name when it's opened as a gamepad 2024-11-05 11:43:28 -08:00
testcustomcursor.c test: Fix testcustomcursor on high-DPI displays 2024-10-01 12:40:17 -04:00
testdialog.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testdisplayinfo.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testdraw.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testdrawchessboard.c testdrawchessboard: Allow using the standard render API 2024-10-12 16:07:16 -07:00
testdropfile.c main: SDL_AppQuit() now reports the result value. 2024-09-29 23:24:04 -04:00
testerror.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testevdev.c Make sure we call SDL_Quit() before SDLTest_CommonDestroyState() 2024-07-28 08:05:31 -07:00
testffmpeg_vulkan.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testffmpeg_vulkan.h testffmpeg_vulkan: fix -Wincompatible-pointer-types warning 2024-03-22 11:05:13 -07:00
testffmpeg.c Minor cleanup 2024-10-31 15:44:41 -07:00
testfile.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testfilesystem.c filesystem: SDL_EnumerateDirectoryCallback uses an enum now, not an int. 2024-09-28 01:33:40 -04:00
testgeometry.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testgl.c test: Change LoadContext() return value type from int to bool 2024-11-05 14:22:57 -08:00
testgles2_sdf_img_normal.bmp Add basic testgles2_sdf program to demonstrate sign distance field with opengles2 2021-01-24 00:51:24 -05:00
testgles2_sdf_img_sdf.bmp Add basic testgles2_sdf program to demonstrate sign distance field with opengles2 2021-01-24 00:51:24 -05:00
testgles2_sdf.c test: Change LoadContext() return value type from int to bool 2024-11-05 14:22:57 -08:00
testgles2.c test: Change LoadContext() return value type from int to bool 2024-11-05 14:22:57 -08:00
testgles.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testgpu_simple_clear.c GPU: Add swapchain dimension out params (#11003) 2024-09-30 10:23:19 -07:00
testgpu_spinning_cube.c GPU: Remove D3D11 shaders from testgpu_spinning_cube 2024-11-12 17:32:25 -08:00
testhaptic.c Removed SDL_INIT_TIMER 2024-09-17 08:53:27 -07:00
testhittesting.c tests: Fix tests when run with the --high-pixel-density flag 2024-09-19 12:54:13 -04:00
testhotplug.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testiconv.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testime.c Moved the SDL_ttf IME demo to showfont in the SDL_ttf project 2024-10-06 00:24:01 -07:00
testintersections.c tests: Fix tests when run with the --high-pixel-density flag 2024-09-19 12:54:13 -04:00
testkeys.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testloadso.c loadso: library handles are now SDL_SharedObject* instead of void*. 2024-10-01 12:16:10 -04:00
testlocale.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testlock.c Renamed atomic functions to match SDL 3.0 naming convention 2024-09-17 08:53:27 -07:00
testmanymouse.c Rename SDL_BUTTON() to SDL_BUTTON_MASK() 2024-10-04 09:13:59 -07:00
testmessage.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testmodal.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testmouse.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testmultiaudio.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testnative.c Made texture size and format public in the API 2024-10-01 08:10:04 -07:00
testnative.h Include SDL_build_config.h without a 'build_config/' prefix 2024-08-23 00:51:35 +00:00
testnativecocoa.m fixed typo in prev. patch. 2023-07-28 07:35:04 +03:00
testnativew32.c Make testnative (on win32) UNICODE compatible 2024-06-20 15:40:32 +02:00
testnativewayland.c Renamed SDL_Get/SetProperty() to SDL_Get/SetPointerProperty() 2024-07-12 10:41:02 -07:00
testnativex11.c Updated copyright for 2024 2024-01-01 13:15:26 -08:00
testoffscreen.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testoverlay.c tests: Fix tests when run with the --high-pixel-density flag 2024-09-19 12:54:13 -04:00
testpen.c main: SDL_AppQuit() now reports the result value. 2024-09-29 23:24:04 -04:00
testplatform.c testplatform: make sure bool is 1 byte 2024-09-18 10:01:15 -07:00
testpopup.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testpower.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testprocess.c Make sure stdio handles are in blocking mode 2024-10-14 22:10:49 -07:00
testqsort.c SDL_strtoll(), SDL_strtoull(), SDL_lltoa(), and SDL_ulltoa() use long long values 2024-09-09 15:46:26 -07:00
testrelative.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testrendercopyex.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testrendertarget.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testresample.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testrumble.c Removed SDL_INIT_TIMER 2024-09-17 08:53:27 -07:00
testrwlock.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testscale.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testsem.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testsensor.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testshader.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testshape.c Don't overwrite the SDL_IOFromConstMem() error in testshape 2024-10-14 20:07:03 -07:00
testsprite.c Fixed crashes handling D3D11/12 device lost in testsprite 2024-10-21 00:29:18 -07:00
testspriteminimal.c testspriteminimal: only quit when escape is pressed 2024-10-23 10:51:14 -07:00
testspritesurface.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
teststreaming.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testsurround.c Simplify get_channel_name() so it's easier for people to read and understand 2024-10-22 18:19:30 -07:00
testthread.c Rename SDL_SetThreadPriority() to SDL_SetCurrentThreadPriority() 2024-10-04 08:57:03 -07:00
testtime.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testtimer.c Improved implementation of SDL_DelayPrecise() (thanks @nightmareci!) 2024-10-11 21:18:31 -07:00
testurl.c Use SDL_bool instead an int return code in the SDL API 2024-08-27 10:31:46 -07:00
testutils.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testutils.h Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testver.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testviewport.c Made texture size and format public in the API 2024-10-01 08:10:04 -07:00
testvulkan.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testwaylandcustom.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testwm.c Fixed build 2024-10-06 08:42:00 -07:00
testyuv_cvt.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testyuv_cvt.h Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testyuv.bmp Updated SDL's YUV support, many thanks to Adrien Descamps 2017-11-12 22:51:12 -08:00
testyuv.c Add void to run_colorspace_test() function prototype 2024-10-16 11:16:42 -07:00
torturethread.c Renamed atomic functions to match SDL 3.0 naming convention 2024-09-17 08:53:27 -07:00
trashcan.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
unifont-15.1.05-license.txt Updated unifont to version 15.1.05 2024-06-27 17:43:03 -07:00
unifont-15.1.05.hex Updated unifont to version 15.1.05 2024-06-27 17:43:03 -07:00
utf8.txt Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00