gingerBill
842cfee0f3
Change Odin's LICENSE to zlib from BSD 3-clause
...
This change was made in order to allow things produced with Odin and using Odin's core library, to not require the LICENSE to also be distributed alongside the binary form.
2025-10-28 14:38:25 +00:00
Jeroen van Rijn
572b26a846
Expand grayscale JPEGs to RGB(A)
...
And handle grayscale jpeg example file in test suite.
2025-09-09 17:13:21 +02:00
Jeroen van Rijn
7b3ca701e0
Implement .alpha_add_if_missing for JPEG
2025-09-09 14:51:16 +02:00
Jeroen van Rijn
737c87a726
Optionally save BMP
2025-09-09 14:12:48 +02:00
Jeroen van Rijn
dd9fceaae1
Make progressive JPEGs return a proper error
...
Add progressive JPEG file to test suite and test that loading it returns the expected `Unsupported_Frame_Type` error.
This JPEG variant will hopefully be supported in the future, but we should at least return an error rather than use `unsupported()`.
2025-09-09 13:53:43 +02:00
Jeroen van Rijn
2de4918fb3
Add basic test for JPG using Odin emblem
2025-09-08 18:18:08 +02:00
gingerBill
3d984d75cc
Add #+feature dynamic-literals to tests
2025-01-05 14:00:23 +00:00
Jeroen van Rijn
5be7d8e32d
Clean up PNG code.
2024-06-09 17:59:59 +02:00
Jeroen van Rijn
d2a2c1e74e
Image: Add improved blending method and test it.
2024-06-09 16:10:06 +02:00
Jeroen van Rijn
323a6e0728
Nuke ancient comment.
2024-06-07 22:19:01 +02:00
Laytan Laats
0a528777e8
utilize odin test -all-packages instead of (make/bat) scripts for running tests
2024-06-07 15:50:00 +02:00
Jeroen van Rijn
ed060819f3
Test roundtripping BMP
2024-06-07 00:14:15 +02:00
Jeroen van Rijn
678fdae966
Rebased.
2024-06-06 16:32:18 +02:00
Feoramund
b7e1ae7073
Change test runner options to SCREAMING_SNAKE_CASE
...
This commit also changes the name of `test_select` to `ODIN_TEST_NAMES`,
to better conform with the already-existing `-test-name:<name>` option.
2024-06-02 14:47:07 -04:00
Jeroen van Rijn
a0b2ea6d6e
Update tests\core\crypto
2024-06-02 14:46:59 -04:00
Jeroen van Rijn
eb3d6d7d75
Update core:image tests to use new runner.
2024-06-02 14:34:31 -04:00
Laytan Laats
3a0df80066
correct newly found vets
2024-04-03 00:52:58 +02:00
gingerBill
3e7e779abf
Replace core:* to base:* where appropriate
2024-01-28 22:18:51 +00:00
Jeroen van Rijn
99f4cc3006
[core:image/tga] Add tests.
2022-09-10 20:22:10 +02:00
Jeroen van Rijn
ab98108441
[image/png] Construct test paths differently.
2022-06-11 16:07:56 +02:00
Jeroen van Rijn
2081f8fcd6
[tests/core/image] Remove old crappy PPM writer.
2022-04-30 22:04:47 +02:00
Jeroen van Rijn
7a032cf9f9
[pbm] Also test PFM formats.
2022-04-30 21:57:14 +02:00
Jeroen van Rijn
8bd16c32f3
[pbm] Fixes.
2022-04-30 21:00:32 +02:00
Jeroen van Rijn
234d529867
[pbm] WIP unit tests. part deux.
2022-04-30 19:25:16 +02:00
Jeroen van Rijn
dd8b71e353
[pbm] WIP unit tests.
2022-04-30 17:52:23 +02:00
Jeroen van Rijn
d6a8216ce4
[pbm] Normalize some errors, correct .depth
2022-04-30 14:34:07 +02:00
Jeroen van Rijn
bf712e9355
[QOI] Add support for RGB images (previously loader always output RGBA).
...
Also add QOI to CI test suite by roundtripping 8-bit RGB(A) through QOI and checking the hashes match.
2022-04-12 19:23:48 +02:00
Jeroen van Rijn
15b440c4f1
[image] Add QOI load/save.
...
Additionally:
- Firm up PNG loader with some additional checks.
- Add helper functions to `core:image` to expand grayscale to RGB(A), and so on.
TODO: Possibly replace PNG's post-processing steps with calls to the new helper functions.
2022-04-12 18:14:09 +02:00
Jeroen van Rijn
6d7217f37a
[varint] Add LEB128 decoding + tests
...
Also make tests in general less spammy: Don't print [PASS] for each successful test, only report failures and progress.
2022-03-08 15:40:00 +01:00
Jeroen van Rijn
6d9f84ba03
[tests] Make test runners exit with errorlevel 1 if a test fails.
2022-03-03 15:16:16 +01:00
gingerBill
6223f48c3f
Update tests
2022-01-20 20:08:24 +00:00
gingerBill
2a325b3da0
Update ODIN_ENDIAN usage
2022-01-16 12:25:39 +00:00
Jeroen van Rijn
c4b4a841d6
png: Move metadata.
2021-10-06 22:43:33 +02:00
Jeroen van Rijn
8fcd1794a6
png: Add sane compile-time maximums for dimensions + chunk sizes.
2021-10-06 21:48:22 +02:00
Jeroen van Rijn
9b5ae95677
png + compress: Rearrange error unions.
2021-10-06 20:45:29 +02:00
Jeroen van Rijn
21c6d691d8
Add additional error checking to helpers.
2021-10-06 20:10:37 +02:00
Jeroen van Rijn
e6905f8657
Custom test runner.
2021-09-08 21:17:16 +02:00
Jeroen van Rijn
78e923b6b0
Add Makefile for tests.
2021-09-07 19:11:06 +02:00
Jeroen van Rijn
6954076f15
CI tests for PNG, GZIP + ZLIB.
2021-09-07 18:25:49 +02:00