[PATCH] spcoverage: Remove test program

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Jul 14 13:02:13 UTC 2021


This program contained an optional test case.  It was enabled by the
RTEMS_COVERAGE define.  The functions under test are not implemented by RTEMS.
---
 spec/build/testsuites/sptests/grp.yml        |  2 -
 spec/build/testsuites/sptests/spcoverage.yml | 19 --------
 testsuites/sptests/Makefile.am               |  9 ----
 testsuites/sptests/configure.ac              |  1 -
 testsuites/sptests/spcoverage/init.c         | 50 --------------------
 testsuites/sptests/spcoverage/spcoverage.doc | 22 ---------
 testsuites/sptests/spcoverage/spcoverage.scn |  3 --
 7 files changed, 106 deletions(-)
 delete mode 100644 spec/build/testsuites/sptests/spcoverage.yml
 delete mode 100644 testsuites/sptests/spcoverage/init.c
 delete mode 100644 testsuites/sptests/spcoverage/spcoverage.doc
 delete mode 100644 testsuites/sptests/spcoverage/spcoverage.scn

diff --git a/spec/build/testsuites/sptests/grp.yml b/spec/build/testsuites/sptests/grp.yml
index ac2f6626cd..7e7618789c 100644
--- a/spec/build/testsuites/sptests/grp.yml
+++ b/spec/build/testsuites/sptests/grp.yml
@@ -188,8 +188,6 @@ links:
   uid: spconsole01
 - role: build-dependency
   uid: spcontext01
-- role: build-dependency
-  uid: spcoverage
 - role: build-dependency
   uid: spcpucounter01
 - role: build-dependency
diff --git a/spec/build/testsuites/sptests/spcoverage.yml b/spec/build/testsuites/sptests/spcoverage.yml
deleted file mode 100644
index 74705a976e..0000000000
--- a/spec/build/testsuites/sptests/spcoverage.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
-build-type: test-program
-cflags: []
-copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
-cppflags: []
-cxxflags: []
-enabled-by: true
-features: c cprogram
-includes: []
-ldflags: []
-links: []
-source:
-- testsuites/sptests/spcoverage/init.c
-stlib: []
-target: testsuites/sptests/spcoverage.exe
-type: build
-use-after: []
-use-before: []
diff --git a/testsuites/sptests/Makefile.am b/testsuites/sptests/Makefile.am
index 8a9d968925..07d7ee04e9 100644
--- a/testsuites/sptests/Makefile.am
+++ b/testsuites/sptests/Makefile.am
@@ -753,15 +753,6 @@ spcontext01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_spcontext01) \
 	$(support_includes)
 endif
 
-if TEST_spcoverage
-sp_tests += spcoverage
-sp_screens += spcoverage/spcoverage.scn
-sp_docs += spcoverage/spcoverage.doc
-spcoverage_SOURCES = spcoverage/init.c
-spcoverage_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_spcoverage) \
-	$(support_includes) -I$(top_srcdir)/include
-endif
-
 if TEST_spcpucounter01
 sp_tests += spcpucounter01
 sp_screens += spcpucounter01/spcpucounter01.scn
diff --git a/testsuites/sptests/configure.ac b/testsuites/sptests/configure.ac
index 4ca55e6a36..36d4519da3 100644
--- a/testsuites/sptests/configure.ac
+++ b/testsuites/sptests/configure.ac
@@ -121,7 +121,6 @@ RTEMS_TEST_CHECK([spconfig01])
 RTEMS_TEST_CHECK([spconfig02])
 RTEMS_TEST_CHECK([spconsole01])
 RTEMS_TEST_CHECK([spcontext01])
-RTEMS_TEST_CHECK([spcoverage])
 RTEMS_TEST_CHECK([spcpucounter01])
 RTEMS_TEST_CHECK([spcpuset01])
 RTEMS_TEST_CHECK([spcxx01])
diff --git a/testsuites/sptests/spcoverage/init.c b/testsuites/sptests/spcoverage/init.c
deleted file mode 100644
index 7c8e509d74..0000000000
--- a/testsuites/sptests/spcoverage/init.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- *  COPYRIGHT (c) 1989-2012.
- *  On-Line Applications Research Corporation (OAR).
- *
- *  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[] = "SPCOVERAGE";
-
-/* forward declarations to avoid warnings */
-rtems_task Init(rtems_task_argument argument);
-
-rtems_task Init(
-  rtems_task_argument ignored
-)
-{
-  TEST_BEGIN();
-
-  puts( "Init - If coverage enabled, call coverage marker methods" );
-  #if defined(RTEMS_COVERAGE)
-    start_coverage();
-    end_coverage();
-  #endif
-
-  TEST_END();
-  rtems_test_exit(0);
-}
-
-/* configuration information */
-
-#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
-#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_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>
-
-/* global variables */
diff --git a/testsuites/sptests/spcoverage/spcoverage.doc b/testsuites/sptests/spcoverage/spcoverage.doc
deleted file mode 100644
index 55b605179f..0000000000
--- a/testsuites/sptests/spcoverage/spcoverage.doc
+++ /dev/null
@@ -1,22 +0,0 @@
-#  COPYRIGHT (c) 1989-2009.
-#  On-Line Applications Research Corporation (OAR).
-#
-#  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.
-#
-
-This file describes the directives and concepts tested by this test set.
-
-test set name:  spcoverage
-
-directives:
-
-  start_coverage
-  end_coverage
-  
-
-concepts:
-
-+ Ensure that the special empty methods used to mark the beginning and
-  end of the code being coverage tested is executed also.
diff --git a/testsuites/sptests/spcoverage/spcoverage.scn b/testsuites/sptests/spcoverage/spcoverage.scn
deleted file mode 100644
index a65ca5fb74..0000000000
--- a/testsuites/sptests/spcoverage/spcoverage.scn
+++ /dev/null
@@ -1,3 +0,0 @@
-*** TEST COVERAGE MARKERS ***
-Init - If coverage enabled, call coverage marker methods
-*** END OF TEST COVERAGE MARKERS ***
-- 
2.26.2



More information about the devel mailing list