diff options
author | Chris Johns <chrisj@rtems.org> | 2014-05-05 08:12:52 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-05-05 10:24:41 +1000 |
commit | 1461b648b7fc53b903c07da49df1bf24d96e8dca (patch) | |
tree | fd5016bd1a13b7d19cf3cbb93a6c084a69e92835 /testsuites/automake/test-subdirs.am | |
parent | b0e83e1207ea626242df3516f164cbb86e5bb047 (diff) |
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.
Diffstat (limited to '')
-rw-r--r-- | testsuites/automake/test-subdirs.am | 35 |
1 files changed, 35 insertions, 0 deletions
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 |