File: meson.build

package info (click to toggle)
glib2.0 2.86.1-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid
  • size: 67,012 kB
  • sloc: ansic: 544,596; python: 9,702; sh: 1,612; xml: 1,482; perl: 1,222; cpp: 535; makefile: 321; javascript: 11
file content (39 lines) | stat: -rw-r--r-- 781 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 2024 Collabora Ltd.
# SPDX-License-Identifier: LGPL-2.1-or-later

test_env = environment()
test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())

lint_scripts = [
  'black.sh',
  'flake8.sh',
  'reuse.sh',
  'shellcheck.sh',
]

if have_bash
  foreach test_name : lint_scripts
    test(
      test_name,
      bash,
      args : [files(test_name)],
      env : test_env,
      suite : ['lint', 'no-valgrind'],
      protocol : 'tap',
    )
  endforeach
endif

if not meson.is_subproject()
  test(
    'check-missing-install-tag.py',
    python,
    args : ['-B', files('check-missing-install-tag.py')],
    env : test_env,
    suite : ['lint', 'no-valgrind'],
    protocol : 'tap',
  )
endif

subdir('lib')