summaryrefslogtreecommitdiff
path: root/tests/meson.build
diff options
context:
space:
mode:
authorBerke Güzel <wenekar1@gmail.com>2026-10-15 12:38:28 +0300
committerBerke Güzel <wenekar1@gmail.com>2026-10-15 12:38:28 +0300
commit86b1eed7dd946d6054eff37cdb7b4a784283e23b (patch)
treea8ce1c995aed62d2e67a48a10dee112788b32ff1 /tests/meson.build
parent1924e4e0c9c863b641f08224f740feb51bf1bc7d (diff)
parent57ebf3b3238a165c1973ecdf96ba79f95d650fc9 (diff)
Merge branch 'wt/abi-version' into api-hardening
Diffstat (limited to 'tests/meson.build')
-rw-r--r--tests/meson.build11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/meson.build b/tests/meson.build
index 69f3c49..5c77412 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -117,6 +117,17 @@ if cc.has_link_argument('-Wl,--wrap=realloc') and cc.has_link_argument('-Wl,--wr
suite: 'unit',
)
endif
+
+# The project version comes in as a define, so the header macros cannot
+# drift from meson.build.
+version_test = executable('version-test', 'version_test.c',
+ c_args: test_c_args + ['-DTERM_TEST_PROJECT_VERSION="@0@"'.format(meson.project_version())],
+ dependencies: [term_internal_dep],
+)
+test('version-test', version_test,
+ env: test_env,
+ suite: 'unit',
+)
test('term-cross-test', bash,
args: [files('cross_test.sh'), meson.project_source_root()],
suite: 'portability',