SDL/test
Sylvain Becker fb0ce375f0 Cleanup add brace (#6545)
* Add braces after if conditions

* More add braces after if conditions

* Add braces after while() conditions

* Fix compilation because of macro being modified

* Add braces to for loop

* Add braces after if/goto

* Move comments up

* Remove extra () in the 'return ...;' statements

* More remove extra () in the 'return ...;' statements

* More remove extra () in the 'return ...;' statements after merge

* Fix inconsistent patterns are xxx == NULL vs !xxx

* More "{}" for "if() break;"  and "if() continue;"

* More "{}" after if() short statement

* More "{}" after "if () return;" statement

* More fix inconsistent patterns are xxx == NULL vs !xxx

* Revert some modificaion on SDL_RLEaccel.c

* SDL_RLEaccel: no short statement

* Cleanup 'if' where the bracket is in a new line

* Cleanup 'while' where the bracket is in a new line

* Cleanup 'for' where the bracket is in a new line

* Cleanup 'else' where the bracket is in a new line

(cherry picked from commit 6a2200823c to reduce conflicts merging between SDL2 and SDL3)
2022-11-28 12:33:03 -08:00
..
emscripten
n3ds N3DS port (squashed) 2022-10-10 08:50:59 -07:00
nacl
shapes
CMakeLists.txt cmake: add time out to tests to avoid ci timeouts 2022-11-16 15:42:08 +01:00
COPYING
Makefile.in Added a virtual joystick automated test 2022-07-13 08:58:15 -07:00
Makefile.os2 watcom: add ENABLE_WERROR option to makefiles 2022-10-08 23:41:07 +02:00
Makefile.w32 watcom: add ENABLE_WERROR option to makefiles 2022-10-08 23:41:07 +02:00
README
acinclude.m4 revert replace AM_PATH_SDL2 usage with corresponding PKG_CHECK_MODULES. 2022-11-07 21:15:30 +03:00
autogen.sh minor tidy-up to configury. 2022-06-15 17:00:02 +03:00
axis.bmp
button.bmp
checkkeys.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
checkkeysthreads.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
configure revert replace AM_PATH_SDL2 usage with corresponding PKG_CHECK_MODULES. 2022-11-07 21:15:30 +03:00
configure.ac revert replace AM_PATH_SDL2 usage with corresponding PKG_CHECK_MODULES. 2022-11-07 21:15:30 +03:00
controllermap.bmp
controllermap.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
controllermap_back.bmp
icon.bmp
loopwave.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
loopwavequeue.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
moose.dat
picture.xbm
relative_mode.markdown
sample.bmp
sample.wav
template.test.in test: Install GNOME-style installed-tests metadata 2022-05-04 18:17:55 -07:00
testatomic.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testaudiocapture.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testaudiohotplug.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testaudioinfo.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testautomation.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testautomation_audio.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testautomation_clipboard.c Add support for X11 primary selection (#6132) 2022-09-14 09:28:35 -07:00
testautomation_events.c
testautomation_guid.c N3DS: Fix `-Wformat` warnings in tests. 2022-10-10 08:50:59 -07:00
testautomation_hints.c SDL_ResetHint() no longer clears the callbacks associated with a hint 2022-10-02 17:17:31 -07:00
testautomation_joystick.c Fixed build 2022-10-25 10:30:56 -07:00
testautomation_keyboard.c N3DS: Fix `-Wformat` warnings in tests. 2022-10-10 08:50:59 -07:00
testautomation_main.c automation_main.c: fix -Wformat-zero-length warning due to SDL_SetError("") 2022-10-08 23:41:07 +02:00
testautomation_math.c N3DS: Fix `-Wformat` warnings in tests. 2022-10-10 08:50:59 -07:00
testautomation_mouse.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testautomation_pixels.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testautomation_platform.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testautomation_rect.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testautomation_render.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testautomation_rwops.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testautomation_sdltest.c N3DS: Fix `-Wformat` warnings in tests. 2022-10-10 08:50:59 -07:00
testautomation_stdlib.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testautomation_suites.h Added a virtual joystick automated test 2022-07-13 08:58:15 -07:00
testautomation_surface.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testautomation_syswm.c
testautomation_timer.c N3DS: Fix `-Wformat` warnings in tests. 2022-10-10 08:50:59 -07:00
testautomation_video.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testbounds.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
testcustomcursor.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testdisplayinfo.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testdraw2.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testdrawchessboard.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testdropfile.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testerror.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testevdev.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testfile.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testfilesystem.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testgamecontroller.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testgeometry.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testgesture.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testgl2.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testgles.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testgles2.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testgles2_sdf.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testgles2_sdf_img_normal.bmp
testgles2_sdf_img_sdf.bmp
testhaptic.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testhittesting.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testhotplug.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testiconv.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testime.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testintersections.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testjoystick.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testkeys.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testloadso.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
testlocale.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
testlock.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testmessage.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testmouse.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testmultiaudio.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testnative.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testnative.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
testnativecocoa.m
testnativeos2.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
testnativew32.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
testnativex11.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
testoffscreen.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testoverlay2.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testplatform.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testpower.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
testqsort.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testrelative.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testrendercopyex.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testrendertarget.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testresample.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
testrumble.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testscale.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testsem.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testsensor.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testshader.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testshape.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testsprite2.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testspriteminimal.c testspriteminimal: fix conversion from `time_t` to `unsigned int` 2022-10-08 23:41:07 +02:00
teststreaming.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testsurround.c test: Add a mode to skip tests that involve arbitrary delays 2022-05-04 18:17:55 -07:00
testthread.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testtimer.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testurl.c Add a default URL in testurl 2022-07-01 13:54:17 -07:00
testutils.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testutils.h test: Add some common code to load test resources 2022-05-04 18:17:55 -07:00
testver.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testviewport.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testvulkan.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testwm2.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testyuv.bmp
testyuv.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testyuv_cvt.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
testyuv_cvt.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
torturethread.c Cleanup add brace (#6545) 2022-11-28 12:33:03 -08:00
unifont-13.0.06-license.txt
unifont-13.0.06.hex
utf8.txt
watcom.mif tests, watcom: silence lots of W202 warnings from new vulkan headers. 2022-09-18 17:33:04 +03:00

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
	loopwavequeue	Audio test -- loop playing a WAV file with SDL_QueueAudio
	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
	testgl2		A very simple example of using OpenGL with SDL
	testiconv	Tests international string conversion
	testjoystick	List joysticks and watch joystick events
	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
	testoverlay2	Tests the overlay flickering/scaling during playback.
	testplatform	Tests types, endianness and cpu capabilities
	testsem		Tests SDL's semaphore implementation
	testshape	Tests shaped windows
	testsprite2	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
	testwm2		Test window manager -- title, icon, events
	torturethread	Simple test for thread creation/destruction
	controllermap   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!