diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-09-10 22:51:55 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-09-13 12:42:16 +0300 |
commit | 193efb512ffbc2231ef5c48699d51fbae3f3f9f1 (patch) | |
tree | c497c71ddd3d6a6f5fb1fbfe3bc2675f99f21b89 | |
parent | 54d64e7ca405e06d2328e6207bb4752e20577e50 (diff) |
Move tests and examples to build2 as subprojects
-rw-r--r-- | buildfile | 5 | ||||
-rw-r--r-- | examples/.gitignore | 1 | ||||
-rw-r--r-- | examples/build/.gitignore | 1 | ||||
-rw-r--r-- | examples/build/bootstrap.build | 5 | ||||
-rw-r--r-- | examples/build/root.build | 10 | ||||
-rw-r--r-- | examples/buildfile | 5 | ||||
-rw-r--r-- | examples/hybrid/buildfile | 4 | ||||
-rw-r--r-- | examples/inheritance/buildfile | 4 | ||||
-rw-r--r-- | examples/performance/buildfile | 4 | ||||
-rw-r--r-- | examples/persistence/buildfile | 4 | ||||
-rw-r--r-- | examples/processing/buildfile | 4 | ||||
-rw-r--r-- | examples/roundtrip/buildfile | 4 | ||||
-rw-r--r-- | examples/xhtml/buildfile | 3 | ||||
-rw-r--r-- | tests/.gitignore | 1 | ||||
-rw-r--r-- | tests/build/.gitignore | 1 | ||||
-rw-r--r-- | tests/build/bootstrap.build | 5 | ||||
-rw-r--r-- | tests/build/root.build | 10 | ||||
-rw-r--r-- | tests/buildfile | 3 | ||||
-rw-r--r-- | tests/parser/buildfile | 3 | ||||
-rw-r--r-- | tests/roundtrip/.gitignore | 5 | ||||
-rw-r--r-- | tests/roundtrip/buildfile | 23 | ||||
-rw-r--r-- | tests/serializer/buildfile | 3 |
22 files changed, 106 insertions, 2 deletions
@@ -2,11 +2,12 @@ # copyright : Copyright (c) 2013-2014 Code Synthesis Tools CC # license : MIT; see accompanying LICENSE file -d = xml/ doc/ +d = xml/ examples/ tests/ doc/ ./: $d doc{INSTALL LICENSE NEWS README version} file{manifest} include $d -# Don't install tests or the INSTALL file. +# Don't install examples, tests or the INSTALL file. # +dir{examples/}: install = false dir{tests/}: install = false doc{INSTALL}@./: install = false diff --git a/examples/.gitignore b/examples/.gitignore new file mode 100644 index 0000000..e54525b --- /dev/null +++ b/examples/.gitignore @@ -0,0 +1 @@ +driver diff --git a/examples/build/.gitignore b/examples/build/.gitignore new file mode 100644 index 0000000..225c27f --- /dev/null +++ b/examples/build/.gitignore @@ -0,0 +1 @@ +config.build diff --git a/examples/build/bootstrap.build b/examples/build/bootstrap.build new file mode 100644 index 0000000..2c2de24 --- /dev/null +++ b/examples/build/bootstrap.build @@ -0,0 +1,5 @@ +project = # Unnamed subproject. + +using config +using dist +using test diff --git a/examples/build/root.build b/examples/build/root.build new file mode 100644 index 0000000..1f7c350 --- /dev/null +++ b/examples/build/root.build @@ -0,0 +1,10 @@ +cxx.std = 11 + +using cxx + +hxx{*}: extension = +cxx{*}: extension = cxx + +# Every exe{} in this subproject is by default a test. +# +exe{*}: test = true diff --git a/examples/buildfile b/examples/buildfile new file mode 100644 index 0000000..b089d1b --- /dev/null +++ b/examples/buildfile @@ -0,0 +1,5 @@ +d = hybrid/ inheritance/ performance/ persistence/ processing/ roundtrip/ \ + xhtml/ + +./: $d +include $d diff --git a/examples/hybrid/buildfile b/examples/hybrid/buildfile new file mode 100644 index 0000000..44709de --- /dev/null +++ b/examples/hybrid/buildfile @@ -0,0 +1,4 @@ +import libs = libstudxml%lib{studxml} + +exe{driver}: cxx{dom driver} $libs +exe{driver}: test.input = position.xml diff --git a/examples/inheritance/buildfile b/examples/inheritance/buildfile new file mode 100644 index 0000000..a0f2d9c --- /dev/null +++ b/examples/inheritance/buildfile @@ -0,0 +1,4 @@ +import libs = libstudxml%lib{studxml} + +exe{driver}: cxx{driver position} $libs +exe{driver}: test.input = position.xml diff --git a/examples/performance/buildfile b/examples/performance/buildfile new file mode 100644 index 0000000..e4a33b3 --- /dev/null +++ b/examples/performance/buildfile @@ -0,0 +1,4 @@ +import libs = libstudxml%lib{studxml} + +exe{driver}: cxx{driver time} $libs +exe{driver}: test.input = test-50k.xml diff --git a/examples/persistence/buildfile b/examples/persistence/buildfile new file mode 100644 index 0000000..a0f2d9c --- /dev/null +++ b/examples/persistence/buildfile @@ -0,0 +1,4 @@ +import libs = libstudxml%lib{studxml} + +exe{driver}: cxx{driver position} $libs +exe{driver}: test.input = position.xml diff --git a/examples/processing/buildfile b/examples/processing/buildfile new file mode 100644 index 0000000..138992c --- /dev/null +++ b/examples/processing/buildfile @@ -0,0 +1,4 @@ +import libs = libstudxml%lib{studxml} + +exe{driver}: cxx{driver} $libs +exe{driver}: test.input = position.xml diff --git a/examples/roundtrip/buildfile b/examples/roundtrip/buildfile new file mode 100644 index 0000000..138992c --- /dev/null +++ b/examples/roundtrip/buildfile @@ -0,0 +1,4 @@ +import libs = libstudxml%lib{studxml} + +exe{driver}: cxx{driver} $libs +exe{driver}: test.input = position.xml diff --git a/examples/xhtml/buildfile b/examples/xhtml/buildfile new file mode 100644 index 0000000..3f8cb7d --- /dev/null +++ b/examples/xhtml/buildfile @@ -0,0 +1,3 @@ +import libs = libstudxml%lib{studxml} + +exe{driver}: cxx{driver} $libs diff --git a/tests/.gitignore b/tests/.gitignore new file mode 100644 index 0000000..e54525b --- /dev/null +++ b/tests/.gitignore @@ -0,0 +1 @@ +driver diff --git a/tests/build/.gitignore b/tests/build/.gitignore new file mode 100644 index 0000000..225c27f --- /dev/null +++ b/tests/build/.gitignore @@ -0,0 +1 @@ +config.build diff --git a/tests/build/bootstrap.build b/tests/build/bootstrap.build new file mode 100644 index 0000000..2c2de24 --- /dev/null +++ b/tests/build/bootstrap.build @@ -0,0 +1,5 @@ +project = # Unnamed subproject. + +using config +using dist +using test diff --git a/tests/build/root.build b/tests/build/root.build new file mode 100644 index 0000000..1f7c350 --- /dev/null +++ b/tests/build/root.build @@ -0,0 +1,10 @@ +cxx.std = 11 + +using cxx + +hxx{*}: extension = +cxx{*}: extension = cxx + +# Every exe{} in this subproject is by default a test. +# +exe{*}: test = true diff --git a/tests/buildfile b/tests/buildfile new file mode 100644 index 0000000..2058084 --- /dev/null +++ b/tests/buildfile @@ -0,0 +1,3 @@ +d = parser/ roundtrip/ serializer/ +./: $d +include $d diff --git a/tests/parser/buildfile b/tests/parser/buildfile new file mode 100644 index 0000000..3f8cb7d --- /dev/null +++ b/tests/parser/buildfile @@ -0,0 +1,3 @@ +import libs = libstudxml%lib{studxml} + +exe{driver}: cxx{driver} $libs diff --git a/tests/roundtrip/.gitignore b/tests/roundtrip/.gitignore new file mode 100644 index 0000000..cee4aa4 --- /dev/null +++ b/tests/roundtrip/.gitignore @@ -0,0 +1,5 @@ +attr-driver +char-driver +fup1-driver +fup2-driver +ns-driver diff --git a/tests/roundtrip/buildfile b/tests/roundtrip/buildfile new file mode 100644 index 0000000..9dd9858 --- /dev/null +++ b/tests/roundtrip/buildfile @@ -0,0 +1,23 @@ +# @@ Hack until build2 supports multiple tests. Also remove .gitignore. +# +./: exe{attr-driver} exe{char-driver} exe{fup1-driver} exe{fup2-driver} \ + exe{ns-driver} + +exe{attr-driver}: cxx{driver} +exe{attr-driver}: test.roundtrip = attribute.xml + +exe{char-driver}: cxx{driver} +exe{char-driver}: test.roundtrip = characters.xml + +exe{fup1-driver}: cxx{driver} +exe{fup1-driver}: test.roundtrip = followup-1.xml + +exe{fup2-driver}: cxx{driver} +exe{fup2-driver}: test.roundtrip = followup-2.xml + +exe{ns-driver}: cxx{driver} +exe{ns-driver}: test.roundtrip = namespace.xml + +import libs = libstudxml%lib{studxml} + +exe{attr-driver char-driver fup1-driver fup2-driver ns-driver}: $libs diff --git a/tests/serializer/buildfile b/tests/serializer/buildfile new file mode 100644 index 0000000..3f8cb7d --- /dev/null +++ b/tests/serializer/buildfile @@ -0,0 +1,3 @@ +import libs = libstudxml%lib{studxml} + +exe{driver}: cxx{driver} $libs |