From: Michael Tremer Date: Tue, 17 Oct 2023 08:49:08 +0000 (+0000) Subject: tests: Load our own configuration file X-Git-Tag: 0.9.30~1477 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e59418107434f2b4dd9192bcfad431336a4c2230;p=pakfire.git tests: Load our own configuration file Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index 30c12240d..1eb72c8f4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1004,6 +1004,7 @@ TESTSUITE_CPPFLAGS = \ $(AM_CPPFLAGS) \ $(PAKFIRE_CPPFLAGS) \ -DABS_TOP_SRCDIR=\"$(abs_top_srcdir)\" \ + -DTEST_CONFIG_FILE=\"$(abs_top_srcdir)/contrib/config/general.conf\" \ -DTEST_DATA_DIR=\"$(abs_top_srcdir)/tests/data\" \ -DTEST_ROOTFS=\"$(TEST_ROOTFS)\" \ -DTEST_STUB_COMMAND=\"$(abs_top_builddir)/tests/stub/root/command\" \ diff --git a/tests/testsuite.c b/tests/testsuite.c index 52c419ede..34a3a727c 100644 --- a/tests/testsuite.c +++ b/tests/testsuite.c @@ -50,7 +50,7 @@ static int test_run(int i, struct test* t) { LOG("running %s (%s)\n", t->name, root); // Create a new context - r = pakfire_ctx_create(&t->ctx, NULL); + r = pakfire_ctx_create(&t->ctx, TEST_CONFIG_FILE); if (r) { LOG("Could not create context: %m\n"); goto ERROR;