1subdir('data') 2 3tests = [ 4 'lrucache', 5 'cluster', 6 'dirent', 7 'header', 8 'uuid', 9 'template', 10 'zimfile', 11 'iterator', 12 'find', 13 'compression', 14 'dirent_lookup', 15 'istreamreader', 16 'decoderstreamreader', 17 'rawstreamreader', 18 'bufferstreamer' 19] 20 21if gtest_dep.found() and not meson.is_cross_build() 22 foreach test_name : tests 23 test_exe = executable(test_name, [test_name+'.cpp', 'tools.cpp'], 24 implicit_include_directories: false, 25 include_directories : [include_directory, src_directory], 26 link_with : libzim, 27 link_args: extra_link_args, 28 dependencies : deps + [gtest_dep], 29 build_rpath : '$ORIGIN') 30 test(test_name, test_exe, timeout : 120, 31 workdir: meson.current_build_dir()) 32 endforeach 33endif 34