[Bug 1549] It must be easier to write tests
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Thu Jun 10 13:39:45 UTC 2010
https://www.rtems.org/bugzilla/show_bug.cgi?id=1549
--- Comment #1 from Sebastian Huber <sebastian.huber at embedded-brains.de> 2010-06-10 08:39:44 ---
Here is a random Makefile.am from a test program with comments added:
# (1) The MANAGERS hack has little impact on code size, we can simply omit
# this. The new GSoC project for sequenced initialization will make this
# superfluous anyway.
MANAGERS = io semaphore clock
rtems_tests_PROGRAMS = sp01
sp01_SOURCES = init.c task1.c system.h
# Not needed see post above
dist_rtems_tests_DATA = sp01.scn
dist_rtems_tests_DATA += sp01.doc
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP at .cfg
include $(top_srcdir)/../automake/compile.am
include $(top_srcdir)/../automake/leaf.am
# See (1).
sp01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
# This is a hack. It makes it hard (impossible?) to add multiple programs to
# one Makefile.am. I guess the reason for this is the creation of *.ralf files
# via $(bsp-post-link). There has to be another way to create *.ralf files
# from *.exe files. It would be better to have a shell script for this and not
# a make function. The *.ralf files created this way are also not that useful
# since they won't be installed. Only the *.exe files will be installed.
LINK_OBJS = $(sp01_OBJECTS) $(sp01_LDADD)
LINK_LIBS = $(sp01_LDLIBS)
sp01$(EXEEXT): $(sp01_OBJECTS) $(sp01_DEPENDENCIES)
@rm -f sp01$(EXEEXT)
$(make-exe)
# Hack end.
include $(top_srcdir)/../automake/local.am
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list