예제 #1
0
END_TEST

START_TEST(test_filenames)
{
    HyStringArray filenames = hy_advisory_get_filenames(advisory);

    ck_assert_int_eq(hy_stringarray_length(filenames), 1);
    ck_assert_str_eq(filenames[0], "tour.noarch.rpm");

    hy_stringarray_free(filenames);
}
예제 #2
0
END_TEST

START_TEST(test_get_files_cmdline)
{
    HySack sack = test_globals.sack;

    HyPackage pkg = by_name(sack, "tour");
    HyStringArray files;

    files = hy_package_get_files(pkg);
    fail_unless(hy_stringarray_length(files) == 6);
    hy_stringarray_free(files);
    hy_package_free(pkg);
}