diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-10-16 10:43:59 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-10-16 10:43:59 +0200 |
commit | b83ab123bb6ba364e22e3665ffafb44686592de6 (patch) | |
tree | 4138be9880fd17cd80aac121df94e1efe40bfbee /tests/cxx/serializer/built-in/makefile | |
parent | 4ed219d64921e14b9809fd3a535f94fbe2c01d26 (diff) |
Rework the tests to conform to the uniform interface
Diffstat (limited to 'tests/cxx/serializer/built-in/makefile')
-rw-r--r-- | tests/cxx/serializer/built-in/makefile | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/tests/cxx/serializer/built-in/makefile b/tests/cxx/serializer/built-in/makefile index ba93a6d..c0f3c84 100644 --- a/tests/cxx/serializer/built-in/makefile +++ b/tests/cxx/serializer/built-in/makefile @@ -8,6 +8,8 @@ include $(dir $(lastword $(MAKEFILE_LIST)))../../../../build/bootstrap.make xsd := test.xsd cxx := driver.cxx +tests := 000 001 + obj := $(addprefix $(out_base)/,$(cxx:.cxx=.o) $(xsd:.xsd=-sskel.o)) dep := $(obj:.o=.o.d) @@ -40,15 +42,17 @@ $(out_base)/: $(driver) # Test. # -$(test): driver := $(driver) - -ifeq ($(xsde_longlong),y) -$(test): $(driver) $(src_base)/output-long-long - $(call message,test $$1,$$1 | diff -u $(src_base)/output-long-long -,$(driver)) -else -$(test): $(driver) $(src_base)/output-long - $(call message,test $$1,$$1 | diff -u $(src_base)/output-long -,$(driver)) -endif +# Test. 000 - long, 001 - long long; the test driver ignores one. The +# input files do not exist. +# +test_targets := $(addprefix $(out_base)/.test-,$(tests)) + +$(test): $(test_targets) +$(test_targets): driver := $(driver) + +.PHONY: $(out_base)/.test-% +$(out_base)/.test-%: $(driver) $(src_base)/test.xsd $(src_base)/test-%.std + $(call message,test $(out_base)/$*,$(driver) $(src_base)/test-$*.xml | diff -u $(src_base)/test-$*.std -) # Clean. |