summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smpscheduler05
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-06-26 10:27:23 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-06-29 11:15:38 +0200
commit1dbce41bb85ddf1368779a85e3f29815f831094e (patch)
treeb2ee1f4aee2491eeaafb9dc9ea7b77b153116f4a /testsuites/smptests/smpscheduler05
parentAdd rtems_interrupt_server_handler_iterate() (diff)
downloadrtems-1dbce41bb85ddf1368779a85e3f29815f831094e.tar.bz2
smptests: Split smpscheduler03
Split smpscheduler03 to run the tests with only one processor. Update #3056.
Diffstat (limited to 'testsuites/smptests/smpscheduler05')
-rw-r--r--testsuites/smptests/smpscheduler05/Makefile.am19
-rw-r--r--testsuites/smptests/smpscheduler05/init.c51
-rw-r--r--testsuites/smptests/smpscheduler05/smpscheduler05.doc11
-rw-r--r--testsuites/smptests/smpscheduler05/smpscheduler05.scn2
4 files changed, 83 insertions, 0 deletions
diff --git a/testsuites/smptests/smpscheduler05/Makefile.am b/testsuites/smptests/smpscheduler05/Makefile.am
new file mode 100644
index 0000000000..72e54ab863
--- /dev/null
+++ b/testsuites/smptests/smpscheduler05/Makefile.am
@@ -0,0 +1,19 @@
+rtems_tests_PROGRAMS = smpscheduler05
+smpscheduler05_SOURCES = init.c ../smpscheduler03/test.c
+
+dist_rtems_tests_DATA = smpscheduler05.scn smpscheduler05.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 = $(smpscheduler05_OBJECTS)
+LINK_LIBS = $(smpscheduler05_LDLIBS)
+
+smpscheduler05$(EXEEXT): $(smpscheduler05_OBJECTS) $(smpscheduler05_DEPENDENCIES)
+ @rm -f smpscheduler05$(EXEEXT)
+ $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
diff --git a/testsuites/smptests/smpscheduler05/init.c b/testsuites/smptests/smpscheduler05/init.c
new file mode 100644
index 0000000000..83a9786e58
--- /dev/null
+++ b/testsuites/smptests/smpscheduler05/init.c
@@ -0,0 +1,51 @@
+/*
+ * Copyright (c) 2014, 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 <rtems.h>
+#include <rtems/test.h>
+
+void Init(rtems_task_argument arg);
+
+const char rtems_test_name[] = "SMPSCHEDULER 5";
+
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+
+#define CONFIGURE_MAXIMUM_PROCESSORS 1
+
+#define CONFIGURE_SCHEDULER_SIMPLE_SMP
+
+#include <rtems/scheduler.h>
+
+RTEMS_SCHEDULER_CONTEXT_SIMPLE_SMP(a);
+
+#define CONFIGURE_SCHEDULER_CONTROLS \
+ RTEMS_SCHEDULER_CONTROL_SIMPLE_SMP(a, rtems_build_name('T', 'E', 'S', 'T'))
+
+#define CONFIGURE_SMP_SCHEDULER_ASSIGNMENTS \
+ RTEMS_SCHEDULER_ASSIGN(0, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY)
+
+#define CONFIGURE_MAXIMUM_TASKS 3
+
+#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/smpscheduler05/smpscheduler05.doc b/testsuites/smptests/smpscheduler05/smpscheduler05.doc
new file mode 100644
index 0000000000..7589164b18
--- /dev/null
+++ b/testsuites/smptests/smpscheduler05/smpscheduler05.doc
@@ -0,0 +1,11 @@
+This file describes the directives and concepts tested by this test set.
+
+test set name: smpscheduler05
+
+directives:
+
+ - Scheduler operations.
+
+concepts:
+
+ - Ensure that the scheduler operations basically work.
diff --git a/testsuites/smptests/smpscheduler05/smpscheduler05.scn b/testsuites/smptests/smpscheduler05/smpscheduler05.scn
new file mode 100644
index 0000000000..27ea755c9f
--- /dev/null
+++ b/testsuites/smptests/smpscheduler05/smpscheduler05.scn
@@ -0,0 +1,2 @@
+*** BEGIN OF TEST SMPSCHEDULER 5 ***
+*** END OF TEST SMPSCHEDULER 5 ***