[rtems commit] Move test support from sapi to libmisc/testsupport

Sebastian Huber sebh at rtems.org
Thu Mar 5 07:45:57 UTC 2015


Module:    rtems
Branch:    master
Commit:    18d0a49129e8e70ba2c2bf169f91c92e93dabd84
Changeset: http://git.rtems.org/rtems/commit/?id=18d0a49129e8e70ba2c2bf169f91c92e93dabd84

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Mar  5 08:44:59 2015 +0100

Move test support from sapi to libmisc/testsupport

---

 cpukit/Makefile.am                                        | 3 +++
 cpukit/libmisc/Makefile.am                                | 6 ++++++
 cpukit/{sapi/include/rtems => libmisc/testsupport}/test.h | 0
 cpukit/{sapi/src => libmisc/testsupport}/testbeginend.c   | 0
 cpukit/{sapi/src => libmisc/testsupport}/testextension.c  | 0
 cpukit/preinstall.am                                      | 4 ++++
 cpukit/sapi/Makefile.am                                   | 3 ---
 cpukit/sapi/preinstall.am                                 | 4 ----
 cpukit/wrapup/Makefile.am                                 | 1 +
 9 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/cpukit/Makefile.am b/cpukit/Makefile.am
index 9a78587..10b59db 100644
--- a/cpukit/Makefile.am
+++ b/cpukit/Makefile.am
@@ -207,6 +207,9 @@ endif
 ## stringto
 include_rtems_HEADERS += libmisc/stringto/stringto.h
 
+## testsupport
+include_rtems_HEADERS += libmisc/testsupport/test.h
+
 ## i2c
 include_rtems_HEADERS += libi2c/libi2c.h
 
diff --git a/cpukit/libmisc/Makefile.am b/cpukit/libmisc/Makefile.am
index 8fc208f..61def14 100644
--- a/cpukit/libmisc/Makefile.am
+++ b/cpukit/libmisc/Makefile.am
@@ -157,6 +157,12 @@ libstringto_a_SOURCES = stringto/stringtodouble.c stringto/stringtofloat.c \
     stringto/stringtounsignedchar.c stringto/stringtounsignedlong.c \
     stringto/stringtounsignedlonglong.c
 
+## testsupport
+noinst_LIBRARIES += libtestsupport.a
+libtestsupport_a_SOURCES =
+libtestsupport_a_SOURCES += testsupport/testbeginend.c
+libtestsupport_a_SOURCES += testsupport/testextension.c
+
 ## fsmount
 noinst_LIBRARIES += libfsmount.a
 libfsmount_a_SOURCES = fsmount/fsmount.c fsmount/fsmount.h
diff --git a/cpukit/sapi/include/rtems/test.h b/cpukit/libmisc/testsupport/test.h
similarity index 100%
rename from cpukit/sapi/include/rtems/test.h
rename to cpukit/libmisc/testsupport/test.h
diff --git a/cpukit/sapi/src/testbeginend.c b/cpukit/libmisc/testsupport/testbeginend.c
similarity index 100%
rename from cpukit/sapi/src/testbeginend.c
rename to cpukit/libmisc/testsupport/testbeginend.c
diff --git a/cpukit/sapi/src/testextension.c b/cpukit/libmisc/testsupport/testextension.c
similarity index 100%
rename from cpukit/sapi/src/testextension.c
rename to cpukit/libmisc/testsupport/testextension.c
diff --git a/cpukit/preinstall.am b/cpukit/preinstall.am
index 527142b..63e3903 100644
--- a/cpukit/preinstall.am
+++ b/cpukit/preinstall.am
@@ -480,6 +480,10 @@ $(PROJECT_INCLUDE)/rtems/stringto.h: libmisc/stringto/stringto.h $(PROJECT_INCLU
 	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/stringto.h
 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/stringto.h
 
+$(PROJECT_INCLUDE)/rtems/test.h: libmisc/testsupport/test.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
+	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/test.h
+PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/test.h
+
 $(PROJECT_INCLUDE)/rtems/libi2c.h: libi2c/libi2c.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
 	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/libi2c.h
 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/libi2c.h
diff --git a/cpukit/sapi/Makefile.am b/cpukit/sapi/Makefile.am
index a7eaad5..070800e 100644
--- a/cpukit/sapi/Makefile.am
+++ b/cpukit/sapi/Makefile.am
@@ -19,7 +19,6 @@ include_rtems_HEADERS += include/rtems/rbheap.h
 include_rtems_HEADERS += include/rtems/rbtree.h
 include_rtems_HEADERS += include/rtems/scheduler.h
 include_rtems_HEADERS += include/rtems/sptables.h
-include_rtems_HEADERS += include/rtems/test.h
 include_rtems_HEADERS += include/rtems/timespec.h
 
 EXTRA_DIST = include/rtems/README
@@ -40,8 +39,6 @@ libsapi_a_SOURCES += src/delayticks.c
 libsapi_a_SOURCES += src/delaynano.c
 libsapi_a_SOURCES += src/profilingiterate.c
 libsapi_a_SOURCES += src/profilingreportxml.c
-libsapi_a_SOURCES += src/testbeginend.c
-libsapi_a_SOURCES += src/testextension.c
 libsapi_a_CPPFLAGS = $(AM_CPPFLAGS)
 
 include $(srcdir)/preinstall.am
diff --git a/cpukit/sapi/preinstall.am b/cpukit/sapi/preinstall.am
index f8593f4..3f864bb 100644
--- a/cpukit/sapi/preinstall.am
+++ b/cpukit/sapi/preinstall.am
@@ -82,10 +82,6 @@ $(PROJECT_INCLUDE)/rtems/sptables.h: include/rtems/sptables.h $(PROJECT_INCLUDE)
 	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/sptables.h
 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/sptables.h
 
-$(PROJECT_INCLUDE)/rtems/test.h: include/rtems/test.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
-	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/test.h
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/test.h
-
 $(PROJECT_INCLUDE)/rtems/timespec.h: include/rtems/timespec.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
 	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/timespec.h
 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/timespec.h
diff --git a/cpukit/wrapup/Makefile.am b/cpukit/wrapup/Makefile.am
index 6fbddb0..c45bf28 100644
--- a/cpukit/wrapup/Makefile.am
+++ b/cpukit/wrapup/Makefile.am
@@ -56,6 +56,7 @@ TMP_LIBS += ../libmisc/libmouse.a
 TMP_LIBS += ../libmisc/libmw-fb.a
 TMP_LIBS += ../libmisc/libredirector.a
 TMP_LIBS += ../libmisc/libstringto.a
+TMP_LIBS += ../libmisc/libtestsupport.a
 
 if LIBUTF8PROC
 TMP_LIBS += ../libmisc/libutf8proc.a




More information about the vc mailing list