From 1461b648b7fc53b903c07da49df1bf24d96e8dca Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 5 May 2014 08:12:52 +1000 Subject: testsuite: Add a per BSP test check for tests not to build. Provide a file per BSP to list tests that do not build for a BSP. This change removes the BSP_SMALL_MEMORY hack from the code. That hack was a mistake. Provide configuration files for each BSP with tests that cannot build. --- testsuites/automake/test-subdirs.am | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 testsuites/automake/test-subdirs.am (limited to 'testsuites/automake') diff --git a/testsuites/automake/test-subdirs.am b/testsuites/automake/test-subdirs.am new file mode 100644 index 0000000000..35d6c81e52 --- /dev/null +++ b/testsuites/automake/test-subdirs.am @@ -0,0 +1,35 @@ +## Borrowed from automake/subdir.am which borrowed automake-1.4 and adapted to RTEMS + +## NOTE: This is a temporary work-around until automake is removed from RTEMS. +## It is a hack within many hacks and is designed to keep the source as clean +## as possible. + +all-local: + @set fnord $(MAKEFLAGS); amf=$$2; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + if test "$$target" = "all-local-am"; then \ + target="all-am"; \ + fi; \ + if test "$$target" = "all-local"; then \ + target="all"; \ + fi; \ + tdata="$(top_srcdir)/../../c/src/lib/libbsp/$(RTEMS_CPU)/$(RTEMS_BSP_FAMILY)/make/custom/$(RTEMS_BSP)-testsuite.tcfg"; \ + if test -f "$$tdata"; then \ + vtdata="$(RTEMS_CPU)/$(RTEMS_BSP_FAMILY)/make/custom/$(RTEMS_BSP)-testsuite.cfg"; \ + else \ + vtdata="all tests"; \ + fi; \ + echo "BSP Testsuite Data: $$vtdata"; \ + list=`$(top_srcdir)/../../tools/build/rtems-test-check \ + $$tdata $(RTEMS_BSP) $(_SUBDIRS)`; \ + for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" != "."; then \ + local_target="$$target"; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ + fi; \ + done; test -z "$$fail" + +include $(top_srcdir)/../automake/subdirs.am -- cgit v1.2.3