Build system: Move tests to their own directory
This commit is contained in:
+1
-29
@@ -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')
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user