Commit Graph

29 Commits

Author SHA1 Message Date
Kim Woelders af97c7c08e test_load_2: Add some more y4m test images
The ones from previous commit.
2024-04-12 17:10:23 +02:00
Kim Woelders a2e6beb37c test_load_2: Add full range color y4m image
Renamed the image as it isn't the usual 64x64 one.
2024-04-11 20:55:30 +02:00
Kim Woelders 035239f5db test: Corrections for for libjxl-0.10 2024-03-22 16:58:47 +01:00
Kim Woelders 30107247b6 Change formatting style
No tabs, more like K&R.
Also switch to indent 2.2.13.
2024-01-02 09:47:51 +01:00
Kim Woelders 4109f54c4a test_load_2: Check some more y4m files 2024-01-01 16:57:36 +01:00
Kim Woelders 03cbf75a96 test_load_2: Add forgotten xeyes.png 2023-09-03 17:11:21 +02:00
Chema Gonzalez 63106616b9 test_load2: make error messages more descriptive
Tested:

Before:
```
$ IMLIB2_LOADER_PATH=../src/modules/loaders/.libs ./test_load_2
...
[ RUN      ] LOAD2.load_1
test_load_2.cpp:121: Failure
Expected equality of these values:
  crc
    Which is: 671661664
  tii[i].crc
    Which is: 4016720483
test_load_2.cpp:128: Failure
Expected equality of these values:
  crc
    Which is: 671661664
  tii[i].crc
    Which is: 4016720483
test_load_2.cpp:135: Failure
Expected equality of these values:
  crc
    Which is: 671661664
  tii[i].crc
    Which is: 4016720483
[  FAILED  ] LOAD2.load_1 (70 ms)
...
```

After:
```
$ IMLIB2_LOADER_PATH=../src/modules/loaders/.libs ./test_load_2
...
test_load_2.cpp:122: Failure
Expected equality of these values:
  crc
    Which is: 671661664
  tii[i].crc
    Which is: 4016720483
wrong crc file: ./images/icon-64.xpm expected: 4016720483 actual: 671661664
test_load_2.cpp:131: Failure
Expected equality of these values:
  crc
    Which is: 671661664
  tii[i]. crc
    Which is: 4016720483
wrong crc file: ./images/icon-64.xpm expected: 4016720483 actual: 671661664
test_load_2.cpp:142: Failure
Expected equality of these values:
  crc
    Which is: 671661664
  tii[i]. crc
    Which is: 4016720483
wrong crc file: ./images/icon-64.xpm expected: 4016720483 actual: 671661664
[  FAILED  ] LOAD2.load_1 (69 ms)
...
```
2023-08-03 12:34:30 +02:00
Kim Woelders 38b422b8de test: Add basic qoi checks 2023-06-20 13:59:55 +02:00
Kim Woelders 21af0e5a95 test: Print some progress info in a couple of tests 2023-03-21 18:42:16 +01:00
Kim Woelders a83de2e244 test_load: Add some y4m checks 2023-03-21 06:56:47 +01:00
Kim Woelders 5bf590ae7b test_load: Add some missing ifdefs 2023-03-21 06:56:47 +01:00
Kim Woelders 9b9abcdc1e test: Introduce image_get_crc32() 2023-01-22 17:14:52 +01:00
Kim Woelders 0f27c5e6ec test: Add some pam tests 2023-01-12 22:14:03 +01:00
Kim Woelders 8fc05e400e test: Add a few tests for obscure pnm formats 2023-01-12 22:13:54 +01:00
Kim Woelders 8416d2b244 test: test_load_2: Check frame 0/1 loading too 2022-11-15 11:49:47 +01:00
Kim Woelders 9f9779e698 test: Re-generate test images with recent tool/library versions
Converters and library versions used:
 convert                ImageMagick-6.9.12.64
 cjxl                   libjxl-0.7.0
 heif-enc               libheif-1.13.0
 opj2_compress          openjpeg2-2.5.0
 pnmtopnm,pamtoxvmini   netpbm-10.99.00
2022-09-28 18:19:07 +02:00
Kim Woelders ee862ac6bf test: Add some of JPEG 2000 tests 2022-04-10 12:48:25 +02:00
Kim Woelders 766c9d096f test: Add basic jxl test 2022-04-02 20:18:56 +02:00
Kim Woelders 18d0befc57 Use stdint types instead of DATA32 etc.
This should make things slightly more consistent and unambiguous, and
the stdint types are already used here and there (in loaders).

I'm not aware of any systems where this change makes any difference.
If there are targets out there with 64 bit ints imlib2 might now work
there and on targets with 16 bit ints it most likely still doesn't.
2022-03-26 15:54:40 +01:00
Kim Woelders bc9867379c Deprecate imlib_load/save_image_with_error_return() 2022-03-21 10:11:02 +01:00
Kim Woelders ac1d4b0520 Deal consistently with including Imlib2.h
- Always include config.h before Imlib2.h
  Needed for X_DISPLAY_MISSING.
- Always include config.h and Imlib2.h first
  Should make it more likely to spot stuff missing but required
  in Imlib2.h, like stddef.h.
  gtest.h apparently must be included before X headers though.
- Make sure we use the Imlib2.h here and not the one in /usr/include

Also ensure that the tests build when building without X.
2022-03-03 07:35:39 +01:00
Kim Woelders 79a5086b58 test: Merge common stuff 2022-02-06 13:07:47 +01:00
Kim Woelders 68171bdf7c test: Add basic heif loader check 2022-01-29 19:59:47 +01:00
Kim Woelders dde8b3fcd1 test: Add some more PNM type loading tests
Also avoid that .gz file contents depend on contained file's time stamp.
2022-01-19 19:38:32 +01:00
Kim Woelders 10f692c946 test: Add makefile to generate test images 2022-01-18 20:42:13 +01:00
Kim Woelders da2ce0d94b test: Move generated image files out of source dir
Simplifies cleaning up.
2022-01-18 20:40:59 +01:00
Kim Woelders 503e8527c3 Add lzma loader 2021-12-28 16:08:06 +01:00
Kim Woelders cbe7408bd8 test: Add a couple of ico depth test images 2021-12-26 12:22:20 +01:00
Kim Woelders 81b4e7b56b test: Add test_load_2
Checking signature (CRC) of loaded images.
2021-10-18 19:33:25 +02:00