Luke Street
dc054c8e45
Merge remote-tracking branch 'fork/VK_EXT_metal_surface' into merged
...
# Conflicts:
# src/dynapi/SDL_dynapi.h
# src/thread/SDL_thread_c.h
2022-05-31 14:38:17 -04:00
Luke Street
77d6f16906
Merge remote-tracking branch 'upstream/2.0.22' into switch-sdl2-2.0.14-dev
...
# Conflicts:
# .gitignore
# CMakeLists.txt
# configure
# configure.ac
# include/SDL_config.h.cmake
# include/SDL_config.h.in
# sdl2-config.cmake.in
# src/dynapi/SDL_dynapi.h
# src/joystick/SDL_gamecontrollerdb.h
# src/joystick/SDL_sysjoystick.h
# src/video/SDL_video.c
# src/video/khronos/EGL/eglplatform.h
2022-05-31 13:17:31 -04:00
Cameron Cawley
aa51a9791a
Run tests with OpenWatcom on CI
2022-05-19 20:11:10 +03:00
Cameron Cawley
9dfa000bc0
Initial support for building for Windows with OpenWatcom
2022-05-19 20:11:10 +03:00
Cameron Cawley
5ef36ead08
Add some missing tests to Watcom builds
2022-05-19 20:11:10 +03:00
Cameron Cawley
3066873126
Split the common code in test/Makefile.os2 into a separate file
2022-05-19 20:11:10 +03:00
Cameron Cawley
0cca71a846
Use SDLCALL for callbacks in public APIs
2022-05-18 15:01:27 -07:00
Sam Lantinga
0ffd985972
Check to see if the file exists in the base path before returning it
2022-05-18 10:10:51 -07:00
pionere
c4cf63f812
improve test-configuration
...
- testkeys 'NEEDS_DISPLAY'
- 'disable' relevant tests in case DUMMY audio/video is disabled
2022-05-18 09:06:56 -07:00
pionere
ea15253220
fix GetNearbyFilename
...
- fix memory leak due to variable 'base'
- fix usage of uninitialized variable (path)
2022-05-18 08:30:34 -07:00
Ryan C. Gordon
a12ffbd532
testcustomcursor: Log the current cursor type as it changes.
...
So you know what you're looking at.
2022-05-17 12:49:36 -04:00
Sam Lantinga
1f2a241688
Add new virtual joysticks to the end of the list
...
This guarantees that the device index that's returned is stable, as long as no joystick hotplug events occur.
2022-05-16 09:02:35 -07:00
Sam Lantinga
3c3ccb1d48
Fixed crash if a virtual joystick was disconnected
2022-05-16 08:56:17 -07:00
Sam Lantinga
f0bc5c9cbf
Added effects support for virtual controllers
2022-05-16 07:21:28 -07:00
Sam Lantinga
e3fd8feae6
Fixed getting the controller index when specifying --virtual (thanks @zturtleman)
2022-05-16 06:17:23 -07:00
Sam Lantinga
94eeb587c1
First pass at extending virtual controller functionality
...
Added the ability to specify a name and the product VID/PID for a virtual controller
Also added a test case to testgamecontroller, if you pass --virtual as a parameter
2022-05-15 20:01:12 -07:00
Simon McVittie
d15f6e379c
test: Add a unit test for overflow detection
...
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-05-09 21:31:39 -07:00
Cameron Cawley
c71ee68b8a
Fix enabling tests on platforms without testnative support
2022-05-08 17:38:48 -07:00
Cameron Cawley
318b5577f9
Delete gcc-fat.sh
2022-05-08 17:38:22 -07:00
Ozkan Sezer
db36664f26
configure.ac: remove unnecessary AC_SUBST's added by commit 38ef678990
2022-05-05 18:55:02 +03:00
Simon McVittie
ce502054ad
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>
2022-05-04 18:17:55 -07:00
Simon McVittie
38ef678990
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>
2022-05-04 18:17:55 -07:00
Simon McVittie
76a7b629bf
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>
2022-05-04 18:17:55 -07:00
Simon McVittie
40bef98f8b
test: Add a mode to skip tests that involve arbitrary delays
...
This can be used as a quick acceptance test for CI workflows.
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-05-04 18:17:55 -07:00
Simon McVittie
7d2808e30b
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>
2022-05-04 18:17:55 -07:00
Simon McVittie
b299f74d05
test: Make testevdev succeed if the feature is disabled
...
"Not applicable" is more like success than it is like failure.
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-05-04 18:17:55 -07:00
Simon McVittie
6fc7aa28e7
cmake: Add some missing test-cases
...
These were built by Autotools but not by CMake.
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-05-04 18:17:55 -07:00
Simon McVittie
2a8297e427
workflows: Add a test to assert that all the version numbers agree
...
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-05-04 09:55:35 -07:00
Cameron Cawley
b398a847be
Add SDL_FLOATWORDORDER for older ARM toolchains
2022-05-04 09:52:11 -07:00
Susko3
f25a78eede
Enable `SDL_TEXTEDITING_EXT` events in `checkkeys` test
2022-05-02 15:50:39 -07:00
Sam Lantinga
0687128c96
Reduce CPU usage in testgamecontroller
2022-04-29 20:57:17 -07:00
Eddy Jansson
5c1f5a7306
test: Correct invalid enum length.
...
Ensure that they can't break like this again.
2022-04-28 12:58:27 -07:00
Ryan C. Gordon
7d7ec9c951
x11: Remove XVidMode and Xinerama support.
...
Fixes #1782 .
2022-04-26 23:17:13 -04:00
Sam Lantinga
e551384a99
Added functions to get the platform dependent name for a joystick or game controller
2022-04-26 14:54:14 -07:00
Eddy Jansson
5bc2933425
test: Basic tests for SDL_FRectEquals
...
Based on the integer version. These tests mostly check that input
isn't mangled and that invalid input gives the expected negative
result.
2022-04-20 08:38:53 -07:00
Simon McVittie
68b6fff245
test: Copy utf8.txt to build directory
...
testiconv wants this.
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-04-12 11:01:20 -04:00
Simon McVittie
b4256d03e9
testevdev: Adapt to a broader definition of keyboards
...
At the time I contributed this unit test, SDL had a relatively narrow
definition of what is a keyboard, approximately matching udev
ID_INPUT_KEYBOARD. Now it uses the equivalent of udev ID_INPUT_KEY,
which matches anything with keyboard keys, and not just reasonably
complete alphanumeric keyboards.
Fixes: 040bd7a9
"Fix udev not detecting ID_INPUT_KEY devices when udev is not running"
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-04-12 10:59:53 -04:00
Simon McVittie
c2946902fa
testevdev: Recognise touchpads as such
...
At the time I contributed this unit test, SDL didn't understand Linux
touchpads, but now it does.
Fixes: 373216ae
"Added support for touchpads in the Linux evdev code"
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-04-12 10:59:53 -04:00
capehill
006a5a9e03
testgles2: Fix buffer object sizes
2022-04-05 13:05:51 -04:00
Christoph Reichenbach
6cd444f0fa
Visualise scroll wheel events in testmouse
2022-04-02 20:50:21 -07:00
capehill
0dcfa92e4c
testgles2: Call correct function to get shader info log and add link status checking
2022-03-27 09:44:48 -07:00
Ryan C. Gordon
beecae31f6
testshader: use SDL_malloc instead of SDL_stack_alloc.
2022-03-26 08:42:09 -04:00
capehill
d6122704e8
Initialize compile status variable and check also program link status
2022-03-26 08:38:42 -04:00
Sylvain
7f1feee02a
Fixed bug #2426 - SDL_RenderReadPixels result is unspecified and fails testautomation
...
Call SDL_RenderPresent after calling SDL_RenderReadPixels.
From "include/SDL_render.h":
"If you're using this on the main rendering target, it should be called after rendering and before SDL_RenderPresent()."
2022-03-21 10:20:04 +01:00
Ozkan Sezer
01663238dc
testplatform.c: move static asserts out of TestTypes().
2022-03-17 08:43:27 -07:00
Sylvain
c44966b78b
Fixed bug #2691 - re-enable surface_testCompleteSurfaceConversion for ARGB2101010
2022-03-15 17:48:38 +01:00
IOBYTE
13756b5c72
Add X1 and X2 button support to mouse test
2022-03-04 12:09:08 -05:00
Sam Lantinga
18032979d8
Added the hint SDL_HINT_JOYSTICK_ROG_CHAKRAM to control whether ROG Chakram mice show up as joysticks
...
This hint defaults off, but when it is enabled the mice will have a game controller mapping set up for Profile 3 (set in the Armoury Crate software)
2022-02-15 13:07:51 -08:00
Wouter Wijsman
4cb6181808
Do not build loadso test eboot for PSP
2022-02-10 19:01:15 +01:00
Sylvain
94e5c3f30e
testgesture: display device name with SDL_GetTouchName()
2022-02-08 11:40:39 +01:00