Changeset 134ac5d in mainline for uspace/lib/pcut/src/report
- Timestamp:
- 2014-06-06T07:54:24Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8db09e4
- Parents:
- eeb23f2d
- Location:
- uspace/lib/pcut/src/report
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcut/src/report/tap.c
reeb23f2d r134ac5d 48 48 static int failed_tests_in_suite; 49 49 50 /** Initialize the tap output. */ 50 /** Initialize the TAP output. 51 * 52 * @param all_items Start of the list with all items. 53 */ 51 54 static void tap_init(pcut_item_t *all_items) { 52 55 int tests_total = pcut_count_tests(all_items); … … 56 59 } 57 60 58 /** Report that a suite was started. */ 61 /** Report that a suite was started. 62 * 63 * @param suite Suite that just started. 64 */ 59 65 static void tap_suite_start(pcut_item_t *suite) { 60 66 tests_in_suite = 0; … … 64 70 } 65 71 66 /** Report that a suite was completed. */ 72 /** Report that a suite was completed. 73 * 74 * @param suite Suite that just ended. 75 */ 67 76 static void tap_suite_done(pcut_item_t *suite) { 68 77 printf("#> Finished suite %s (failed %d of %d).\n", … … 104 113 } 105 114 106 /** Report a completed test. */ 115 /** Report a completed test. 116 * 117 * @param test Test that just finished. 118 * @param outcome Outcome of the test. 119 * @param error_message Buffer with error message. 120 * @param teardown_error_message Buffer with error message from a tear-down function. 121 * @param extra_output Extra output from the test (stdout). 122 */ 107 123 static void tap_test_done(pcut_item_t *test, int outcome, 108 124 const char *error_message, const char *teardown_error_message, -
uspace/lib/pcut/src/report/xml.c
reeb23f2d r134ac5d 48 48 static int failed_tests_in_suite; 49 49 50 /** Initialize the XML output. */ 50 /** Initialize the XML output. 51 * 52 * @param all_items Start of the list with all items. 53 */ 51 54 static void xml_init(pcut_item_t *all_items) { 52 55 printf("<?xml version=\"1.0\"?>\n"); … … 58 61 } 59 62 60 /** Report that a suite was started. */ 63 /** Report that a suite was started. 64 * 65 * @param suite Suite that just started. 66 */ 61 67 static void xml_suite_start(pcut_item_t *suite) { 62 68 tests_in_suite = 0; … … 66 72 } 67 73 68 /** Report that a suite was completed. */ 74 /** Report that a suite was completed. 75 * 76 * @param suite Suite that just ended. 77 */ 69 78 static void xml_suite_done(pcut_item_t *suite) { 70 79 printf("\t</suite><!-- %s: %d / %d -->\n", suite->suite.name, … … 111 120 } 112 121 113 /** Report a completed test. */ 122 /** Report a completed test. 123 * 124 * @param test Test that just finished. 125 * @param outcome Outcome of the test. 126 * @param error_message Buffer with error message. 127 * @param teardown_error_message Buffer with error message from a tear-down function. 128 * @param extra_output Extra output from the test (stdout). 129 */ 114 130 static void xml_test_done(pcut_item_t *test, int outcome, 115 131 const char *error_message, const char *teardown_error_message,
Note:
See TracChangeset
for help on using the changeset viewer.
