48 for (
auto art : al->
items) {
49 fail_unless(
artifact_get_face(art) != (uint16_t)-1,
"failed to find a face for %s", art->item->name);
57 Suite *s = suite_create(
"artifact");
58 TCase *tc_core = tcase_create(
"Core");
59 tcase_set_timeout(tc_core, 60);
64 suite_add_tcase(s, tc_core);
65 tcase_add_test(tc_core, test_face_for_each_artifact);
73 SRunner *sr = srunner_create(s);
75 srunner_set_xml(sr, LOGDIR
"/unit/common/artifact.xml");
76 srunner_set_log(sr, LOGDIR
"/unit/common/artifact.out");
77 srunner_run_all(sr, CK_ENV);
78 nf = srunner_ntests_failed(sr);
80 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;