test/CMakeLists.txt


Log

Author Commit Date CI Message
Anonymous Maarten 55534e27 2022-11-01T15:39:13 cmake: add time out to tests to avoid ci timeouts
Anonymous Maarten a22fcf77 2022-11-01T13:40:19 cmake: older emscripten releases have a broken FindOpenGL.cmake This is fixed since 3.1.10: https://github.com/emscripten-core/emscripten/commit/485a7b4d6f84d4bc3b594ff81d39b6b143c8d598#diff-034f4d123f23ec5493d0fbf28cba1c36e404a991f286c8d031a22799e4e8b0e5
Anonymous Maarten a71e558d 2022-11-01T13:09:52 cmake: testshader needs -sLEGACY_GL_EMULATION on Emscripten
Anonymous Maarten cfa76973 2022-11-01T11:33:39 cmake: FindOpenGL.cmake shipped by emscripten does not have OpenGL::GL
Anonymous Maarten 76e3cf38 2022-11-01T11:04:45 cmake: use custom add_sdl_test_executable macro to add test
Pierre Wendling 65527537 2021-03-30T04:32:39 N3DS port (squashed) A dedicated renderer using Citro3D would likely allow for better much better graphical performances.
Cameron Gutman ec1137df 2022-10-09T15:19:47 cmake: Apply CETCOMPAT fix from ef988fe1 to tests
Anonymous Maarten 45da1339 2022-10-06T00:39:47 cmake: don't error on apple when using deprecated declarations
Anonymous Maarten 274ec025 2022-10-06T00:31:00 testautomation: avoid format related warnings by using a few pragma's ci: enable -Werror to a few platforms
Anonymous Maarten 57c88655 2022-10-05T23:55:59 automation_main.c: fix -Wformat-zero-length warning due to SDL_SetError("")
Cameron Gutman 2ceea460 2022-08-21T14:15:06 cmake: Enable CET compatibility for x86/x64 targets using VS 16.7+
Francisco Javier Trujillo Mata 46f95a7a 2022-06-24T00:20:11 Create dummy PS2 Video driver
Anonymous Maarten ac9e8691 2022-07-21T14:49:35 cmake: only build testnative when X11 is available
Cameron Cawley 0a600b1d 2022-07-02T00:27:51 Merge testguid into testautomation (#5873)
Francisco Javier Trujillo Mata 84d69da4 2022-03-20T19:42:06 Initial SDL_ps2_main implementation
Anonymous Maarten 965c1645 2022-06-16T03:40:53 cmake: let cmake test script make use of the installed cmake scripts
Anonymous Maarten 3e102123 2022-06-20T20:51:12 cmake: also add the recently-added include folder to the public interface
Francisco Javier Trujillo Mata 580416d3 2022-06-06T00:02:08 Initial CMake configuration
Anonymous Maarten 97711e99 2022-06-15T18:57:13 cmake: no need to explicitly add a depency (target_link_libraries does this implicitly)
Anonymous Maarten ad21c704 2022-06-15T05:36:28 cmake: fix CMP0072 warning by prefering GLVND
Christoph Reichenbach 3a20274d 2022-06-04T20:16:28 Refactoring: move GUID operations out of Joystick - SDL_JoystickGUID -> SDL_GUID (though we retain a type alias) - Operations for GUID <-> String ops are now in src/SDL_guid.c and include/SDL_guid.h - The corresponding Joystick operations delegate to SDL_guid.c - Added test/testguid.c
Cameron Cawley 83ae1b49 2022-05-19T23:11:22 Convert the test executables to AIF in RISC OS CMake builds
pionere c4cf63f8 2022-05-18T18:04:12 improve test-configuration - testkeys 'NEEDS_DISPLAY' - 'disable' relevant tests in case DUMMY audio/video is disabled
Cameron Cawley c71ee68b 2022-05-08T17:17:49 Fix enabling tests on platforms without testnative support
Simon McVittie ce502054 2022-05-04T13:53:15 test: Install GNOME-style installed-tests metadata This allows these tests to be discovered and run by gnome-desktop-test-runner. Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie 38ef6789 2020-11-25T13:30:29 test: Add a `make install` target for the tests This makes it more convenient to compile them alongside SDL, install them in an optional package and use them as smoke-tests or diagnostic tools. The default installation directory is taken from GNOME's installed-tests, which seems as good a convention as any other: https://wiki.gnome.org/Initiatives/GnomeGoals/InstalledTests Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie 76a7b629 2022-04-12T13:07:18 test: Add some common code to load test resources As well as reducing duplication, this lets the tests load their resources from the SDL_GetBasePath() on platforms that support it, which is useful if the tests are compiled along with the rest of SDL and installed below /usr as manual tests, similar to GNOME's installed-tests convention. Thanks to Ozkan Sezer for the OS/2 build glue. Co-authored-by: Ozkan Sezer <sezeroz@gmail.com> Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie 7d2808e3 2022-04-12T13:33:58 test: Run selected noninteractive tests at build-time In Autotools, these are run by `make -C ${builddir}/test check`. In CMake, they're run by `make -C ${builddir} test` or `ninja -C ${builddir} test` or `ctest --test-dir ${builddir}`. Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie 6fc7aa28 2022-05-04T13:15:12 cmake: Add some missing test-cases These were built by Autotools but not by CMake. Signed-off-by: Simon McVittie <smcv@collabora.com>
Wouter Wijsman 4cb61818 2022-02-10T18:58:50 Do not build loadso test eboot for PSP
Wouter Wijsman e0c53991 2022-01-06T22:29:23 Don't make psp eboot for testoffscreen
Wouter Wijsman eca198d5 2022-01-05T11:50:52 Don't build an eboot for testgesture for PSP
Wouter Wijsman cd6cb959 2022-01-05T11:33:51 Only copy resources to PSP eboot directory if it exists
Wouter Wijsman 9d0b4d85 2022-01-05T11:18:26 Don't build EBOOT files for all tests for PSP
Wouter Wijsman b2ca62f2 2022-01-05T11:18:09 Make sure all tests have the resources they need
Wouter Wijsman fcb638ff 2022-01-03T19:12:09 Copy test resources to correct directory on PSP
Wouter Wijsman 5e84f638 2022-01-03T18:56:02 Rename test directories for PSP and only build PRX if asked
Wouter Wijsman bf233607 2022-01-03T18:41:21 Make tests build for PSP and make them able to launch
Cameron Gutman 210713a6 2021-10-31T19:11:09 cmake: Work around bug in opengl32.lib detection on MSVC ARM64
Cameron Gutman 77141e84 2021-10-31T18:53:11 cmake: Fix test linking with MinGW
Cameron Gutman 618b0d41 2021-10-30T12:05:11 cmake: Remove SDL2_test_resources dummy hack It doesn't work properly on MSVC because the dummy target fails to link
Cameron Gutman cd66c050 2021-10-29T01:11:59 testsurround: Add surround sound channel tester
Cameron Cawley 83020658 2021-09-09T21:33:35 Add testmouse
Sylvain bc2173ba 2021-04-06T21:49:23 Add testgeometry to draw a non uniform triangle --use-texture: an option to load icon.bmp as a texture handle mouse motion: rotate the triangle
Cameron Cawley 520bc713 2021-08-05T14:33:54 Fix typo in CMake target name
Vladislav Dmitrievich Turbanov f9bf1aeb 2021-07-09T00:51:16 Latest Unifont with OFL is now bundled. (#4268) * * Latest Unifont with OFL is now bundled. * * Added a Unifont license file. Co-authored-by: Vladislav Dmitrievich Turbanov <vladislav@turbanov.ru>
Francesco Abbate 0dd7024d 2021-03-12T21:58:20 Modifies WaitEvent and WaitEventTimeout to actually wait instead of polling When possible use native os functions to make a blocking call waiting for an incoming event. Previous behavior was to continuously poll the event queue with a small delay between each poll. The blocking call uses a new optional video driver event, WaitEventTimeout, if available. It is called only if an window already shown is available. If present the window is designated using the variable wakeup_window to receive a wakeup event if needed. The WaitEventTimeout function accept a timeout parameter. If positive the call will wait for an event or return if the timeout expired without any event. If the timeout is zero it will implement a polling behavior. If the timeout is negative the function will block indefinetely waiting for an event. To let the main thread sees events sent form a different thread a "wake-up" signal is sent to the main thread if the main thread is in a blocking state. The wake-up event is sent to the designated wakeup_window if present. The wake-up event is sent only if the PushEvent call is coming from a different thread. Before sending the wake-up event the ID of the thread making the blocking call is saved using the variable blocking_thread_id and it is compared to the current thread's id to decide if the wake-up event should be sent. Two new optional video device methods are introduced: WaitEventTimeout SendWakeupEvent in addition the mutex wakeup_lock which is defined and initialized but only for the drivers supporting the methods above. If the methods are not present the system behaves as previously performing a periodic polling of the events queue. The blocking call is disabled if a joystick or sensor is detected and falls back to previous behavior.
Ozkan Sezer 9d46bd25 2021-03-11T17:00:10 revert commit 81cdb1bb0de (unifont license issue.)
Ozkan Sezer 81cdb1bb 2021-03-04T18:32:32 test: add unifont-9.0.02.hex as a resource (so it works out-of-the-box) from a patchset by Vladislav Dmitrievich Turbanov: https://github.com/libsdl-org/SDL/pull/4062
Ozkan Sezer a52d0db5 2021-03-04T18:28:10 test/CMakeLists.txt: add OpenGL module checks and adjust dependencies. from a patchset by Vladislav Dmitrievich Turbanov: https://github.com/libsdl-org/SDL/pull/4062
Ozkan Sezer e7abf968 2021-03-04T18:28:04 test/CMakeLists.txt: bump cmake minimum required to 3.0 for consistency from a patchset by Vladislav Dmitrievich Turbanov: https://github.com/libsdl-org/SDL/pull/4062
Sam Lantinga 89fe32dd 2020-04-05T08:46:59 Fixed bug 5072 - Test resources missing when building with SDL_TEST and CMake DominikD There are several tests that need resources in the output directory to work: * `testiconv` depends on `utf8.txt` * `testoverlay2` and `teststreaming` depend on `moose.dat` This patch adds these two files to the `RESOURCE_FILES` variable. One could also copy `shapes\*.bmp` over to the output directory for `testshape` to use but this patch doesn't do that for three reasons: * executable takes path as an argument and doesn't need these files side by side * these are ~45MB and copying them over would cause build directory to swell * there are already files in the output directory that can be used with this test (`sample.bmp` and `button.bmp`)
Brandon Schaefer 68985371 2019-09-24T16:36:48 offscreen: Add new video driver backend Offscreen The Offscreen video driver is intended to be used for headless rendering as well as allows for multiple GPUs to be used for headless rendering Currently only supports EGL (OpenGL / ES) or Framebuffers Adds a hint to specifiy which EGL device to use: SDL_HINT_EGL_DEVICE Adds testoffscreen.c which can be used to test the backend out Disabled by default for now
David Ludwig 4e518f98 2019-09-23T17:48:14 CMake: add version strings to Apple Info.plist files This fills in the CFBundleVersion and CFBundleShortVersionString fields, if and when SDL's test-apps are built via CMake. This is needed to install the .app bundles on iOS 13+ (using 'xcrun simctl install booted path/to/testsuchandsuch.app')
David Ludwig b13c951c 2019-08-27T11:07:43 CMake: iOS support added When using a recent version of CMake (3.14+), this should make it possible to: - build SDL for iOS, both static and dynamic - build SDL test apps (as iOS .app bundles) - generate a working SDL_config.h for iOS (using SDL_config.h.cmake as a basis) To use, set the following CMake variables when running CMake's configuration stage: - CMAKE_SYSTEM_NAME=iOS - CMAKE_OSX_SYSROOT=<SDK> (examples: iphoneos, iphonesimulator, iphoneos12.4, /full/path/to/iPhoneOS.sdk, etc.) - CMAKE_OSX_ARCHITECTURES=<semicolon-separated list of CPU architectures> (example: "arm64;armv7s") Examples: - for Simulator, using the latest, installed SDK: cmake path/to/SDL -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator -DCMAKE_OSX_ARCHITECTURES=x86_64 - for Device, using the latest, installed SDK, 64-bit only cmake path/to/SDL -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos -DCMAKE_OSX_ARCHITECTURES=arm64 - for Device, using the latest, installed SDK, mixed 32/64 bit cmake path/to/SDL -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos -DCMAKE_OSX_ARCHITECTURES="arm64;armv7s" - for Device, using a specific SDK revision (iOS 12.4, in this example): cmake path/to/SDL -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos12.4 -DCMAKE_OSX_ARCHITECTURES=arm64 - for Simulator, using the latest, installed SDK, and building SDL test apps (as .app bundles): cmake path/to/SDL -DSDL_TEST=1 -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator -DCMAKE_OSX_ARCHITECTURES=x86_64
Sam Lantinga 6cf4d0e4 2018-02-24T08:59:58 Fixed bug 4092 - CMake support for building everything in the "test" directory Eric Wasylishen Patch to support building the tests with cmake. Disabled by default, use: "cmake .. -DSDL_TEST=YES" to enable the tests. Tested on macOS 10.13 with the ninja, makefile, and Xcode generators, and Windows 10 with the Visual Studio 2017 generator.