diff --git a/meson.build b/meson.build index f878c25..a355c95 100644 --- a/meson.build +++ b/meson.build @@ -17,32 +17,4 @@ gnome = import('gnome') i18n = import('i18n') subdir('src') - - -reuse_exe = find_program('reuse', required: false) -if reuse_exe.found() - test( - 'Comply with REUSE spec', - reuse_exe, - args: [ - '--root', - meson.project_source_root(), - 'lint' - ], - suite: 'licenses', - ) -endif - -eslint_exe = find_program( - 'eslint', 'eslint.js', - required: false, - dirs: [ meson.project_source_root() / 'node_modules' / 'eslint' / 'bin' ] -) -if eslint_exe.found() - test( - 'Check JavaScript format', - eslint_exe, - args: [ meson.project_source_root() / 'src' ], - suite: 'code', - ) -endif +subdir('tests') diff --git a/tests/meson.build b/tests/meson.build new file mode 100644 index 0000000..4e25c67 --- /dev/null +++ b/tests/meson.build @@ -0,0 +1,30 @@ +# SPDX-FileCopyrightText: 2022 Romain Vigier +# SPDX-License-Identifier: GPL-3.0-or-later + +reuse_exe = find_program('reuse', required: false) +if reuse_exe.found() + test( + 'Comply with REUSE spec', + reuse_exe, + args: [ + '--root', + meson.project_source_root(), + 'lint' + ], + suite: 'licenses', + ) +endif + +eslint_exe = find_program( + 'eslint', 'eslint.js', + required: false, + dirs: [ meson.project_source_root() / 'node_modules' / 'eslint' / 'bin' ] +) +if eslint_exe.found() + test( + 'Check JavaScript format', + eslint_exe, + args: [ meson.project_source_root() / 'src' ], + suite: 'code', + ) +endif