- 'mesa-sha1_test',
- files('mesa-sha1_test.c'),
- include_directories : inc_common,
- link_with : libmesa_util,
- c_args : [c_msvc_compat_args],
- )
+ 'bitset_test',
+ files('bitset_test.cpp'),
+ include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
+ dependencies : [idep_mesautil, idep_gtest],
+ ),
+ suite : ['util'],
+ )
+
+ process_test_exe = executable(
+ 'process_test',
+ files('process_test.c'),
+ include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
+ dependencies : idep_mesautil,
+ c_args : [c_msvc_compat_args],
+ )
+ if (host_machine.system() == 'windows' and build_machine.system() != 'windows')
+ # This conversion is only required on mingw crosscompilers, otherwise we hit at least one of these issues
+ # https://gitlab.freedesktop.org/mesa/mesa/-/issues/2690
+ # https://gitlab.freedesktop.org/mesa/mesa/-/issues/2788
+ prog_winepath = find_program('winepath')
+ process_test_exe_full_path = run_command(
+ prog_winepath, '-w', process_test_exe.full_path()
+ ).stdout().strip()
+ else
+ process_test_exe_full_path = process_test_exe.full_path()
+ endif
+
+ test(
+ 'process',
+ process_test_exe,
+ suite : ['util'],
+ env: ['BUILD_FULL_PATH='+process_test_exe_full_path]