SDL/test
Ryan C. Gordon c5daf8adb1 testcontroller: Don't query the mapping list until after they are available.
The included ones need to wait until SDL_Init has run, or you'll get an empty
list, and we might also be adding more from an external gamecontrollerdb.txt
file, too.
2023-11-29 10:33:31 -05:00
..
android cmake: create Android jars + apks for tests 2023-07-20 16:54:29 +02:00
emscripten Disable cache in python http server 2023-08-14 03:50:06 +02:00
n3ds N3DS port (squashed) 2022-10-10 08:50:59 -07:00
uwp cmake: build tests for UWP 2023-08-12 17:37:52 +02:00
CMakeLists.txt cmake: copy sources to binary directory in separate target 2023-11-28 22:16:54 +01:00
COPYING
README test: Removed loopwavequeue.c; obsolete in SDL3. 2023-07-30 11:55:57 -04:00
audiofile.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
checkkeys.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
checkkeysthreads.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08: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_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_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_empty.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_battery_empty.h Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_battery_full.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_battery_full.h Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_battery_low.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_battery_low.h Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_battery_medium.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_battery_medium.h Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -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_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_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_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 We'll just use the legacy names for face buttons in the mappings 2023-11-15 22:09:09 -08:00
gamepadutils.h SDL now represents gamepad buttons as positional elements with a separate label 2023-11-10 12:21:43 -08:00
icon.bmp
icon.h testspriteminimal: make standalone by embedding icon.bmp 2023-09-19 17:58:25 +02:00
logaudiodev.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
loopwave.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
main.cpp Make WinRT's SDL_main header-only 2022-12-15 08:01:01 -08:00
moose.dat
physaudiodev.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
picture.xbm
pretest.c cmake: let every test depends on pretest 2023-09-25 18:02:40 +02:00
relative_mode.markdown SDL_CreateWindow() has been simplified and no longer takes a window position. 2023-03-06 09:50:12 -08:00
sample.bmp
sample.wav
soundboard.bmp testaudio: Fixed soundboard icon, which had a colorkey issue. 2023-08-03 21:35:38 -04:00
soundboard_levels.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
speaker.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
template.test.in test/template.test.in: Pass SDL_NONINTERACTIVE_ARGUMENTS to installed-tests 2023-04-12 15:04:11 +00:00
testatomic.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testaudio-art.txt test: Added testaudio 2023-08-02 15:02:32 -04:00
testaudio.c Re-add SDL_assert() with non boolean ptr syntax (#8530) 2023-11-11 12:28:24 +03:00
testaudiocapture.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testaudiohotplug.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testaudioinfo.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testaudiostreamdynamicresample.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testautomation.c API for pressure-sensitive pens + XInput2/Wayland 2023-11-12 09:52:02 -08:00
testautomation_audio.c docs: Remove Doxygen `\brief` tags. 2023-11-06 10:26:06 -05:00
testautomation_clipboard.c docs: Remove Doxygen `\brief` tags. 2023-11-06 10:26:06 -05:00
testautomation_events.c docs: Remove Doxygen `\brief` tags. 2023-11-06 10:26:06 -05:00
testautomation_guid.c docs: Remove Doxygen `\brief` tags. 2023-11-06 10:26:06 -05:00
testautomation_hints.c SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 2023-11-12 21:58:58 -08:00
testautomation_images.c docs: Remove Doxygen `\brief` tags. 2023-11-06 10:26:06 -05:00
testautomation_images.h Fix warning drop const qualifier 2023-03-08 22:22:34 +01:00
testautomation_intrinsics.c docs: Remove Doxygen `\brief` tags. 2023-11-06 10:26:06 -05:00
testautomation_joystick.c Update virtual joystick test now that we're just using abxy for mappings, for compatibility 2023-11-16 00:02:47 -08:00
testautomation_keyboard.c docs: Remove Doxygen `\brief` tags. 2023-11-06 10:26:06 -05:00
testautomation_main.c docs: Remove Doxygen `\brief` tags. 2023-11-06 10:26:06 -05:00
testautomation_math.c docs: Remove Doxygen `\brief` tags. 2023-11-06 10:26:06 -05:00
testautomation_mouse.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testautomation_pen.c API for pressure-sensitive pens + XInput2/Wayland 2023-11-12 09:52:02 -08:00
testautomation_pixels.c Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB 2023-11-17 08:45:32 -08:00
testautomation_platform.c docs: Remove Doxygen `\brief` tags. 2023-11-06 10:26:06 -05:00
testautomation_properties.c Allow casting properties of different types 2023-11-12 21:58:58 -08:00
testautomation_rect.c docs: Remove Doxygen `\brief` tags. 2023-11-06 10:26:06 -05:00
testautomation_render.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testautomation_rwops.c docs: Remove Doxygen `\brief` tags. 2023-11-06 10:26:06 -05:00
testautomation_sdltest.c docs: Remove Doxygen `\brief` tags. 2023-11-06 10:26:06 -05:00
testautomation_stdlib.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testautomation_subsystems.c docs: Remove Doxygen `\brief` tags. 2023-11-06 10:26:06 -05:00
testautomation_suites.h API for pressure-sensitive pens + XInput2/Wayland 2023-11-12 09:52:02 -08:00
testautomation_surface.c Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB 2023-11-17 08:45:32 -08:00
testautomation_timer.c docs: Remove Doxygen `\brief` tags. 2023-11-06 10:26:06 -05:00
testautomation_video.c Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 2023-11-14 06:06:51 -08:00
testbounds.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testcontroller.c testcontroller: Don't query the mapping list until after they are available. 2023-11-29 10:33:31 -05:00
testcustomcursor.c Add cursors for X11/Wayland window resizing 2023-11-21 08:34:13 -08:00
testdisplayinfo.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testdraw.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testdrawchessboard.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testdropfile.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testerror.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testevdev.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testffmpeg.c Added property types: pointer, string, number, float 2023-11-12 10:48:38 -08:00
testffmpeg_videotoolbox.h Added support for 0-copy decode and display using Apple VideoToolbox 2023-10-10 03:32:46 -07:00
testffmpeg_videotoolbox.m Added support for 0-copy decode and display using Apple VideoToolbox 2023-10-10 03:32:46 -07:00
testfile.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testfilesystem.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testgeometry.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testgl.c x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 2023-11-23 13:56:51 -05:00
testgles.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testgles2.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testgles2_sdf.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -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
testhaptic.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testhittesting.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testhotplug.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testiconv.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testime.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testintersections.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testkeys.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testloadso.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testlocale.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testlock.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testmessage.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testmouse.c Fix scroll wheel handling in testmouse 2023-11-28 14:41:16 -08:00
testmultiaudio.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testnative.c Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 2023-11-14 06:06:51 -08:00
testnative.h Fix uses of undefined macro identifiers (-Wundef) 2023-03-29 21:49:01 +00:00
testnativecocoa.m fixed typo in prev. patch. 2023-07-28 07:35:04 +03:00
testnativew32.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testnativex11.c Updated copyright for 2023 2023-01-09 09:41:41 -08:00
testoffscreen.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testoverlay.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testpen.c API for pressure-sensitive pens + XInput2/Wayland 2023-11-12 09:52:02 -08:00
testplatform.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testpopup.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testpower.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testqsort.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testrelative.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testrendercopyex.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testrendertarget.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testresample.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testrumble.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testrwlock.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testscale.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testsem.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testsensor.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testshader.c testshader: Don't make local variables with the same name as GL entry points. 2023-11-20 15:12:37 -05:00
testshape.c Removed the window shape API for SDL 3.0 2023-11-22 14:11:10 -08:00
testsprite.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testspriteminimal.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
teststreaming.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testsurround.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testthread.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testtimer.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testurl.c Updated copyright for 2023 2023-01-09 09:41:41 -08:00
testutils.c Support returning <8bpp surfaces in SDL_LoadBMP_RW 2023-11-17 08:45:32 -08:00
testutils.h Relicensed testutils to match other test code 2023-07-16 04:32:12 -07:00
testver.c testver: don't allow any arguments 2023-03-17 17:54:16 +01:00
testvideocapture.c SDL_VideoCapture: allow add/remove device at runtime on linux 2023-11-27 16:01:10 -05:00
testvideocaptureminimal.c SDL_VideoCapture: allow add/remove device at runtime on linux 2023-11-27 16:01:10 -05:00
testviewport.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testvulkan.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testwm.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testyuv.bmp Updated SDL's YUV support, many thanks to Adrien Descamps 2017-11-12 22:51:12 -08:00
testyuv.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
testyuv_cvt.c tests: build tests with C90 standard 2023-05-27 01:49:07 +02:00
testyuv_cvt.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
torturethread.c Pointer as bool (libsdl-org#7214) 2023-11-09 14:18:36 -08:00
trashcan.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
unifont-13.0.06-license.txt Latest Unifont with OFL is now bundled. (#4268) 2021-07-08 14:51:16 -07:00
unifont-13.0.06.hex Latest Unifont with OFL is now bundled. (#4268) 2021-07-08 14:51:16 -07:00
utf8.txt

README

These are test programs for the SDL library:

	checkkeys	Watch the key events to check the keyboard
	loopwave	Audio test -- loop playing a WAV file
	testsurround	Audio test -- play test tone on each audio channel
	testaudioinfo	Lists audio device capabilities
	testerror	Tests multi-threaded error handling
	testfile	Tests RWops layer
	testgl		A very simple example of using OpenGL with SDL
	testiconv	Tests international string conversion
	testkeys	List the available keyboard keys
	testloadso	Tests the loadable library layer
	testlocale  Test Locale API
	testlock	Hacked up test of multi-threading and locking
	testmouse	Tests mouse coordinates
	testmultiaudio	Tests using several audio devices
	testoverlay	Tests the overlay flickering/scaling during playback.
	testplatform	Tests types, endianness and cpu capabilities
	testsem		Tests SDL's semaphore implementation
	testshape	Tests shaped windows
	testsprite	Example of fast sprite movement on the screen
	testthread	Hacked up test of multi-threading
	testtimer	Test the timer facilities
	testver		Check the version and dynamic loading and endianness
	testwm		Test window manager -- title, icon, events
	torturethread	Simple test for thread creation/destruction
	gamepadmap   Useful to generate Game Controller API compatible maps



This directory contains sample.wav, which is a sample from Will Provost's
song, The Living Proof:

     From the album The Living Proof
     Publisher: 5 Guys Named Will
     Copyright 1996 Will Provost

You can get a copy of the full song (and album!) from iTunes...

    https://itunes.apple.com/us/album/the-living-proof/id4153978

or Amazon...

    http://www.amazon.com/The-Living-Proof-Will-Provost/dp/B00004R8RH

Thanks to Will for permitting us to distribute this sample with SDL!