From: Michael Tremer Date: Tue, 17 May 2022 15:09:47 +0000 (+0000) Subject: tests: makefile: Dump all package information X-Git-Tag: 0.9.28~786 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aeea4a265d53acf2d29e6377dba91d3b9701010b;p=pakfire.git tests: makefile: Dump all package information Signed-off-by: Michael Tremer --- diff --git a/tests/libpakfire/makefile.c b/tests/libpakfire/makefile.c index e634aec38..8662f06f5 100644 --- a/tests/libpakfire/makefile.c +++ b/tests/libpakfire/makefile.c @@ -193,6 +193,13 @@ static int test_dist_dummy(const struct test* t) { // Extract all package metadata ASSERT_SUCCESS(pakfire_archive_make_package(archive, NULL, &package)); + // Dump package information + char* dump = pakfire_package_dump(package, PAKFIRE_PKG_DUMP_LONG|PAKFIRE_PKG_DUMP_FILELIST); + if (dump) { + printf("%s\n", dump); + free(dump); + } + // Check name const char* name = pakfire_package_get_name(package); ASSERT_STRING_EQUALS(name, "dummy");