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 /tests | |
parent | 54d64e7ca405e06d2328e6207bb4752e20577e50 (diff) |
Move tests and examples to build2 as subprojects
Diffstat (limited to 'tests')
-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 |
9 files changed, 54 insertions, 0 deletions
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 |