]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-oauth2: test-oauth2-jwt - Allow running test from paths other than current directory
authorStephan Bosch <stephan.bosch@open-xchange.com>
Tue, 24 Oct 2023 19:41:04 +0000 (21:41 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 25 Oct 2023 12:01:18 +0000 (12:01 +0000)
src/lib-oauth2/Makefile.am
src/lib-oauth2/test-oauth2-jwt.c

index af5f66916b1e985542b7a2ff371484015efbe5fa..7ae5372a54bc467743787f70c3d1936c71d61f7c 100644 (file)
@@ -4,7 +4,8 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src/lib-http \
        -I$(top_srcdir)/src/lib-dcrypt \
        -I$(top_srcdir)/src/lib-dict \
-       -I$(top_srcdir)/src/lib-settings
+       -I$(top_srcdir)/src/lib-settings \
+       -DTEST_DCRYPT_MODULE_DIR=\""$(abs_top_builddir)/src/lib-dcrypt/.libs"\"
 
 noinst_LTLIBRARIES=liboauth2.la
 
index 41604cbb63be562eac3ec0ee12e15bac20ae0592..541b49216d1201031b0d2b438432256a83fbc3ac 100644 (file)
@@ -933,7 +933,7 @@ static void test_do_init(void)
 {
        const char *error;
        struct dcrypt_settings dcrypt_set = {
-               .module_dir = "../lib-dcrypt/.libs",
+               .module_dir = TEST_DCRYPT_MODULE_DIR,
        };
        struct dict_settings dict_set = {
                .base_dir = ".",