Skip to content

Commit

Permalink
meson: add tests
Browse files Browse the repository at this point in the history
Localization is not implemented.

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Feb 19, 2025
1 parent c71a80b commit 3e45dcb
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ samples = {
'iptceasy': [],
'iptcprint': [],
'iptctest': [],
'jpegparsetest': [],
'key-test': [],
'largeiptc-test': [],
'mmap-test': [],
Expand Down Expand Up @@ -206,5 +207,7 @@ foreach g : gopt
executable(g, 'samples/@[email protected]'.format(g), 'app/getopt.cpp', dependencies: exiv2_dep, include_directories: [exiv2inc, ginc])
endforeach

bindir = 'EXIV2_BINDIR=@0@'.format(meson.current_build_dir())
subdir('tests')
subdir('unitTests')
subdir('po')
63 changes: 63 additions & 0 deletions tests/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
if not expat_dep.found()
subdir_done()
endif

test(
'bashTests',
find_program('runner.py'),
env: bindir,
args: ['--verbose', 'bash_tests'],
timeout: 600,
is_parallel: false,
workdir: meson.current_source_dir(),
)

test(
'bugfixTests',
find_program('runner.py'),
env: bindir,
args: ['--verbose', 'bugfixes'],
timeout: 600,
is_parallel: false,
workdir: meson.current_source_dir(),
)

test(
'lensTests',
find_program('runner.py'),
env: bindir,
args: ['--verbose', 'lens_tests'],
timeout: 600,
is_parallel: false,
workdir: meson.current_source_dir(),
)

test(
'regressionTests',
find_program('runner.py'),
env: bindir,
args: ['--verbose', 'regression_tests'],
timeout: 600,
is_parallel: false,
workdir: meson.current_source_dir(),
)

test(
'tiffTests',
find_program('runner.py'),
env: bindir,
args: ['--verbose', 'tiff_test'],
timeout: 600,
is_parallel: false,
workdir: meson.current_source_dir(),
)

test(
'versionTests',
find_program('runner.py'),
env: bindir,
args: ['--verbose', 'bash_tests/version_test.py'],
timeout: 600,
is_parallel: false,
workdir: meson.current_source_dir(),
)

0 comments on commit 3e45dcb

Please sign in to comment.