X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=test%2Fmeson.build;h=36d9753f7e8313cb21879d6e56985207a6fd6ea5;hb=50c62f7235eacd3b88c59ead983e8be719fb7604;hp=4b12f2e9b308d5980b6e2235249585298d07c6eb;hpb=df716df33af8e9a5b93d573a023ecd7fc24d9a03;p=tinc diff --git a/test/meson.build b/test/meson.build index 4b12f2e9..36d9753f 100644 --- a/test/meson.build +++ b/test/meson.build @@ -1,63 +1,6 @@ -tests = [ - 'basic.test', - 'commandline.test', - 'executables.test', - 'import-export.test', - 'invite-join.test', - 'invite-offline.test', - 'invite-tinc-up.test', - 'scripts.test', - 'security.test', - 'variables.test', -] - -if opt_crypto != 'nolegacy' - tests += 'algorithms.test' - tests += 'legacy-protocol.test' -endif - -if os_name != 'windows' - tests += 'sptps-basic.test' -endif - -if os_name == 'linux' - tests += 'ns-ping.test' +if cc_name != 'msvc' + subdir('integration') endif -exe_splice = executable( - 'splice', - sources: 'splice.c', - dependencies: deps_common, - implicit_include_directories: false, - include_directories: inc_conf, - build_by_default: false, -) - -env = environment() -env.set('TINC_PATH', exe_tinc.full_path()) -env.set('TINCD_PATH', exe_tincd.full_path()) -env.set('SPTPS_TEST_PATH', exe_sptps_test.full_path()) -env.set('SPTPS_KEYPAIR_PATH', exe_sptps_keypair.full_path()) -env.set('SPLICE_PATH', exe_splice.full_path()) -env.set('TESTLIB_PATH', src_root / 'test' / 'testlib.sh') - -deps_test = [ - exe_tinc, - exe_tincd, - exe_splice, - exe_sptps_test, - exe_sptps_keypair, -] - -test_wd = meson.current_build_dir() - -foreach test_name : tests - target = find_program(test_name, native: true) - test(test_name, - target, - timeout: 5 * 60, - env: env, - depends: deps_test, - workdir: test_wd) -endforeach +subdir('unit')