diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-03-28 13:11:22 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-03-29 07:29:01 +0200 |
commit | 002768254683ffe4a6614fe35254cf9dab88c6d0 (patch) | |
tree | 22eb9805e2dd702a0770c98320129488dd9e26e8 /testsuites/benchmarks/dhrystone | |
parent | arm: Optimize context switch (diff) | |
download | rtems-002768254683ffe4a6614fe35254cf9dab88c6d0.tar.bz2 |
benchmarks: Add benchmark templates
Update #2958.
Diffstat (limited to 'testsuites/benchmarks/dhrystone')
-rw-r--r-- | testsuites/benchmarks/dhrystone/Makefile.am | 19 | ||||
-rw-r--r-- | testsuites/benchmarks/dhrystone/dhrystone.doc | 11 | ||||
-rw-r--r-- | testsuites/benchmarks/dhrystone/dhrystone.scn | 0 | ||||
-rw-r--r-- | testsuites/benchmarks/dhrystone/init.c | 48 |
4 files changed, 78 insertions, 0 deletions
diff --git a/testsuites/benchmarks/dhrystone/Makefile.am b/testsuites/benchmarks/dhrystone/Makefile.am new file mode 100644 index 0000000000..0354012a4a --- /dev/null +++ b/testsuites/benchmarks/dhrystone/Makefile.am @@ -0,0 +1,19 @@ +rtems_tests_PROGRAMS = dhrystone +dhrystone_SOURCES = init.c + +dist_rtems_tests_DATA = dhrystone.scn dhrystone.doc + +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 + +LINK_OBJS = $(dhrystone_OBJECTS) +LINK_LIBS = $(dhrystone_LDLIBS) + +dhrystone$(EXEEXT): $(dhrystone_OBJECTS) $(dhrystone_DEPENDENCIES) + @rm -f dhrystone$(EXEEXT) + $(make-exe) + +include $(top_srcdir)/../automake/local.am diff --git a/testsuites/benchmarks/dhrystone/dhrystone.doc b/testsuites/benchmarks/dhrystone/dhrystone.doc new file mode 100644 index 0000000000..aac6f23bde --- /dev/null +++ b/testsuites/benchmarks/dhrystone/dhrystone.doc @@ -0,0 +1,11 @@ +This file describes the directives and concepts tested by this test set. + +test set name: dhrystone + +directives: + + TBD + +concepts: + + TBD diff --git a/testsuites/benchmarks/dhrystone/dhrystone.scn b/testsuites/benchmarks/dhrystone/dhrystone.scn new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/testsuites/benchmarks/dhrystone/dhrystone.scn diff --git a/testsuites/benchmarks/dhrystone/init.c b/testsuites/benchmarks/dhrystone/init.c new file mode 100644 index 0000000000..6e339d4580 --- /dev/null +++ b/testsuites/benchmarks/dhrystone/init.c @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2017 embedded brains GmbH. All rights reserved. + * + * embedded brains GmbH + * Dornierstr. 4 + * 82178 Puchheim + * Germany + * <rtems@embedded-brains.de> + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "tmacros.h" + +const char rtems_test_name[] = "DHRYSTONE"; + +static void test(void) +{ +} + +static void Init(rtems_task_argument arg) +{ + TEST_BEGIN(); + + test(); + + TEST_END(); + rtems_test_exit(0); +} + +#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER +#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER + +#define CONFIGURE_MAXIMUM_TASKS 1 + +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + +#define CONFIGURE_RTEMS_INIT_TASKS_TABLE + +#define CONFIGURE_INIT + +#include <rtems/confdefs.h> |