Skip to content
Snippets Groups Projects
Commit 1fb754eb authored by Thibault Saunier's avatar Thibault Saunier :cactus:
Browse files

tests: Use mono-nunit if avalaible

parent 24730900
No related branches found
Tags mesa-18.0.0-rc3
No related merge requests found
nunit_console = find_program('nunit-console', required: false) nunit_console = find_program('nunit-console', 'nunitlite-runner', required: get_option('tests'))
if nunit_console.found() if nunit_console.found()
nunit_version = '3.10.1' nunit_version = '3.10.1'
...@@ -11,17 +11,22 @@ if nunit_console.found() ...@@ -11,17 +11,22 @@ if nunit_console.found()
'--builddir', meson.build_root(), '--builddir', meson.build_root(),
) )
if get_nunit_res.returncode() != 0
message('Failed to get NUnit: ' + get_nunit_res.stderr())
else
foreach path: get_nunit_res.stdout().split()
testsenv.prepend('MONO_PATH',
join_paths(meson.build_root(), path.strip('-r:'), '..'))
endforeach
nunit_dep = declare_dependency(link_args: get_nunit_res.stdout().split(), nunit_dep = dependency('mono-nunit')
version: nunit_version) if not nunit_dep.found()
if get_nunit_res.returncode() != 0
message('Failed to get NUnit: ' + get_nunit_res.stderr())
else
foreach path: get_nunit_res.stdout().split()
testsenv.prepend('MONO_PATH',
join_paths(meson.build_root(), path.strip('-r:'), '..'))
endforeach
nunit_dep = declare_dependency(link_args: get_nunit_res.stdout().split(),
version: nunit_version)
endif
endif
if nunit_dep.found()
foreach test: [ foreach test: [
# 'PipelineTests', # 'PipelineTests',
'SdpTests' 'SdpTests'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment