]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: test-unicode-* - Use absolute source directory for composing UCD directory
authorStephan Bosch <stephan.bosch@open-xchange.com>
Sun, 23 Nov 2025 21:56:04 +0000 (22:56 +0100)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 8 Dec 2025 14:37:04 +0000 (14:37 +0000)
Allows calling the unit tests outside the local source directory.

src/lib/Makefile.am

index 382bbd3b29d2cc04e08749d8c6dde01c6a5545f1..52331348bc6a9b80465433c366cfa805626fc499 100644 (file)
@@ -16,6 +16,7 @@ BUILT_SOURCES = $(srcdir)/unicode-data-tables.c \
 
 UCD_URL = https://dovecot.org/res
 UCD_DIR = $(srcdir)/ucd
+UCD_ABS_DIR = $(abs_srcdir)/ucd
 UCD_FILES = \
        $(UCD_DIR)/CaseFolding.txt \
        $(UCD_DIR)/CompositionExclusions.txt \
@@ -421,7 +422,7 @@ test_programs = test-lib test-cpu-limit
 
 test_lib_CPPFLAGS = \
        -I$(top_srcdir)/src/lib-test \
-       -DUCD_DIR=\"$(UCD_DIR)\"
+       -DUCD_DIR=\"$(UCD_ABS_DIR)\"
 
 test_libs = \
        ../lib-test/libtest.la \