2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-22 01:59:26 +00:00
bind/tests/ns/meson.build
Colin Vidal 1b6347483e fix macOS build for plugin unit test
MR !10753 breaks macOS build for plugin unit test as its linker doesn't
supports `--wrap` option, which is used in in order to mock the function
`isc_file_exits()`.

To work around the problem, a mocked `isc_file_exits()` is implemented
inside the plugin test as a static function before inlining the file
using it, which effectively links to this version rather than the isclib
one.
2025-07-30 09:58:47 +02:00

44 lines
1012 B
Meson

# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
#
# SPDX-License-Identifier: MPL-2.0
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
#
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
foreach unit : [
'notify',
'plugin',
'query',
]
test_bin = executable(
unit,
files(f'@unit@_test.c', 'netmgr_wrap.c'),
build_by_default: false,
export_dynamic: true,
install: false,
dependencies: [
libisc_dep,
libdns_dep,
libns_dep,
libtest_dep,
openssl_dep,
cmocka_dep,
nghttp2_dep,
],
)
test(
unit,
test_bin,
suite: 'ns',
timeout: 300,
workdir: meson.current_source_dir(),
)
endforeach