diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-10 14:39:41 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-17 09:17:36 +0100 |
commit | 840ae715a9c1e45b31d7a493e9b5c4113e17bf62 (patch) | |
tree | 9c101a3db9e8b236df0b060d21d93758843182ef /testsuites/support | |
parent | 2a37016b89f6e13665a353c6f4ba45235bf29ddd (diff) |
sapi: Add <rtems/test.h>
Provide support functions to print the begin/end of test message.
Provide a test fatal extension to print out profiling reports in the
future.
Diffstat (limited to 'testsuites/support')
-rw-r--r-- | testsuites/support/include/buffer_test_io.h | 16 | ||||
-rw-r--r-- | testsuites/support/include/tmacros.h | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/testsuites/support/include/buffer_test_io.h b/testsuites/support/include/buffer_test_io.h index 03d5419b76..3cadc481f5 100644 --- a/testsuites/support/include/buffer_test_io.h +++ b/testsuites/support/include/buffer_test_io.h @@ -5,6 +5,8 @@ #ifndef __BUFFER_TEST_IO_h #define __BUFFER_TEST_IO_h +#include <rtems/test.h> + #ifdef __cplusplus extern "C" { #endif @@ -54,6 +56,10 @@ extern "C" { do { \ } while (0) + #define TEST_BEGIN() rtems_test_begink() + + #define TEST_END() rtems_test_endk() + /* * BUFFER TEST OUTPUT */ @@ -152,6 +158,10 @@ extern "C" { fflush(stdout); \ } while (0) + #define TEST_BEGIN() rtems_test_begin() + + #define TEST_END() rtems_test_end() + /* * USE IPRINT */ @@ -197,6 +207,12 @@ extern "C" { fflush(stdout); \ } while (0) + #define TEST_BEGIN() \ + rtems_test_begin_with_plugin((rtems_printk_plugin_t) fiprintf, stderr) + + #define TEST_END() \ + rtems_test_end_with_plugin((rtems_printk_plugin_t) fiprintf, stderr) + #endif #ifdef __cplusplus diff --git a/testsuites/support/include/tmacros.h b/testsuites/support/include/tmacros.h index c8ace400b5..ce835fe954 100644 --- a/testsuites/support/include/tmacros.h +++ b/testsuites/support/include/tmacros.h @@ -22,6 +22,7 @@ #include <stdlib.h> #include <string.h> #include <rtems/error.h> +#include <rtems/test.h> #include <rtems/score/threaddispatch.h> #ifdef __cplusplus |