16881f68fSopenharmony_ci# Compile helper programs 26881f68fSopenharmony_citd = [] 36881f68fSopenharmony_ciforeach prog: [ 'test_write_cache', 'test_setattr' ] 46881f68fSopenharmony_ci td += executable(prog, prog + '.c', 56881f68fSopenharmony_ci include_directories: include_dirs, 66881f68fSopenharmony_ci link_with: [ libfuse ], 76881f68fSopenharmony_ci dependencies: thread_dep, 86881f68fSopenharmony_ci install: false) 96881f68fSopenharmony_ciendforeach 106881f68fSopenharmony_citd += executable('test_syscalls', 'test_syscalls.c', 116881f68fSopenharmony_ci include_directories: include_dirs, 126881f68fSopenharmony_ci install: false) 136881f68fSopenharmony_citd += executable('readdir_inode', 'readdir_inode.c', 146881f68fSopenharmony_ci include_directories: include_dirs, 156881f68fSopenharmony_ci install: false) 166881f68fSopenharmony_citd += executable('release_unlink_race', 'release_unlink_race.c', 176881f68fSopenharmony_ci dependencies: [ libfuse_dep ], 186881f68fSopenharmony_ci install: false) 196881f68fSopenharmony_ci 206881f68fSopenharmony_citest_scripts = [ 'conftest.py', 'pytest.ini', 'test_examples.py', 216881f68fSopenharmony_ci 'util.py', 'test_ctests.py', 'test_custom_io.py' ] 226881f68fSopenharmony_citd += custom_target('test_scripts', input: test_scripts, 236881f68fSopenharmony_ci output: test_scripts, build_by_default: true, 246881f68fSopenharmony_ci command: ['cp', '-fPp', 256881f68fSopenharmony_ci '@INPUT@', meson.current_build_dir() ]) 266881f68fSopenharmony_ci 276881f68fSopenharmony_ci# Provide something helpful when running 'ninja test' 286881f68fSopenharmony_ci 296881f68fSopenharmony_ciif meson.is_subproject() 306881f68fSopenharmony_ci test('libfuse is a subproject, skipping tests', executable('wrong_command', 316881f68fSopenharmony_ci 'wrong_command.c', install: false, 326881f68fSopenharmony_ci c_args: [ '-DMESON_IS_SUBPROJECT' ])) 336881f68fSopenharmony_cielse 346881f68fSopenharmony_ci test('wrong_command', executable('wrong_command', 'wrong_command.c', 356881f68fSopenharmony_ci install: false)) 366881f68fSopenharmony_ciendif 37