diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-10-20 10:50:22 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-10-20 10:50:22 +0200 |
commit | b135374d5e40df21871b3e0c9efc69ba2d8361cb (patch) | |
tree | 0f53bf8253ff16b7ce176f47b56e4ac879a768c6 /dist | |
parent | 54ed525e5b8680e8737b7750fd73458d9ef1d30c (diff) |
Add tests to the distribution
The distribution makefiles for tests are automatically generated by
the build/dist script. nmakefiles are not yet generated.
Diffstat (limited to 'dist')
-rw-r--r-- | dist/makefile | 5 | ||||
-rw-r--r-- | dist/nmakefile | 8 | ||||
-rw-r--r-- | dist/tests/cxx/hybrid/makefile | 45 | ||||
-rw-r--r-- | dist/tests/cxx/hybrid/nmakefile | 41 | ||||
-rw-r--r-- | dist/tests/cxx/makefile | 19 | ||||
-rw-r--r-- | dist/tests/cxx/nmakefile | 17 | ||||
-rw-r--r-- | dist/tests/cxx/parser/makefile | 62 | ||||
-rw-r--r-- | dist/tests/cxx/parser/nmakefile | 52 | ||||
-rw-r--r-- | dist/tests/cxx/parser/validation/built-in/makefile | 32 | ||||
-rw-r--r-- | dist/tests/cxx/parser/validation/built-in/nmakefile | 27 | ||||
-rw-r--r-- | dist/tests/cxx/parser/validation/makefile | 23 | ||||
-rw-r--r-- | dist/tests/cxx/parser/validation/nmakefile | 19 | ||||
-rw-r--r-- | dist/tests/cxx/serializer/makefile | 57 | ||||
-rw-r--r-- | dist/tests/cxx/serializer/nmakefile | 53 | ||||
-rw-r--r-- | dist/tests/cxx/serializer/validation/built-in/makefile | 17 | ||||
-rw-r--r-- | dist/tests/cxx/serializer/validation/built-in/nmakefile | 13 | ||||
-rw-r--r-- | dist/tests/cxx/serializer/validation/makefile | 21 | ||||
-rw-r--r-- | dist/tests/cxx/serializer/validation/nmakefile | 17 | ||||
-rw-r--r-- | dist/tests/makefile | 11 | ||||
-rw-r--r-- | dist/tests/nmakefile | 9 |
20 files changed, 546 insertions, 2 deletions
diff --git a/dist/makefile b/dist/makefile index df44825..1d06b13 100644 --- a/dist/makefile +++ b/dist/makefile @@ -1,8 +1,13 @@ dirs := libxsde examples +ifneq ($(filter $(MAKECMDGOALS),test clean),) +dirs += tests +endif + .PHONY: all $(dirs) all: $(dirs) +tests: libxsde examples: libxsde $(dirs): diff --git a/dist/nmakefile b/dist/nmakefile index f532175..0a17809 100644 --- a/dist/nmakefile +++ b/dist/nmakefile @@ -4,6 +4,10 @@ all: @for %i in ( $(dirs) ) do \ @cmd /c "cd %i & $(MAKE) /nologo /f nmakefile" -test clean: - @for %i in ( $(dirs) ) do \ +test: + @for %i in ( $(dirs) tests ) do \ +@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile $@" + +clean: + @for %i in ( $(dirs) tests ) do \ @cmd /c "cd %i & $(MAKE) /nologo /f nmakefile $@" diff --git a/dist/tests/cxx/hybrid/makefile b/dist/tests/cxx/hybrid/makefile new file mode 100644 index 0000000..e5b2328 --- /dev/null +++ b/dist/tests/cxx/hybrid/makefile @@ -0,0 +1,45 @@ +root := ../../.. + +include $(root)/build/config.make + +dirs := sequences + +ifeq ($(XSDE_POLYMORPHIC),y) +dirs += polymorphism/multischema +endif + +ifeq ($(XSDE_STL),y) +ifeq ($(XSDE_STL_ITERATOR),y) +dirs += iterator +endif +endif + +ifeq ($(XSDE_IOSTREAM),y) +dirs += built-in default list recursive test-template union + +ifeq ($(XSDE_CDR),y) +dirs += binary/cdr +endif + +ifeq ($(XSDE_XDR),y) +dirs += binary/xdr +endif + +ifeq ($(XSDE_PARSER_VALIDATION),y) +dirs += choice +endif + +endif # XSDE_IOSTREAM + + +.PHONY: all $(dirs) + +all: $(dirs) + +$(dirs): + @$(MAKE) -C $@ $(MAKECMDGOALS) + +makefile: ; +%.make:: ; + +%:: $(dirs) ; diff --git a/dist/tests/cxx/hybrid/nmakefile b/dist/tests/cxx/hybrid/nmakefile new file mode 100644 index 0000000..76ffe27 --- /dev/null +++ b/dist/tests/cxx/hybrid/nmakefile @@ -0,0 +1,41 @@ +root = ..\..\.. + +!include $(root)\build\config.nmake + +dirs = sequences + +!if "$(XSDE_POLYMORPHIC)" == "y" +dirs = $(dirs) polymorphism\multischema +!endif + +!if "$(XSDE_STL)" == "y" +!if "$(XSDE_STL_ITERATOR)" == "y" +dirs = $(dirs) iterator +!endif +!endif + +!if "$(XSDE_IOSTREAM)" == "y" +dirs = $(dirs) built-in default list recursive test-template union + +!if "$(XSDE_CDR)" == "y" +dirs = $(dirs) binary/cdr +!endif + +!if "$(XSDE_XDR)" == "y" +dirs = $(dirs) binary/xdr +!endif + +!if "$(XSDE_PARSER_VALIDATION)" == "y" +dirs = $(dirs) choice +!endif + +!endif # XSDE_IOSTREAM + + +all: + @for %i in ( $(dirs) ) do \ +@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile" + +test clean: + @for %i in ( $(dirs) ) do \ +@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile $@" diff --git a/dist/tests/cxx/makefile b/dist/tests/cxx/makefile new file mode 100644 index 0000000..daff807 --- /dev/null +++ b/dist/tests/cxx/makefile @@ -0,0 +1,19 @@ +root := ../.. + +include $(root)/build/config.make + +dirs := string hybrid parser serializer + +ifeq ($(XSDE_POLYMORPHIC),y) +dirs += hashmap +endif + +.PHONY: all $(dirs) + +all: $(dirs) + +$(dirs): + @$(MAKE) -C $@ $(MAKECMDGOALS) + +makefile: ; +% :: $(dirs) ; diff --git a/dist/tests/cxx/nmakefile b/dist/tests/cxx/nmakefile new file mode 100644 index 0000000..355fd06 --- /dev/null +++ b/dist/tests/cxx/nmakefile @@ -0,0 +1,17 @@ +root = ..\.. + +!include $(root)\build\config.nmake + +dirs = string hybrid parser serializer + +!if "$(XSDE_POLYMORPHIC)" == "y" +dirs = $(dirs) hashmap +!endif + +all: + @for %i in ( $(dirs) ) do \ +@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile" + +test clean: + @for %i in ( $(dirs) ) do \ +@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile $@" diff --git a/dist/tests/cxx/parser/makefile b/dist/tests/cxx/parser/makefile new file mode 100644 index 0000000..0b02e4d --- /dev/null +++ b/dist/tests/cxx/parser/makefile @@ -0,0 +1,62 @@ +root := ../../.. + +include $(root)/build/config.make + +dirs := generated-impl duplicate + +ifeq ($(XSDE_IOSTREAM),y) +ifeq ($(XSDE_EXCEPTIONS),y) +dirs += \ +built-in \ +recursive \ +test-template \ +union + +ifeq ($(XSDE_REUSE_STYLE),tiein) +dirs += \ +enumeration \ +list +endif + +endif # EXCEPTIONS + +ifeq ($(XSDE_POLYMORPHIC),y) +ifeq ($(XSDE_REUSE_STYLE),tiein) +dirs += polymorphism +endif +endif + +dirs += reset + +endif # IOSTREAM + +ifeq ($(XSDE_PARSER_VALIDATION),y) +dirs += validation + +ifeq ($(XSDE_IOSTREAM),y) + +ifeq ($(XSDE_EXCEPTIONS),y) +dirs += error-handling/exceptions +else +dirs += error-handling/codes +endif + +ifeq ($(XSDE_EXCEPTIONS),y) +dirs += name-clash/inheritance +endif + +endif +endif + + +.PHONY: all $(dirs) + +all: $(dirs) + +$(dirs): + @$(MAKE) -C $@ $(MAKECMDGOALS) + +makefile: ; +%.make:: ; + +%:: $(dirs) ; diff --git a/dist/tests/cxx/parser/nmakefile b/dist/tests/cxx/parser/nmakefile new file mode 100644 index 0000000..c78237d --- /dev/null +++ b/dist/tests/cxx/parser/nmakefile @@ -0,0 +1,52 @@ +root = ..\..\.. + +!include $(root)\build\config.nmake + +dirs = generated-impl duplicate + +!if "$(XSDE_IOSTREAM)" == "y" +!if "$(XSDE_EXCEPTIONS)" == "y" +dirs = $(dirs) built-in recursive test-template union + +!if "$(XSDE_REUSE_STYLE)" == "tiein" +dirs = $(dirs) enumeration list +!endif + +!endif # EXCEPTIONS + +!if "$(XSDE_POLYMORPHIC)" == "y" +!if "$(XSDE_REUSE_STYLE)" == "tiein" +dirs = $(dirs) polymorphism +!endif +!endif + +dirs = $(dirs) reset + +!endif # IOSTREAM + +!if "$(XSDE_PARSER_VALIDATION)" == "y" +dirs = $(dirs) validation + +!if "$(XSDE_IOSTREAM)" == "y" + +!if "$(XSDE_EXCEPTIONS)" == "y" +dirs = $(dirs) error-handling\exceptions +!else +dirs = $(dirs) error-handling\codes +!endif + +!if "$(XSDE_EXCEPTIONS)" == "y" +dirs = $(dirs) name-clash\inheritance +!endif + +!endif +!endif + + +all: + @for %i in ( $(dirs) ) do \ +@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile" + +test clean: + @for %i in ( $(dirs) ) do \ +@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile $@" diff --git a/dist/tests/cxx/parser/validation/built-in/makefile b/dist/tests/cxx/parser/validation/built-in/makefile new file mode 100644 index 0000000..2b5fabd --- /dev/null +++ b/dist/tests/cxx/parser/validation/built-in/makefile @@ -0,0 +1,32 @@ +root := ../../../../.. + +include $(root)/build/config.make + +dirs := binary boolean byte date-time float int integer qname short \ +string uri + +ifeq ($(XSDE_IOSTREAM),y) +ifeq ($(XSDE_EXCEPTIONS),y) +ifeq ($(XSDE_REUSE_STYLE),tiein) +dirs += any-type +endif +endif +endif + +ifeq ($(XSDE_LONGLONG),y) +dirs += long-long +else +dirs += long +endif + +.PHONY: all $(dirs) + +all: $(dirs) + +$(dirs): + @$(MAKE) -C $@ $(MAKECMDGOALS) + +makefile: ; +%.make:: ; + +%:: $(dirs) ; diff --git a/dist/tests/cxx/parser/validation/built-in/nmakefile b/dist/tests/cxx/parser/validation/built-in/nmakefile new file mode 100644 index 0000000..eea94f5 --- /dev/null +++ b/dist/tests/cxx/parser/validation/built-in/nmakefile @@ -0,0 +1,27 @@ +root = ..\..\..\..\.. + +!include $(root)\build\config.nmake + +dirs = binary boolean byte date-time float int integer qname short string uri + +!if "$(XSDE_IOSTREAM)" == "y" +!if "$(XSDE_EXCEPTIONS)" == "y" +!if "$(XSDE_REUSE_STYLE)" == "tiein" +dirs = $(dirs) any-type +!endif +!endif +!endif + +!if "$(XSDE_LONGLONG)" == "y" +dirs = $(dirs) long-long +!else +dirs = $(dirs) long +!endif + +all: + @for %i in ( $(dirs) ) do \ +@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile" + +test clean: + @for %i in ( $(dirs) ) do \ +@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile $@" diff --git a/dist/tests/cxx/parser/validation/makefile b/dist/tests/cxx/parser/validation/makefile new file mode 100644 index 0000000..6a5148c --- /dev/null +++ b/dist/tests/cxx/parser/validation/makefile @@ -0,0 +1,23 @@ +root := ../../../.. + +include $(root)/build/config.make + +dirs := built-in + +ifeq ($(XSDE_IOSTREAM),y) +ifeq ($(XSDE_EXCEPTIONS),y) +dirs += all any attribute choice restriction sequence +endif +endif + +.PHONY: all $(dirs) + +all: $(dirs) + +$(dirs): + @$(MAKE) -C $@ $(MAKECMDGOALS) + +makefile: ; +%.make:: ; + +%:: $(dirs) ; diff --git a/dist/tests/cxx/parser/validation/nmakefile b/dist/tests/cxx/parser/validation/nmakefile new file mode 100644 index 0000000..d754c86 --- /dev/null +++ b/dist/tests/cxx/parser/validation/nmakefile @@ -0,0 +1,19 @@ +root = ..\..\..\.. + +!include $(root)\build\config.nmake + +dirs = built-in + +!if "$(XSDE_IOSTREAM)" == "y" +!if "$(XSDE_EXCEPTIONS)" == "y" +dirs = $(dirs) all any attribute choice restriction sequence +!endif +!endif + +all: + @for %i in ( $(dirs) ) do \ +@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile" + +test clean: + @for %i in ( $(dirs) ) do \ +@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile $@" diff --git a/dist/tests/cxx/serializer/makefile b/dist/tests/cxx/serializer/makefile new file mode 100644 index 0000000..57e4ad4 --- /dev/null +++ b/dist/tests/cxx/serializer/makefile @@ -0,0 +1,57 @@ +root := ../../.. + +include $(root)/build/config.make + +dirs := generated-driver + +ifeq ($(XSDE_IOSTREAM),y) + +dirs += \ +all \ +built-in \ +choice \ +recursive \ +reset \ +restriction \ +sequence \ +test-template \ +wildcard + +ifeq ($(XSDE_EXCEPTIONS),y) +dirs += error-handling/exceptions +else +dirs += error-handling/codes +endif + +ifeq ($(XSDE_REUSE_STYLE),tiein) +dirs += \ +complex \ +enumeration \ +list \ +union +endif + +ifeq ($(XSDE_POLYMORPHIC),y) +ifeq ($(XSDE_REUSE_STYLE),tiein) +dirs += polymorphism +endif +endif + +endif # XSDE_IOSTREAM + +ifeq ($(XSDE_SERIALIZER_VALIDATION),y) +dirs += validation +endif + + +.PHONY: all $(dirs) + +all: $(dirs) + +$(dirs): + @$(MAKE) -C $@ $(MAKECMDGOALS) + +makefile: ; +%.make:: ; + +%:: $(dirs) ; diff --git a/dist/tests/cxx/serializer/nmakefile b/dist/tests/cxx/serializer/nmakefile new file mode 100644 index 0000000..eaadc84 --- /dev/null +++ b/dist/tests/cxx/serializer/nmakefile @@ -0,0 +1,53 @@ +root = ..\..\.. + +!include $(root)\build\config.nmake + +dirs = generated-driver + +!if "$(XSDE_IOSTREAM)" == "y" + +dirs = $(dirs) \ +all \ +built-in \ +choice \ +recursive \ +reset \ +restriction \ +sequence \ +test-template \ +wildcard + +!if "$(XSDE_EXCEPTIONS)" == "y" +dirs = $(dirs) error-handling\exceptions +!else +dirs = $(dirs) error-handling\codes +!endif + +!if "$(XSDE_REUSE_STYLE)" == "tiein" +dirs = $(dirs) \ +complex \ +enumeration \ +list \ +union +!endif + +!if "$(XSDE_POLYMORPHIC)" == "y" +!if "$(XSDE_REUSE_STYLE)" == "tiein" +dirs = $(dirs) polymorphism +!endif +!endif + +!endif # XSDE_IOSTREAM + +!if "$(XSDE_SERIALIZER_VALIDATION)" == "y" +dirs = $(dirs) validation +!endif + + +all: + @for %i in ( $(dirs) ) do \ +@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile" + +test clean: + @for %i in ( $(dirs) ) do \ +@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile $@" diff --git a/dist/tests/cxx/serializer/validation/built-in/makefile b/dist/tests/cxx/serializer/validation/built-in/makefile new file mode 100644 index 0000000..93fde86 --- /dev/null +++ b/dist/tests/cxx/serializer/validation/built-in/makefile @@ -0,0 +1,17 @@ +root := ../../../../.. + +include $(root)/build/config.make + +dirs := date-time decimal integer qname string + +.PHONY: all $(dirs) + +all: $(dirs) + +$(dirs): + @$(MAKE) -C $@ $(MAKECMDGOALS) + +makefile: ; +%.make:: ; + +%:: $(dirs) ; diff --git a/dist/tests/cxx/serializer/validation/built-in/nmakefile b/dist/tests/cxx/serializer/validation/built-in/nmakefile new file mode 100644 index 0000000..dc2b3c9 --- /dev/null +++ b/dist/tests/cxx/serializer/validation/built-in/nmakefile @@ -0,0 +1,13 @@ +root = ..\..\..\..\.. + +!include $(root)\build\config.nmake + +dirs = date-time decimal integer qname string + +all: + @for %i in ( $(dirs) ) do \ +@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile" + +test clean: + @for %i in ( $(dirs) ) do \ +@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile $@" diff --git a/dist/tests/cxx/serializer/validation/makefile b/dist/tests/cxx/serializer/validation/makefile new file mode 100644 index 0000000..565e67b --- /dev/null +++ b/dist/tests/cxx/serializer/validation/makefile @@ -0,0 +1,21 @@ +root := ../../../.. + +include $(root)/build/config.make + +dirs := built-in + +ifeq ($(XSDE_IOSTREAM),y) +dirs += any attribute choice element sequence +endif + +.PHONY: all $(dirs) + +all: $(dirs) + +$(dirs): + @$(MAKE) -C $@ $(MAKECMDGOALS) + +makefile: ; +%.make:: ; + +%:: $(dirs) ; diff --git a/dist/tests/cxx/serializer/validation/nmakefile b/dist/tests/cxx/serializer/validation/nmakefile new file mode 100644 index 0000000..4cd2812 --- /dev/null +++ b/dist/tests/cxx/serializer/validation/nmakefile @@ -0,0 +1,17 @@ +root = ..\..\..\.. + +!include $(root)\build\config.nmake + +dirs = built-in + +!if "$(XSDE_IOSTREAM)" == "y" +dirs = $(dirs) any attribute choice element sequence +!endif + +all: + @for %i in ( $(dirs) ) do \ +@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile" + +test clean: + @for %i in ( $(dirs) ) do \ +@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile $@" diff --git a/dist/tests/makefile b/dist/tests/makefile new file mode 100644 index 0000000..5b8947e --- /dev/null +++ b/dist/tests/makefile @@ -0,0 +1,11 @@ +dirs := cxx + +.PHONY: all $(dirs) + +all: $(dirs) + +$(dirs): + $(MAKE) -C $@ $(MAKECMDGOALS) + +makefile: ; +% :: $(dirs) ; diff --git a/dist/tests/nmakefile b/dist/tests/nmakefile new file mode 100644 index 0000000..1f3db7e --- /dev/null +++ b/dist/tests/nmakefile @@ -0,0 +1,9 @@ +dirs = cxx + +all: + @for %i in ( $(dirs) ) do \ +@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile" + +test clean: + @for %i in ( $(dirs) ) do \ +@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile $@" |