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/linpack | |
parent | arm: Optimize context switch (diff) | |
download | rtems-002768254683ffe4a6614fe35254cf9dab88c6d0.tar.bz2 |
benchmarks: Add benchmark templates
Update #2958.
Diffstat (limited to 'testsuites/benchmarks/linpack')
-rw-r--r-- | testsuites/benchmarks/linpack/Makefile.am | 19 | ||||
-rw-r--r-- | testsuites/benchmarks/linpack/init.c | 48 | ||||
-rw-r--r-- | testsuites/benchmarks/linpack/linpack.doc | 11 | ||||
-rw-r--r-- | testsuites/benchmarks/linpack/linpack.scn | 0 |
4 files changed, 78 insertions, 0 deletions
diff --git a/testsuites/benchmarks/linpack/Makefile.am b/testsuites/benchmarks/linpack/Makefile.am new file mode 100644 index 0000000000..d947cd626b --- /dev/null +++ b/testsuites/benchmarks/linpack/Makefile.am @@ -0,0 +1,19 @@ +rtems_tests_PROGRAMS = linpack +linpack_SOURCES = init.c + +dist_rtems_tests_DATA = linpack.scn linpack.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 = $(linpack_OBJECTS) +LINK_LIBS = $(linpack_LDLIBS) + +linpack$(EXEEXT): $(linpack_OBJECTS) $(linpack_DEPENDENCIES) + @rm -f linpack$(EXEEXT) + $(make-exe) + +include $(top_srcdir)/../automake/local.am diff --git a/testsuites/benchmarks/linpack/init.c b/testsuites/benchmarks/linpack/init.c new file mode 100644 index 0000000000..8b67e52360 --- /dev/null +++ b/testsuites/benchmarks/linpack/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[] = "LINPACK"; + +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> diff --git a/testsuites/benchmarks/linpack/linpack.doc b/testsuites/benchmarks/linpack/linpack.doc new file mode 100644 index 0000000000..af3805855e --- /dev/null +++ b/testsuites/benchmarks/linpack/linpack.doc @@ -0,0 +1,11 @@ +This file describes the directives and concepts tested by this test set. + +test set name: linpack + +directives: + + TBD + +concepts: + + TBD diff --git a/testsuites/benchmarks/linpack/linpack.scn b/testsuites/benchmarks/linpack/linpack.scn new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/testsuites/benchmarks/linpack/linpack.scn |