Commit Graph

104 Commits

Author SHA1 Message Date
EngineerSmith f00a86dc9f Added change to changes.txt 2024-02-09 01:15:45 +00:00
EngineerSmith 666fd88631 Altered tests to account for additional container argument in love.data.hash 2024-02-09 00:55:57 +00:00
Sasha Szpakowski fffb835358 tests: fix love.graphics.setDepthMode test 2024-01-06 15:36:50 -04:00
Sasha Szpakowski 9b5851e039 Move current love.graphics.setStencilMode functionality to setStencilState.
Add new higher level love.graphics.setStencilMode function.
- Add love.graphics.setStencilMode(mode [, value = 1])
- Add love.graphics.setStencilMode().
- Add mode, value = love.graphics.getStencilMode().

The possible modes are "off" (same as no parameters), "draw", and "test".
The "draw" mode disables color writes and sets the stencil state to ("replace", "always") using the given value.
The "test" mode enables color writes and sets the stencil state to ("keep", "equal") using the given value to compare to.
2024-01-04 16:23:49 -04:00
Sasha Szpakowski d7e0856dc6 tests: add basic graphics Buffer tests.
issue #1986
2023-12-31 16:06:45 -04:00
Sasha Szpakowski dbcdbc47d5 Add debugname field to shader options table. 2023-12-29 16:51:24 +01:00
Sasha Szpakowski cb4cb80595 tests: fix love.math.randomNormal test consistency
also test exact values to make sure the tests cover algorithm changes
2023-12-23 23:07:31 +01:00
Sasha Szpakowski 0be5a214dd tests: remove invalid parameter in readbackTexture calls. 2023-12-14 18:39:22 -04:00
Sasha Szpakowski cb24af7cc2 tests: add texture debug name check 2023-12-13 21:47:42 -04:00
Sasha Szpakowski b7e576efa8 tests: add some tolerance to video rewind test
It happens while the video is still playing, so the tell() query after the rewind isn't guaranteed to be 0.
2023-12-13 21:05:12 -04:00
Sasha Szpakowski a6ae0ae10d tests: more tolerance for sleep overshooting its time
CI machines can take a while doing some other thing during a sleep.
2023-12-12 20:16:51 -04:00
Sasha Szpakowski e6af895b01 tests: video play/pause time test waits for less time 2023-12-12 19:55:38 -04:00
Sasha Szpakowski 6715bae0c3 tests: add waitSeconds method 2023-12-12 19:53:56 -04:00
Sasha Szpakowski 1f38b77bab tests: sleep for a shorter time in getTime test 2023-12-12 19:53:38 -04:00
Sasha Szpakowski e413f0c033 tests: sleep for a shorter time 2023-12-12 19:38:39 -04:00
Sasha Szpakowski 4b9f4f77e9 tests: fix invalid effect volumes.
OpenAL prints an error when they're out of range.
2023-12-12 19:36:47 -04:00
ell eda26b3574 Update joystick.lua 2023-12-10 21:41:50 +00:00
ell 6a2ba9322e tweaks for hardware tests 2023-12-05 10:26:24 +00:00
ell 2875a96e92 test updates
- update main love readme to include note on tests
- added module tests for Sensor, Keyboard, Touch, Joystick, Mouse, and Love (for hooks + basic love-level methods)
- general clean-up of main class logic
- couple fixes for runner-specific failures (physics.Joint, audio.getActiveSourceCount, mouse.getPosition)
- change window.close test to run last
2023-12-04 16:13:38 +00:00
ell cc4b618a42 Update physics.lua 2023-11-23 13:57:07 +00:00
ell d6c779643f fix some ranges for runners 2023-11-23 13:17:09 +00:00
ell f846d4ab91 review changes
- spaced out object class tests and added more defined comment groups

- changed reusing vars in case it causes unexpected asserts in future

- fixed some shape:point test having wrong params

- added assertTrue + assertFalse for basic checks

- used assertRange more for some of the physics + audio tests
2023-11-23 12:52:54 +00:00
ell 825e46621e finished obj tests
- added physics.Contact, physics.Body, and physics.Shape obj tests
- added graphics.Mesh and graphics.ParticleSystem obj tests
- fixed some rgba tolerance needed on a couple methods
- added test conclusion to zip artifact name for quick checking on PRs
- ignored testsuite on compat mode windows builds
2023-11-20 20:05:30 +00:00
ell 89119c554a add runner exceptions to readme 2023-11-17 12:19:56 +00:00
ell a8c714bc89 change to exact rgba comparison for visual tests 2023-11-17 00:11:32 +00:00
ell d1307584e5 add graphics pixel comparison tests
- added an automatic check for expected vs actual with the images already shown in the report - used a 1px tolerance for now for each of the pixels checked
2023-11-16 23:28:50 +00:00
ell 37961f92d6 floor joint pos 2023-11-16 22:09:31 +00:00
ell adc6fbea4c added test.physics.Joint 2023-11-16 21:54:01 +00:00
ell 8124804d49 more graphics + some physics tests
- added obj tests for graphics.SpriteBatch, and graphics.Video
- added obj tests for physics.World
- added test for setStencilMode and removed deprecated stencil+setStencilTest
- added graphics.drawInstanced
- fixed deprecated physic shape calls (body now added as first param)
2023-11-16 19:22:40 +00:00
ell 1323bb1452 ignore setMipmapFilter on opengl ES 2023-11-15 20:34:34 +00:00
ell 0ef417f60c fix test.graphics.Canvas 2023-11-15 19:54:14 +00:00
ell 038b36a67d add renderer to report md 2023-11-15 19:52:17 +00:00
ell ad44eb4fd7 more graphics class tests
- added graphics.Canvas, graphics.Font, graphics.Image, graphics.Quad, graphics.Shader and graphics.Text
- removed rogue resource img
- removed event wait test placeholder
- updated todo list
2023-11-15 19:32:39 +00:00
ell af4c50a4ce skip test.audio.RecordingDevice on CI 2023-11-15 09:06:16 +00:00
ell 357b005e53 fix test.audio.Source 2023-11-14 23:21:28 +00:00
ell 333169eb0f fix alsoft path 2023-11-14 21:22:10 +00:00
ell 137126656a update ci run 2023-11-14 13:00:09 +00:00
ell 658c75b5c3 latest from love-test 2023-11-14 09:47:36 +00:00
ell 09d0ace4b6 finished a bunch of modules
- finished audio module
- finished data module
- finished filesystem module
- finished font module (note: glphy test fails, but seems to be a 12.0 issue)
- finished image module
- finished maths module
- finished sound module
- finished thread module
- finished video module
- fixed pcall error not showing in results for invalid test code
2023-10-14 18:18:53 +01:00
ell f477b8085f finish graphics module + HTML image comparison
- added mostly all graphics draw tests
- added a basic set of "expected" images (generated from successful tests)
- HTML output now shows the expected vs actual generated images for each of the graphics tests applicable
2023-10-09 22:32:41 +01:00
ell add23a4ab0 fix mesa install 2023-10-08 21:11:07 +01:00
ell c7c8f25284 added objects module placeholders 2023-10-08 18:25:00 +01:00
ell e1948f6e57 added all graphics 'state' tests 2023-10-08 17:12:07 +01:00
ell a620910121 add renderer alts. 2023-10-06 15:33:53 +01:00
ell 5ac5438cb4 try lovec instead 2023-10-06 15:02:12 +01:00
ell 6a0ff067c8 fixed test.filesystem.openFile 2023-10-06 14:39:43 +01:00
ell 04293d3fbd use love-test-report action
added md support to work with love-test-report, a basic action made to just dump md files into repo checks
2023-10-06 13:26:51 +01:00
ell a513320a47 prevent empty <failure/> tag
dorny/test-reporter@v1 will fail to parse <failure> tags that are empty as it's expected a message both in the attr and inside
2023-10-06 10:10:08 +01:00
ell 6c29497be2 skipped format 2023-10-06 00:53:29 +01:00
ell fae3b6ff63 fix xml format 2023-10-06 00:37:35 +01:00