diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-29 12:09:32 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-02 07:46:17 +0200 |
commit | 981eed21761cd0036f0ac61042adea09d8a595a2 (patch) | |
tree | 199a5373376456b11fa6a9c61cfe3a80b024e49b /testsuites | |
parent | posix: Avoid Giant lock in _POSIX_signals_Send() (diff) | |
download | rtems-981eed21761cd0036f0ac61042adea09d8a595a2.tar.bz2 |
score: Add dummy Strong APA scheduler
Start with a copy of the Priority SMP scheduler implementation.
Update #2510.
Diffstat (limited to '')
-rw-r--r-- | testsuites/smptests/Makefile.am | 1 | ||||
-rw-r--r-- | testsuites/smptests/configure.ac | 1 | ||||
-rw-r--r-- | testsuites/smptests/smpstrongapa01/Makefile.am | 19 | ||||
-rw-r--r-- | testsuites/smptests/smpstrongapa01/init.c | 54 | ||||
-rw-r--r-- | testsuites/smptests/smpstrongapa01/smpstrongapa01.doc | 11 | ||||
-rw-r--r-- | testsuites/smptests/smpstrongapa01/smpstrongapa01.scn | 2 |
6 files changed, 88 insertions, 0 deletions
diff --git a/testsuites/smptests/Makefile.am b/testsuites/smptests/Makefile.am index 610f3137c4..8ab12dc1fd 100644 --- a/testsuites/smptests/Makefile.am +++ b/testsuites/smptests/Makefile.am @@ -38,6 +38,7 @@ SUBDIRS += smpscheduler02 SUBDIRS += smpscheduler03 SUBDIRS += smpschedsem01 SUBDIRS += smpsignal01 +SUBDIRS += smpstrongapa01 SUBDIRS += smpswitchextension01 SUBDIRS += smpthreadlife01 SUBDIRS += smpunsupported01 diff --git a/testsuites/smptests/configure.ac b/testsuites/smptests/configure.ac index a89b796afe..3611e326ad 100644 --- a/testsuites/smptests/configure.ac +++ b/testsuites/smptests/configure.ac @@ -57,6 +57,7 @@ AM_CONDITIONAL(HAS_CPUSET,test x"${ac_cv_header_sys_cpuset_h}" = x"yes") # Explicitly list all Makefiles here AC_CONFIG_FILES([Makefile +smpstrongapa01/Makefile smp01/Makefile smp02/Makefile smp03/Makefile diff --git a/testsuites/smptests/smpstrongapa01/Makefile.am b/testsuites/smptests/smpstrongapa01/Makefile.am new file mode 100644 index 0000000000..b51c779f96 --- /dev/null +++ b/testsuites/smptests/smpstrongapa01/Makefile.am @@ -0,0 +1,19 @@ +rtems_tests_PROGRAMS = smpstrongapa01 +smpstrongapa01_SOURCES = init.c + +dist_rtems_tests_DATA = smpstrongapa01.scn smpstrongapa01.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 = $(smpstrongapa01_OBJECTS) +LINK_LIBS = $(smpstrongapa01_LDLIBS) + +smpstrongapa01$(EXEEXT): $(smpstrongapa01_OBJECTS) $(smpstrongapa01_DEPENDENCIES) + @rm -f smpstrongapa01$(EXEEXT) + $(make-exe) + +include $(top_srcdir)/../automake/local.am diff --git a/testsuites/smptests/smpstrongapa01/init.c b/testsuites/smptests/smpstrongapa01/init.c new file mode 100644 index 0000000000..5594d74c61 --- /dev/null +++ b/testsuites/smptests/smpstrongapa01/init.c @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2016 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[] = "SMPSTRONGAPA 1"; + +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_SMP_APPLICATION + +#define CONFIGURE_SMP_MAXIMUM_PROCESSORS 2 + +#define CONFIGURE_SCHEDULER_STRONG_APA + +#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/smptests/smpstrongapa01/smpstrongapa01.doc b/testsuites/smptests/smpstrongapa01/smpstrongapa01.doc new file mode 100644 index 0000000000..9e9376227a --- /dev/null +++ b/testsuites/smptests/smpstrongapa01/smpstrongapa01.doc @@ -0,0 +1,11 @@ +This file describes the directives and concepts tested by this test set. + +test set name: smpstrongapa01 + +directives: + + TBD + +concepts: + + TBD diff --git a/testsuites/smptests/smpstrongapa01/smpstrongapa01.scn b/testsuites/smptests/smpstrongapa01/smpstrongapa01.scn new file mode 100644 index 0000000000..d6f5f5467a --- /dev/null +++ b/testsuites/smptests/smpstrongapa01/smpstrongapa01.scn @@ -0,0 +1,2 @@ +*** BEGIN OF TEST SMPSTRONGAPA 1 *** +*** END OF TEST SMPSTRONGAPA 1 *** |