summaryrefslogtreecommitdiff
path: root/dist/tests/cxx/parser/validation
diff options
context:
space:
mode:
Diffstat (limited to 'dist/tests/cxx/parser/validation')
-rw-r--r--dist/tests/cxx/parser/validation/built-in/makefile32
-rw-r--r--dist/tests/cxx/parser/validation/built-in/nmakefile27
-rw-r--r--dist/tests/cxx/parser/validation/makefile23
-rw-r--r--dist/tests/cxx/parser/validation/nmakefile19
4 files changed, 101 insertions, 0 deletions
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 $@"