summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-06 07:56:17 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-06 09:06:20 +0100
commit7b00c2fac57740963d3c4d8bf1cf5eab3a31f22e (patch)
tree51fa24406cfa7db08a25dc1d7588f4854c7ad3f9 /testsuites/libtests
parentfsjffs2gc01: Fix sporadic test failures (diff)
downloadrtems-7b00c2fac57740963d3c4d8bf1cf5eab3a31f22e.tar.bz2
tests: Use <tmacros.h> in all tests
Update #3170. Update #3199.
Diffstat (limited to 'testsuites/libtests')
-rw-r--r--testsuites/libtests/complex/Makefile.am2
-rw-r--r--testsuites/libtests/complex/init.c15
-rw-r--r--testsuites/libtests/math/Makefile.am2
-rw-r--r--testsuites/libtests/math/init.c15
-rw-r--r--testsuites/libtests/mathf/Makefile.am2
-rw-r--r--testsuites/libtests/mathf/init.c15
-rw-r--r--testsuites/libtests/mathl/Makefile.am2
-rw-r--r--testsuites/libtests/mathl/init.c6
8 files changed, 28 insertions, 31 deletions
diff --git a/testsuites/libtests/complex/Makefile.am b/testsuites/libtests/complex/Makefile.am
index 7861d4a437..a992d68079 100644
--- a/testsuites/libtests/complex/Makefile.am
+++ b/testsuites/libtests/complex/Makefile.am
@@ -12,6 +12,8 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../automake/compile.am
include $(top_srcdir)/../automake/leaf.am
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+
if HAS_COMPLEX
complex_LDADD = -lm
diff --git a/testsuites/libtests/complex/init.c b/testsuites/libtests/complex/init.c
index 58e2549bf2..185b38f8f3 100644
--- a/testsuites/libtests/complex/init.c
+++ b/testsuites/libtests/complex/init.c
@@ -22,13 +22,6 @@
#include "config.h"
#endif
-#if __rtems__
-#include <bsp.h> /* for device driver prototypes */
-#include <rtems/test.h>
-
-const char rtems_test_name[] = "COMPLEX";
-#endif
-
#include <stdio.h>
#include <stdlib.h>
@@ -37,6 +30,10 @@ extern void docomplexf(void);
extern void docomplexl(void);
#if __rtems__
+#include <tmacros.h>
+
+const char rtems_test_name[] = "COMPLEX";
+
/* NOTICE: the clock driver is explicitly disabled */
#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
@@ -60,14 +57,14 @@ int main( void )
{
#if __rtems__
rtems_print_printer_fprintf_putc(&rtems_test_printer);
- rtems_test_begin();
+ TEST_BEGIN();
#endif
docomplex();
docomplexf();
docomplexl();
#if __rtems__
- rtems_test_end();
+ TEST_END();
#endif
exit( 0 );
}
diff --git a/testsuites/libtests/math/Makefile.am b/testsuites/libtests/math/Makefile.am
index 835bd931a5..ec5c327d24 100644
--- a/testsuites/libtests/math/Makefile.am
+++ b/testsuites/libtests/math/Makefile.am
@@ -7,6 +7,8 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../automake/compile.am
include $(top_srcdir)/../automake/leaf.am
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+
math_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/math
math_LDADD = -lm
diff --git a/testsuites/libtests/math/init.c b/testsuites/libtests/math/init.c
index f8c9649e8e..824644f03d 100644
--- a/testsuites/libtests/math/init.c
+++ b/testsuites/libtests/math/init.c
@@ -22,23 +22,16 @@
#include "config.h"
#endif
-/*
- * @fixme This test should use the test macros but the include paths are
- * are wrong in the build system.
- */
-#if __rtems__
-#include <bsp.h> /* for device driver prototypes */
-#include <rtems/test.h>
-
-const char rtems_test_name[] = "MATH";
-#endif
-
#include <stdio.h>
#include <stdlib.h>
extern void domath(void);
#if __rtems__
+#include <tmacros.h>
+
+const char rtems_test_name[] = "MATH";
+
/* NOTICE: the clock driver is explicitly disabled */
#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
diff --git a/testsuites/libtests/mathf/Makefile.am b/testsuites/libtests/mathf/Makefile.am
index e4bd7ba10c..f17f17c450 100644
--- a/testsuites/libtests/mathf/Makefile.am
+++ b/testsuites/libtests/mathf/Makefile.am
@@ -7,6 +7,8 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../automake/compile.am
include $(top_srcdir)/../automake/leaf.am
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+
mathf_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/math
mathf_LDADD = -lm
diff --git a/testsuites/libtests/mathf/init.c b/testsuites/libtests/mathf/init.c
index 333c038221..143ac63f1a 100644
--- a/testsuites/libtests/mathf/init.c
+++ b/testsuites/libtests/mathf/init.c
@@ -22,19 +22,16 @@
#include "config.h"
#endif
-#if __rtems__
-#include <bsp.h> /* for device driver prototypes */
-#include <rtems/test.h>
-
-const char rtems_test_name[] = "MATHF";
-#endif
-
#include <stdio.h>
#include <stdlib.h>
extern void domathf(void);
#if __rtems__
+#include <tmacros.h>
+
+const char rtems_test_name[] = "MATHF";
+
/* NOTICE: the clock driver is explicitly disabled */
#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
@@ -60,13 +57,13 @@ int main( void )
{
#if __rtems__
rtems_print_printer_fprintf_putc(&rtems_test_printer);
- rtems_test_begin();
+ TEST_BEGIN();
#endif
domathf();
#if __rtems__
- rtems_test_end();
+ TEST_END();
#endif
exit( 0 );
}
diff --git a/testsuites/libtests/mathl/Makefile.am b/testsuites/libtests/mathl/Makefile.am
index b7a823460c..9dba9a115d 100644
--- a/testsuites/libtests/mathl/Makefile.am
+++ b/testsuites/libtests/mathl/Makefile.am
@@ -12,6 +12,8 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../automake/compile.am
include $(top_srcdir)/../automake/leaf.am
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+
mathl_LDADD = -lm
LINK_OBJS = $(mathl_OBJECTS) $(mathl_LDADD)
diff --git a/testsuites/libtests/mathl/init.c b/testsuites/libtests/mathl/init.c
index 4bb3b08c7f..af5eb9b4a5 100644
--- a/testsuites/libtests/mathl/init.c
+++ b/testsuites/libtests/mathl/init.c
@@ -35,6 +35,8 @@ const char rtems_test_name[] = "MATHL";
extern void domathl(void);
#if __rtems__
+#include <tmacros.h>
+
/* NOTICE: the clock driver is explicitly disabled */
#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
@@ -60,13 +62,13 @@ int main( void )
{
#if __rtems__
rtems_print_printer_fprintf_putc(&rtems_test_printer);
- rtems_test_begin();
+ TEST_BEGIN();
#endif
domathl();
#if __rtems__
- rtems_test_end();
+ TEST_END();
#endif
exit( 0 );
}