]> git.ipfire.org Git - pakfire.git/commitdiff
tests: makefile: Dump all package information
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 May 2022 15:09:47 +0000 (15:09 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 May 2022 15:09:47 +0000 (15:09 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/libpakfire/makefile.c

index e634aec38a46ca701b95e33308b61e24f7363e8b..8662f06f5cab0296486ef5208556cb1dfc80c823 100644 (file)
@@ -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");