Add currently existing PackageKit backend
Some checks failed
Test / build (push) Failing after 27s

This commit is contained in:
2026-02-03 14:50:26 +01:00
parent da02080fc1
commit 97efcb4faa
19 changed files with 2846 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#include "slackpkg.h"
using namespace slack;
static void
slack_test_slackpkg_construct()
{
auto slackpkg = new Slackpkg ("some", "mirror", 1, NULL, NULL);
g_assert_cmpstr(slackpkg->get_name (), ==, "some");
g_assert_cmpstr(slackpkg->get_mirror (), ==, "mirror");
g_assert_cmpuint(slackpkg->get_order (), ==, 1);
g_assert_false (slackpkg->is_blacklisted ("pattern"));
delete slackpkg;
}
int main(int argc, char *argv[])
{
g_test_init(&argc, &argv, NULL);
g_test_add_func("/slack/slackpkg/construct", slack_test_slackpkg_construct);
return g_test_run();
}