]> git.ipfire.org Git - pakfire.git/commitdiff
testsuite: Dump key information
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Nov 2017 12:12:03 +0000 (13:12 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Nov 2017 12:12:03 +0000 (13:12 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/libpakfire/key.c

index 81fda419fef4b88033cec3dc5ea531b7cf491e3d..1c119a0dde779eb8944f27cde4a0529e334f1796 100644 (file)
@@ -76,6 +76,12 @@ int test_export(const test_t* t) {
        PakfireKey key = pakfire_key_get(t->pakfire, TEST_KEY_FINGERPRINT);
        assert_return(key, EXIT_FAILURE);
 
+       // Dump key description
+       char* dump = pakfire_key_dump(key);
+       assert_return(dump, EXIT_FAILURE);
+       LOG("%s\n", dump);
+       pakfire_free(dump);
+
        char* data = pakfire_key_export(key, 0);
        assert_return(data, EXIT_FAILURE);