plug-ins, tests: add tests for more file formats...

using example files from the nomacs testset.
This commit is contained in:
Jacob Boerema 2025-03-12 13:05:46 -04:00
parent 731766e9bc
commit acead5642e
8 changed files with 73 additions and 0 deletions

View file

@ -0,0 +1,6 @@
[test-1]
enabled=True
description=Test loading avif images from the nomacs formats testset
folder=nomacs-testset/AVIF/
files=avif-tests-1.files
source=https://github.com/nomacs/formats_testset

View file

@ -3,6 +3,12 @@ verbose=0
# When adding ini files, don't forget to add them to meson.build
[avif]
enabled=True
plugin-import=file-heif-av1-load
extension=avif
tests=avif-tests.ini
[bmp]
enabled=True
enabled-export=False
@ -48,6 +54,19 @@ plugin-import=file-gif-load
extension=gif
tests=gif-tests.ini
[heic]
enabled=True
plugin-import=file-heif-load
extension=heic
tests=heic-tests.ini
[hej2]
# Needs libheif 1.17.0 or higher in our Debian CI before we can enable this.
enabled=False
plugin-import=file-heif-hej2-load
extension=heic
tests=hej2-tests.ini
[icns]
enabled=True
plugin-import=file-icns-load
@ -78,6 +97,12 @@ plugin-import=file-jpeg-load
extension=jpg
tests=jpeg-tests.ini
[jxl]
enabled=True
plugin-import=file-jpegxl-load
extension=jxl
tests=jxl-tests.ini
[pcx]
enabled=True
plugin-import=file-pcx-load
@ -121,6 +146,12 @@ plugin-import=file-psp-load
extension=psd
tests=psp-tests.ini
[qoi]
enabled=True
plugin-import=file-qoi-load
extension=qoi
tests=qoi-tests.ini
[sgi]
enabled=True
plugin-import=file-sgi-load

View file

@ -0,0 +1,6 @@
[test-1]
enabled=True
description=Test loading heic images from the nomacs formats testset
folder=nomacs-testset/HEIC/
files=heic-tests-1.files
source=https://github.com/nomacs/formats_testset

View file

@ -0,0 +1,6 @@
[test-1]
enabled=True
description=Test loading hej2 images from the nomacs formats testset
folder=nomacs-testset/HEJ2/
files=hej2-tests-1.files
source=https://github.com/nomacs/formats_testset

View file

@ -4,3 +4,10 @@ description=Test loading jp2 images from Pillow TestSuite
folder=pillow/
files=jp2-pillow-tests.files
source=https://github.com/python-pillow/Pillow/tree/master/Tests/images
[test-2]
enabled=True
description=Test loading hej2 images from the nomacs formats testset
folder=nomacs-testset/JPEG2000/
files=jpf-tests-1.files
source=https://github.com/nomacs/formats_testset

View file

@ -0,0 +1,6 @@
[test-1]
enabled=True
description=Test loading jxl images from the nomacs formats testset
folder=nomacs-testset/JXL/
files=jxl-tests-1.files
source=https://github.com/nomacs/formats_testset

View file

@ -5,6 +5,7 @@ install_data([
'config.ini', # not yet updated!
'batch-config.ini',
# file format specific config files for import testing
'avif-tests.ini',
'bmp-tests.ini',
'dcx-tests.ini',
'dds-tests.ini',
@ -12,17 +13,21 @@ install_data([
'fits-tests.ini',
'fli-tests.ini',
'gif-tests.ini',
'heic-tests.ini',
'hej2-tests.ini',
'icns-tests.ini',
'ico-tests.ini',
'j2k-tests.ini',
'jp2-tests.ini',
'jpeg-tests.ini',
'jxl-tests.ini',
'pcx-tests.ini',
'png-tests.ini',
'pnm-tests.ini',
'psb-tests.ini',
'psd-tests.ini',
'psp-tests.ini',
'qoi-tests.ini',
'sgi-tests.ini',
'tga-tests.ini',
'tif-tests.ini',

View file

@ -0,0 +1,6 @@
[test-1]
enabled=True
description=Test loading qoi images from the nomacs formats testset
folder=nomacs-testset/QOI/
files=qoi-tests-1.files
source=https://github.com/nomacs/formats_testset