Skip to content

Commit

Permalink
reactivate dub tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rtbo committed Aug 20, 2023
1 parent 80a9230 commit 1b574eb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions test cases/d/11 dub/meson.build
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
project('dub-example', 'd')

error('MESON_SKIP_TEST: Dub support is broken at the moment (#11773)')

dub_exe = find_program('dub', required : false)
if not dub_exe.found()
error('MESON_SKIP_TEST: Dub not found')
endif

dub_ver = dub_exe.version()
if dub_ver.version_compare('>1.31.1') and dub_ver.version_compare('<1.35.0')
error('MESON_SKIP_TEST: Incompatible Dub version ' + dub_ver)
endif

urld_dep = dependency('urld', method: 'dub')

test_exe = executable('test-urld', 'test.d', dependencies: urld_dep)
Expand Down
7 changes: 5 additions & 2 deletions test cases/d/14 dub with deps/meson.build
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
project('dub-with-deps-example', ['d'])

error('MESON_SKIP_TEST: Dub support is broken at the moment (#11773)')

dub_exe = find_program('dub', required : false)
if not dub_exe.found()
error('MESON_SKIP_TEST: Dub not found')
endif

dub_ver = dub_exe.version()
if dub_ver.version_compare('>1.31.1') and dub_ver.version_compare('<1.35.0')
error('MESON_SKIP_TEST: Incompatible Dub version')
endif

if meson.get_compiler('d').get_id() == 'gcc'
error('MESON_SKIP_TEST: can\'t build dependencies with GDC')
elif meson.get_compiler('d').get_id() == 'llvm'
Expand Down

0 comments on commit 1b574eb

Please sign in to comment.