Improved reports look.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10899 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
276a56324d
commit
3f72c7787e
|
@ -94,6 +94,14 @@ static void print_line(void) {
|
||||||
streamWrite(test_chp, (const uint8_t *)"\r\n", 2);
|
streamWrite(test_chp, (const uint8_t *)"\r\n", 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void print_fat_line(void) {
|
||||||
|
unsigned i;
|
||||||
|
|
||||||
|
for (i = 0; i < 76; i++)
|
||||||
|
streamPut(test_chp, '=');
|
||||||
|
streamWrite(test_chp, (const uint8_t *)"\r\n", 2);
|
||||||
|
}
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Module exported functions. */
|
/* Module exported functions. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -255,12 +263,14 @@ msg_t test_execute(BaseSequentialStream *stream, const testsuite_t *tsp) {
|
||||||
test_global_fail = false;
|
test_global_fail = false;
|
||||||
tseq = 0;
|
tseq = 0;
|
||||||
while (tsp->sequences[tseq] != NULL) {
|
while (tsp->sequences[tseq] != NULL) {
|
||||||
print_line();
|
#if TEST_SHOW_SEQUENCES == TRUE
|
||||||
test_print("--- Test Sequence ");
|
print_fat_line();
|
||||||
|
test_print("=== Test Sequence ");
|
||||||
test_printn(tseq + 1);
|
test_printn(tseq + 1);
|
||||||
test_print(" (");
|
test_print(" (");
|
||||||
test_print(tsp->sequences[tseq]->name);
|
test_print(tsp->sequences[tseq]->name);
|
||||||
test_println(")");
|
test_println(")");
|
||||||
|
#endif
|
||||||
tcase = 0;
|
tcase = 0;
|
||||||
while (tsp->sequences[tseq]->cases[tcase] != NULL) {
|
while (tsp->sequences[tseq]->cases[tcase] != NULL) {
|
||||||
print_line();
|
print_line();
|
||||||
|
|
|
@ -47,6 +47,13 @@
|
||||||
#define TEST_DELAY_BETWEEN_TESTS 200
|
#define TEST_DELAY_BETWEEN_TESTS 200
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Delay inserted between test cases.
|
||||||
|
*/
|
||||||
|
#if !defined(TEST_SHOW_SEQUENCES) || defined(__DOXYGEN__)
|
||||||
|
#define TEST_SHOW_SEQUENCES TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Derived constants and error checks. */
|
/* Derived constants and error checks. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
Loading…
Reference in New Issue