• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Compile helper programs
2td = []
3foreach prog: [ 'test_write_cache', 'test_setattr' ]
4    td += executable(prog, prog + '.c',
5                     include_directories: include_dirs,
6                     link_with: [ libfuse ],
7                     dependencies: thread_dep,
8                     install: false)
9endforeach
10td += executable('test_syscalls', 'test_syscalls.c',
11                 include_directories: include_dirs,
12                 install: false)
13td += executable('readdir_inode', 'readdir_inode.c',
14                 include_directories: include_dirs,
15                 install: false)
16td += executable('release_unlink_race', 'release_unlink_race.c',
17                 dependencies: [ libfuse_dep ],
18                 install: false)
19
20test_scripts = [ 'conftest.py', 'pytest.ini', 'test_examples.py',
21                 'util.py', 'test_ctests.py', 'test_custom_io.py' ]
22td += custom_target('test_scripts', input: test_scripts,
23                      output: test_scripts, build_by_default: true,
24                      command: ['cp', '-fPp',
25                                '@INPUT@', meson.current_build_dir() ])
26
27# Provide something helpful when running 'ninja test'
28
29if meson.is_subproject()
30	test('libfuse is a subproject, skipping tests', executable('wrong_command',
31                      'wrong_command.c', install: false,
32                       c_args: [ '-DMESON_IS_SUBPROJECT' ]))
33else
34	test('wrong_command', executable('wrong_command', 'wrong_command.c',
35                      install: false))
36endif
37