From 44a6213c8eebf3f69712a5fba9a33bbb90a79023 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 10 Mar 2015 15:13:14 -0700 Subject: Let tests result in UNSUPPORTED; use that for unbuildable C++ cases --- Rules | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Rules') diff --git a/Rules b/Rules index 829beac..e237d03 100644 --- a/Rules +++ b/Rules @@ -198,6 +198,18 @@ $(objpfx)%.out: /dev/null $(objpfx)% # Make it 2nd arg for canned sequence. $(make-test-out) > $@; \ $(evaluate-test) +# tests-unsupported lists tests that we will not try to build at all in +# this configuration. Note this runs every time because it does not +# actually create its target. The dependency on Makefile is meant to +# ensure that it runs after a Makefile change to add a test to the list +# when it previously ran and produced a .out file (probably for a failure). +ifneq "$(strip $(tests-unsupported))" "" +$(tests-unsupported:%=$(objpfx)%.out): $(objpfx)%.out: Makefile + @rm -f $@ + $(..)scripts/evaluate-test.sh $(patsubst $(common-objpfx)%.out,%,$@) \ + 77 false false > $(@:.out=.test-result) +endif + endif # tests -- cgit v1.1