Robert Collins (subunit support)
Micah Cowan (checkmk tool, docs and tests)
Zdenek Crha (new Check API docs, fixes, and tests)
+ Bogdan Cristea (eclipse support in contrib dir)
Anybody who has contributed code to Check or Check's build system is
considered an author. Send patches to this file to
--- /dev/null
+Eclipse template for creating unit tests with check framework
+
+The template has been tested with Eclipse Helios CDT. Note that check
+framework should be installed first and the check library should be
+found in system path.
+
+Installation:
+
+From the "New Source File" dialog, press "Configure...", then
+"Import..." and select the template XML file
+(e.g. check_template_eclipse_helios.xml). The template should appear
+under "C Source File" tree as "C source template with check unit
+testing" in "Preferences" dialog.
+
+The newly installed template should be available when creating a "New
+Source File" in "Template" combo box.
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="false" context="org.eclipse.cdt.core.cSource.contenttype_context" deleted="false" description="uses check library for unit testing (C only)" enabled="true" name="C source template with check unit testing">${filecomment}
+
+#include <check.h>
+#include <stdlib.h>
+
+START_TEST (test_template)
+{
+}
+END_TEST
+
+Suite* test_suite(void)
+{
+ Suite *s = suite_create("templated_suite");
+
+ /* Core test case */
+ TCase *tc_core = tcase_create("Core");
+ tcase_add_test(tc_core, test_template);
+ suite_add_tcase(s, tc_core);
+
+ return s;
+}
+
+int main()
+{
+ int number_failed;
+ Suite *s = test_suite();
+ SRunner *sr = srunner_create(s);
+ srunner_run_all(sr, CK_NORMAL);
+ number_failed = srunner_ntests_failed(sr);
+ srunner_free(sr);
+ return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
+}
+</template></templates>
\ No newline at end of file