aboutsummaryrefslogtreecommitdiff
path: root/libxcb/tests/check_all.c
diff options
context:
space:
mode:
Diffstat (limited to 'libxcb/tests/check_all.c')
-rw-r--r--libxcb/tests/check_all.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/libxcb/tests/check_all.c b/libxcb/tests/check_all.c
new file mode 100644
index 000000000..4393422e3
--- /dev/null
+++ b/libxcb/tests/check_all.c
@@ -0,0 +1,20 @@
+#include <stdlib.h>
+#include "check_suites.h"
+
+void suite_add_test(Suite *s, TFun tf, const char *name)
+{
+ TCase *tc = tcase_create(name);
+ tcase_add_test(tc, tf);
+ suite_add_tcase(s, tc);
+}
+
+int main(void)
+{
+ int nf;
+ SRunner *sr = srunner_create(public_suite());
+ srunner_set_xml(sr, "CheckLog_xcb.xml");
+ srunner_run_all(sr, CK_NORMAL);
+ nf = srunner_ntests_failed(sr);
+ srunner_free(sr);
+ return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
+}