Build system: Move tests to their own directory

This commit is contained in:
Romain Vigier
2022-04-05 11:15:42 +02:00
parent 015a5b3478
commit 1bf9baccc8
2 changed files with 31 additions and 29 deletions
+1 -29
View File
@@ -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')
+30
View File
@@ -0,0 +1,30 @@
# SPDX-FileCopyrightText: 2022 Romain Vigier <contact AT romainvigier.fr>
# 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