summaryrefslogtreecommitdiffstats
path: root/c/src/tests
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-05-17 22:15:56 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-05-17 22:15:56 +0000
commitd785158293bbc681a90571341668786d4f46bd81 (patch)
tree3709a5d8a08b82fcb7c9affdcf30e1d45c5f7c8d /c/src/tests
parentSplit Task Manager into multiple files. Eventually this effort will (diff)
downloadrtems-d785158293bbc681a90571341668786d4f46bd81.tar.bz2
Added simple test to find minimum code size of executive with this BSP
and RTEMS configuration.
Diffstat (limited to '')
-rw-r--r--c/src/tests/samples/Makefile.in2
-rw-r--r--c/src/tests/samples/minimum/Makefile.in74
-rw-r--r--c/src/tests/samples/minimum/init.c36
-rw-r--r--c/src/tests/samples/minimum/minimum.doc13
-rw-r--r--c/src/tests/samples/minimum/minimum.scn1
5 files changed, 125 insertions, 1 deletions
diff --git a/c/src/tests/samples/Makefile.in b/c/src/tests/samples/Makefile.in
index d8aef81719..67460699e4 100644
--- a/c/src/tests/samples/Makefile.in
+++ b/c/src/tests/samples/Makefile.in
@@ -32,7 +32,7 @@ MP_TESTS = $(MP_TESTS_$(HAS_MP)_V)
FP_TESTS = paranoia
-SUB_DIRS=hello ticker base_sp unlimited \
+SUB_DIRS=hello ticker base_sp unlimited minimum \
$(MP_TESTS) $(CPLUSPLUS_TESTS) $(FP_TESTS)
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
diff --git a/c/src/tests/samples/minimum/Makefile.in b/c/src/tests/samples/minimum/Makefile.in
new file mode 100644
index 0000000000..9e5ad49cfa
--- /dev/null
+++ b/c/src/tests/samples/minimum/Makefile.in
@@ -0,0 +1,74 @@
+#
+# $Id$
+#
+
+@SET_MAKE@
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+top_builddir = ../../../../..
+subdir = c/src/tests/samples/minimum
+
+INSTALL = @INSTALL@
+
+RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
+PROJECT_ROOT = @PROJECT_ROOT@
+
+VPATH = @srcdir@
+
+SAMPLE=minimum
+PGM=${ARCH}/$(SAMPLE).exe
+
+MANAGERS=io
+
+# C source names, if any, go here -- minus the .c
+C_PIECES=init
+C_FILES=$(C_PIECES:%=%.c)
+C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
+
+H_FILES=
+
+DOCTYPES=doc scn
+DOCS=$(DOCTYPES:%=$(SAMPLE).%)
+
+SRCS=$(DOCS) $(C_FILES) $(H_FILES)
+OBJS=$(C_O_FILES)
+
+PRINT_SRCS=$(DOCS)
+
+PGM=${ARCH}/$(SAMPLE).exe
+
+include $(RTEMS_ROOT)/make/custom/${RTEMS_BSP}.cfg
+include $(RTEMS_ROOT)/make/leaf.cfg
+
+#
+# (OPTIONAL) Add local stuff here using +=
+#
+
+DEFINES +=
+CPPFLAGS +=
+CFLAGS +=
+
+LD_PATHS +=
+LD_LIBS +=
+LDFLAGS +=
+
+#
+# Add your list of files to delete here. The config files
+# already know how to delete some stuff, so you may want
+# to just run 'make clean' first to see what gets missed.
+# 'make clobber' already includes 'make clean'
+#
+
+CLEAN_ADDITIONS +=
+CLOBBER_ADDITIONS +=
+
+all: ${ARCH} $(SRCS) $(PGM)
+ $(INSTALL_VARIANT) -m 555 ${PGM} ${PROJECT_RELEASE}/tests
+ $(INSTALL_VARIANT) -m 555 ${PGM} ${PROJECT_RELEASE}/samples
+
+${PGM}: $(OBJS) $(LINK_FILES)
+ $(make-exe)
+
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ cd $(top_builddir) \
+ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
diff --git a/c/src/tests/samples/minimum/init.c b/c/src/tests/samples/minimum/init.c
new file mode 100644
index 0000000000..7474b4a1c2
--- /dev/null
+++ b/c/src/tests/samples/minimum/init.c
@@ -0,0 +1,36 @@
+/* Init
+ *
+ *
+ * Input parameters: NONE
+ *
+ * Output parameters: NONE
+ *
+ * COPYRIGHT (c) 1989-1998.
+ * On-Line Applications Research Corporation (OAR).
+ * Copyright assigned to U.S. Government, 1994.
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.OARcorp.com/rtems/license.html.
+ *
+ * $Id$
+ */
+
+#include <rtems.h>
+
+rtems_task Init(
+ rtems_task_argument ignored
+)
+{
+}
+
+/* configuration information */
+
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_INIT
+
+#include <confdefs.h>
+
+/* global variables */
+
diff --git a/c/src/tests/samples/minimum/minimum.doc b/c/src/tests/samples/minimum/minimum.doc
new file mode 100644
index 0000000000..496f3569e5
--- /dev/null
+++ b/c/src/tests/samples/minimum/minimum.doc
@@ -0,0 +1,13 @@
+#
+# $Id$
+#
+# COPYRIGHT (c) 1989-1998.
+# On-Line Applications Research Corporation (OAR).
+# Copyright assigned to U.S. Government, 1994.
+#
+# The license and distribution terms for this file may be
+# found in the file LICENSE in this distribution or at
+# http://www.OARcorp.com/rtems/license.html.
+#
+
+
diff --git a/c/src/tests/samples/minimum/minimum.scn b/c/src/tests/samples/minimum/minimum.scn
new file mode 100644
index 0000000000..610f3d4ddd
--- /dev/null
+++ b/c/src/tests/samples/minimum/minimum.scn
@@ -0,0 +1 @@
+*** TEST SHOULD NOT BE RUN ***