|
8ebe640a
|
2022-05-25T00:41:06
|
|
Test: Change inexact tests to use an epsilon.
Instead of using `trunc` to check the first ten digits, inexact test now
relies on an epsilon defining an acceptable range for the expected
result to be in.
|
|
62fd6aad
|
2022-05-23T20:12:28
|
|
Test: Add Atan tests to math suite.
|
|
6b4b6d8e
|
2022-05-21T23:01:50
|
|
Test: Add Asin tests to math suite.
|
|
6be430c7
|
2022-05-16T20:54:59
|
|
Test: Add Tan tests to math suite.
|
|
5ecc75a4
|
2022-05-15T16:30:38
|
|
Test: Add Pow tests to math suite.
|
|
0f630e91
|
2022-05-04T21:37:40
|
|
Test: fix indentation in Makefile.in.
|
|
4e3a26e2
|
2022-05-04T14:36:49
|
|
Test: Add math test suite to autotools.
|
|
6349ad73
|
2022-05-15T11:52:12
|
|
Test: Add Log10 tests to math suite.
|
|
e64acb61
|
2022-05-04T14:25:10
|
|
Test: Fix for-loop for OS/2 in math suite.
|
|
a3a852e9
|
2022-05-04T13:51:42
|
|
Test: Unrolled the array of cases in math suite.
On OS/2, `INFINITY` is a `const double` which cannot be used to
instantiate an array.
|
|
af79b46f
|
2022-05-16T20:34:07
|
|
Test: Add Sin tests to math suite.
|
|
7041bbaf
|
2022-05-15T11:36:12
|
|
Test: Add Log tests to math suite.
|
|
c23216bf
|
2022-05-04T13:20:09
|
|
Test: Removed static from local variables (Math).
Static would break compilation on OS/2.
|
|
dd30ff2e
|
2022-05-12T22:19:59
|
|
Test: Add Exp tests to math suite.
|
|
6646edf6
|
2022-05-04T13:10:41
|
|
Test: Fix Windows build for math suite.
|
|
d9ff6380
|
2022-05-04T12:51:13
|
|
Test: Add math test suite to Watcom Makefile.
|
|
43f6983a
|
2022-05-21T21:51:48
|
|
Test: Add Acos tests to math suite.
|
|
b06eda55
|
2022-05-16T20:02:24
|
|
Test: Fix math suite build on Win32.
The cosine precision test now uses an array of double and the result
gets truncated instead of casted to signed int64.
|
|
aacb5e17
|
2022-05-11T22:17:18
|
|
Test: Extract range test parameters into defines.
|
|
7389eba9
|
2022-05-04T12:49:25
|
|
Test: Fix C89 declaration and math include.
|
|
b3faebb8
|
2022-05-04T12:40:24
|
|
Test: Add Floor tests to math.
|
|
75b9aab6
|
2022-05-11T22:04:28
|
|
Test: Add Fmod tests to math suite.
|
|
b72b5d0f
|
2022-05-04T12:39:49
|
|
Test: Add math automation test suite.
|
|
adb445ea
|
2022-05-16T18:29:08
|
|
Test: Add Cos tests to math suite.
|
|
0dbdf90e
|
2022-05-11T12:54:16
|
|
Test: Use SDLCALL in typedefs instead of ifdefs.
Thanks to @sezero for the tip.
|
|
2ec48b36
|
2022-05-10T22:55:41
|
|
Test: Fix OS/2 compilation in math suite.
|
|
6a6e93bc
|
2022-05-21T23:11:40
|
|
Test: Add +/-0.0 tests to Acos.
|
|
95f6edb9
|
2022-05-21T20:07:14
|
|
Test: Refactor trigonometric tests into a helper.
The precision test of these functions need a special helper, it can also
be used for their arc functions down the line.
|
|
a864180c
|
2022-05-15T19:36:30
|
|
Test: Add float header for FLT_RADIX definition.
|
|
43c22e5d
|
2022-05-10T22:07:28
|
|
Test: Refactor math suite duplicate code.
Many tests were using the same underlying routine, as such three helper
functions were added:
- A wrapper to test double -> double functions.
- A wrapper to test (double, double) -> double functions,
- A wrapper for range tests on double -> double functions.
|
|
3d720ba3
|
2022-05-10T21:05:05
|
|
Test: Refactor math suites edge cases.
Split infinity and zero checks in their own functions.
The result of NAN tests is now logged.
The SDL_TestCaseReference structure were renamed to be more explicit.
|
|
7a55fa4e
|
2022-05-15T19:03:53
|
|
Test: Add Scalbn tests to math suite.
|
|
a530fc91
|
2022-05-09T22:56:44
|
|
Test: Add Copysign tests to math suite.
|
|
48a406db
|
2022-05-06T14:32:50
|
|
Test: Add Fabs tests to math suite.
|
|
3b9f47b8
|
2022-05-20T21:45:31
|
|
Test: Remove early return in pow test.
|
|
afd81237
|
2022-05-15T17:43:38
|
|
Test: Add Sqrt tests to math suite.
|
|
2130dff0
|
2022-05-06T14:19:44
|
|
Test: Add Round tests to math suite.
|
|
324b9615
|
2022-05-06T13:57:02
|
|
Test: Add Trunc tests to math suite.
|
|
c389c32d
|
2022-05-15T17:00:12
|
|
Test: Change assertion type in range tests.
Changes SDLTest_AssertPass(...) to SDLTest_AssertCheck(SDL_FALSE, ...)
for failed assertions so the internal counter gets updated properly.
|
|
b09266a4
|
2022-05-06T13:51:04
|
|
Test: Add Ceil tests to math suite.
|
|
9eb09d23
|
2022-05-06T13:39:44
|
|
Test: Refactored and formatted math test suite.
|
|
97711e99
|
2022-06-15T18:57:13
|
|
cmake: no need to explicitly add a depency (target_link_libraries does this implicitly)
|
|
ad21c704
|
2022-06-15T05:36:28
|
|
cmake: fix CMP0072 warning by prefering GLVND
|
|
163f6697
|
2022-06-15T17:00:02
|
|
minor tidy-up to configury.
|
|
e9749859
|
2022-06-13T16:54:42
|
|
test: Add test coverage for surface size overflows
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
63b3b9a5
|
2022-06-13T16:02:40
|
|
Fix some typos in diagnostic messages
Detected by Debian's packaging QA tool, Lintian.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
28308957
|
2022-06-08T23:49:05
|
|
testgles2.c: refresh cached SDL_GL_GetDrawableSize() on SDL_WINDOWEVENT_SIZE_CHANGED, not SDL_WINDOWEVENT_RESIZED
Fixes bug with viewport not updating when moving window between monitors with different scale
factors on Windows (this should also fix the same issue on other OS'es, though untested)
|
|
df36f926
|
2022-06-05T14:44:30
|
|
testautomation: add video_setWindowCenteredOnDisplay test
|
|
51d6d60f
|
2022-06-08T10:14:36
|
|
Updated to autoconf 2.71
|
|
30cf26e0
|
2022-06-06T06:48:54
|
|
Show the firmware version in testgamecontroller
|
|
46624b4e
|
2022-06-05T06:53:15
|
|
Removed two distracting gcc-11 warnings
|
|
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
|
|
4e07d472
|
2022-06-04T13:03:51
|
|
Build warning fixes for gcc-11.3
|
|
345efdcb
|
2022-06-03T08:46:08
|
|
Wait for all the threads to actually finish before exiting
Fixes https://github.com/libsdl-org/SDL/issues/5748
|
|
4c711d2d
|
2022-05-25T22:12:25
|
|
testcustomcursor: Allow running without custom or system cursors
|
|
a95f5a79
|
2022-05-20T19:43:02
|
|
test: Use install(1) more portably
I had assumed that only Linux users would be interested in GNOME-style
installed-tests, but in principle there's no reason why they can't be
used on non-Linux.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
848d2008
|
2022-05-20T21:10:56
|
|
test/Makefile.w32: fix minor typo
|
|
83ae1b49
|
2022-05-19T23:11:22
|
|
Convert the test executables to AIF in RISC OS CMake builds
|
|
d2b59658
|
2022-05-19T22:54:23
|
|
Remove extra path separator in GetNearbyFilename
|
|
aa51a979
|
2022-05-19T13:14:29
|
|
Run tests with OpenWatcom on CI
|
|
9dfa000b
|
2022-05-18T20:20:03
|
|
Initial support for building for Windows with OpenWatcom
|
|
5ef36ead
|
2022-05-18T20:58:41
|
|
Add some missing tests to Watcom builds
|
|
30668731
|
2022-05-18T20:56:30
|
|
Split the common code in test/Makefile.os2 into a separate file
|
|
0cca71a8
|
2022-05-18T22:12:05
|
|
Use SDLCALL for callbacks in public APIs
|
|
0ffd9859
|
2022-05-18T09:59:12
|
|
Check to see if the file exists in the base path before returning it
|
|
c4cf63f8
|
2022-05-18T18:04:12
|
|
improve test-configuration
- testkeys 'NEEDS_DISPLAY'
- 'disable' relevant tests in case DUMMY audio/video is disabled
|
|
ea152532
|
2022-05-18T17:23:26
|
|
fix GetNearbyFilename
- fix memory leak due to variable 'base'
- fix usage of uninitialized variable (path)
|
|
a12ffbd5
|
2022-05-17T12:49:36
|
|
testcustomcursor: Log the current cursor type as it changes.
So you know what you're looking at.
|
|
1f2a2416
|
2022-05-16T09:02:35
|
|
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.
|
|
3c3ccb1d
|
2022-05-16T08:55:54
|
|
Fixed crash if a virtual joystick was disconnected
|
|
f0bc5c9c
|
2022-05-16T07:21:28
|
|
Added effects support for virtual controllers
|
|
e3fd8fea
|
2022-05-16T06:16:32
|
|
Fixed getting the controller index when specifying --virtual (thanks @zturtleman)
|
|
94eeb587
|
2022-05-15T20:01:12
|
|
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
|
|
d15f6e37
|
2022-05-09T18:19:21
|
|
test: Add a unit test for overflow detection
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
c71ee68b
|
2022-05-08T17:17:49
|
|
Fix enabling tests on platforms without testnative support
|
|
318b5577
|
2022-05-08T20:59:10
|
|
Delete gcc-fat.sh
|
|
db36664f
|
2022-05-05T18:55:02
|
|
configure.ac: remove unnecessary AC_SUBST's added by commit 38ef6789909c
|
|
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>
|
|
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>
|
|
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>
|
|
40bef98f
|
2022-05-04T19:16:01
|
|
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>
|
|
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>
|
|
b299f74d
|
2022-05-04T15:34:41
|
|
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>
|
|
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>
|
|
2a8297e4
|
2022-05-04T16:43:59
|
|
workflows: Add a test to assert that all the version numbers agree
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
b398a847
|
2022-05-03T23:21:10
|
|
Add SDL_FLOATWORDORDER for older ARM toolchains
|
|
f25a78ee
|
2022-05-03T00:40:42
|
|
Enable `SDL_TEXTEDITING_EXT` events in `checkkeys` test
|
|
0687128c
|
2022-04-29T20:57:00
|
|
Reduce CPU usage in testgamecontroller
|
|
5c1f5a73
|
2022-04-28T20:57:20
|
|
test: Correct invalid enum length.
Ensure that they can't break like this again.
|
|
7d7ec9c9
|
2022-04-26T16:41:28
|
|
x11: Remove XVidMode and Xinerama support.
Fixes #1782.
|
|
e551384a
|
2022-04-26T14:54:14
|
|
Added functions to get the platform dependent name for a joystick or game controller
|
|
5bc29334
|
2022-04-20T15:53:25
|
|
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.
|
|
68b6fff2
|
2022-04-12T14:05:06
|
|
test: Copy utf8.txt to build directory
testiconv wants this.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
b4256d03
|
2022-04-12T14:25:26
|
|
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>
|
|
c2946902
|
2022-04-12T14:16:29
|
|
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>
|
|
006a5a9e
|
2022-03-28T21:01:06
|
|
testgles2: Fix buffer object sizes
|
|
6cd444f0
|
2022-04-02T21:28:56
|
|
Visualise scroll wheel events in testmouse
|
|
0dcfa92e
|
2022-03-26T19:31:17
|
|
testgles2: Call correct function to get shader info log and add link status checking
|
|
beecae31
|
2022-03-26T08:42:09
|
|
testshader: use SDL_malloc instead of SDL_stack_alloc.
|
|
d6122704
|
2022-03-26T12:40:08
|
|
Initialize compile status variable and check also program link status
|