From 0ed86c76239d4f2904ea4ae1a77902a9e0db2a6d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 1 Dec 2016 12:07:18 +0200 Subject: Move old tests to old-tests/ --- old-tests/cli/lib/libtest/build/bootstrap.build | 3 +++ old-tests/cli/lib/libtest/build/export.build | 6 ++++++ old-tests/cli/lib/libtest/build/root.build | 5 +++++ old-tests/cli/lib/libtest/buildfile | 2 ++ old-tests/cli/lib/libtest/test/base.cli | 7 +++++++ old-tests/cli/lib/libtest/test/buildfile | 20 ++++++++++++++++++++ old-tests/cli/lib/libtest/test/extra/test.cli | 11 +++++++++++ old-tests/cli/lib/libtest/test/test.cli | 9 +++++++++ old-tests/cli/lib/libtest/test/utility.cpp | 6 ++++++ old-tests/cli/lib/test/build/bootstrap.build | 3 +++ old-tests/cli/lib/test/build/root.build | 7 +++++++ old-tests/cli/lib/test/buildfile | 6 ++++++ old-tests/cli/lib/test/driver.C | 8 ++++++++ old-tests/cli/lib/test/test.cli | 5 +++++ old-tests/cli/simple/build/bootstrap.build | 3 +++ old-tests/cli/simple/build/root.build | 1 + old-tests/cli/simple/buildfile | 15 +++++++++++++++ old-tests/cli/simple/driver.cpp | 6 ++++++ old-tests/cli/simple/test.cli | 5 +++++ 19 files changed, 128 insertions(+) create mode 100644 old-tests/cli/lib/libtest/build/bootstrap.build create mode 100644 old-tests/cli/lib/libtest/build/export.build create mode 100644 old-tests/cli/lib/libtest/build/root.build create mode 100644 old-tests/cli/lib/libtest/buildfile create mode 100644 old-tests/cli/lib/libtest/test/base.cli create mode 100644 old-tests/cli/lib/libtest/test/buildfile create mode 100644 old-tests/cli/lib/libtest/test/extra/test.cli create mode 100644 old-tests/cli/lib/libtest/test/test.cli create mode 100644 old-tests/cli/lib/libtest/test/utility.cpp create mode 100644 old-tests/cli/lib/test/build/bootstrap.build create mode 100644 old-tests/cli/lib/test/build/root.build create mode 100644 old-tests/cli/lib/test/buildfile create mode 100644 old-tests/cli/lib/test/driver.C create mode 100644 old-tests/cli/lib/test/test.cli create mode 100644 old-tests/cli/simple/build/bootstrap.build create mode 100644 old-tests/cli/simple/build/root.build create mode 100644 old-tests/cli/simple/buildfile create mode 100644 old-tests/cli/simple/driver.cpp create mode 100644 old-tests/cli/simple/test.cli (limited to 'old-tests/cli') diff --git a/old-tests/cli/lib/libtest/build/bootstrap.build b/old-tests/cli/lib/libtest/build/bootstrap.build new file mode 100644 index 0000000..2e04406 --- /dev/null +++ b/old-tests/cli/lib/libtest/build/bootstrap.build @@ -0,0 +1,3 @@ +project = cli-lib-libtest +amalgamation = # Disabled. +using config diff --git a/old-tests/cli/lib/libtest/build/export.build b/old-tests/cli/lib/libtest/build/export.build new file mode 100644 index 0000000..e8b12b3 --- /dev/null +++ b/old-tests/cli/lib/libtest/build/export.build @@ -0,0 +1,6 @@ +$out_root/: +{ + include test/ +} + +export $out_root/test/lib{test} diff --git a/old-tests/cli/lib/libtest/build/root.build b/old-tests/cli/lib/libtest/build/root.build new file mode 100644 index 0000000..c9ff67d --- /dev/null +++ b/old-tests/cli/lib/libtest/build/root.build @@ -0,0 +1,5 @@ +using cxx + +hxx{*}: extension = +ixx{*}: extension = ipp +cxx{*}: extension = cpp diff --git a/old-tests/cli/lib/libtest/buildfile b/old-tests/cli/lib/libtest/buildfile new file mode 100644 index 0000000..7ea849d --- /dev/null +++ b/old-tests/cli/lib/libtest/buildfile @@ -0,0 +1,2 @@ +./: test/ +include test/ diff --git a/old-tests/cli/lib/libtest/test/base.cli b/old-tests/cli/lib/libtest/test/base.cli new file mode 100644 index 0000000..bbf9999 --- /dev/null +++ b/old-tests/cli/lib/libtest/test/base.cli @@ -0,0 +1,7 @@ +namespace test +{ + class base + { + bool --version; + }; +} diff --git a/old-tests/cli/lib/libtest/test/buildfile b/old-tests/cli/lib/libtest/test/buildfile new file mode 100644 index 0000000..6b0d9bd --- /dev/null +++ b/old-tests/cli/lib/libtest/test/buildfile @@ -0,0 +1,20 @@ +using cli + +lib{test}: cxx{utility} cli.cxx{test base} extra/cxx{test} +cli.cxx{test}: cli{test} +cli.cxx{base}: cli{base} + +cli.options += -I $src_root --include-with-brackets + +extra/: +{ + cxx{test} hxx{test}: cli{test} + cli.options += --include-prefix test/extra --guard-prefix TEST_EXTRA \ + --cli-namespace test::extra::cli +} + +cxx.poptions += -I$out_root -I$src_root +lib{test}: cxx.export.poptions = -I$out_root -I$src_root + +cli.options += --include-prefix test --guard-prefix TEST \ +--cli-namespace test::cli diff --git a/old-tests/cli/lib/libtest/test/extra/test.cli b/old-tests/cli/lib/libtest/test/extra/test.cli new file mode 100644 index 0000000..8408402 --- /dev/null +++ b/old-tests/cli/lib/libtest/test/extra/test.cli @@ -0,0 +1,11 @@ +namespace test +{ + namespace extra + { + class options + { + bool --help; + bool --version; + }; + } +} diff --git a/old-tests/cli/lib/libtest/test/test.cli b/old-tests/cli/lib/libtest/test/test.cli new file mode 100644 index 0000000..f19d56c --- /dev/null +++ b/old-tests/cli/lib/libtest/test/test.cli @@ -0,0 +1,9 @@ +include ; + +namespace test +{ + class options: base + { + bool --help; + }; +} diff --git a/old-tests/cli/lib/libtest/test/utility.cpp b/old-tests/cli/lib/libtest/test/utility.cpp new file mode 100644 index 0000000..7c59218 --- /dev/null +++ b/old-tests/cli/lib/libtest/test/utility.cpp @@ -0,0 +1,6 @@ +#include + +void +f () +{ +} diff --git a/old-tests/cli/lib/test/build/bootstrap.build b/old-tests/cli/lib/test/build/bootstrap.build new file mode 100644 index 0000000..db43826 --- /dev/null +++ b/old-tests/cli/lib/test/build/bootstrap.build @@ -0,0 +1,3 @@ +project = cli-lib-test +amalgamation = # Disabled. +using config diff --git a/old-tests/cli/lib/test/build/root.build b/old-tests/cli/lib/test/build/root.build new file mode 100644 index 0000000..636fd02 --- /dev/null +++ b/old-tests/cli/lib/test/build/root.build @@ -0,0 +1,7 @@ +using cxx + +hxx{*}: extension = h +ixx{*}: extension = inl +cxx{*}: extension = C + +using cli diff --git a/old-tests/cli/lib/test/buildfile b/old-tests/cli/lib/test/buildfile new file mode 100644 index 0000000..d3e784d --- /dev/null +++ b/old-tests/cli/lib/test/buildfile @@ -0,0 +1,6 @@ +import libs += cli-lib-libtest%lib{test} + +exe{driver}: cxx{driver} cli.cxx{test} $libs +cli.cxx{test}: cli{test} + +cxx.poptions += -I$out_root diff --git a/old-tests/cli/lib/test/driver.C b/old-tests/cli/lib/test/driver.C new file mode 100644 index 0000000..ee2171f --- /dev/null +++ b/old-tests/cli/lib/test/driver.C @@ -0,0 +1,8 @@ +#include "test.h" +#include +#include + +int +main () +{ +} diff --git a/old-tests/cli/lib/test/test.cli b/old-tests/cli/lib/test/test.cli new file mode 100644 index 0000000..db3cfb8 --- /dev/null +++ b/old-tests/cli/lib/test/test.cli @@ -0,0 +1,5 @@ +class options +{ + bool --help; + bool --version; +}; diff --git a/old-tests/cli/simple/build/bootstrap.build b/old-tests/cli/simple/build/bootstrap.build new file mode 100644 index 0000000..2c116c9 --- /dev/null +++ b/old-tests/cli/simple/build/bootstrap.build @@ -0,0 +1,3 @@ +project = cli-simple +amalgamation = # Disabled. +using config diff --git a/old-tests/cli/simple/build/root.build b/old-tests/cli/simple/build/root.build new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/old-tests/cli/simple/build/root.build @@ -0,0 +1 @@ + diff --git a/old-tests/cli/simple/buildfile b/old-tests/cli/simple/buildfile new file mode 100644 index 0000000..47e06d9 --- /dev/null +++ b/old-tests/cli/simple/buildfile @@ -0,0 +1,15 @@ +using cxx + +hxx{*}: extension = +cxx{*}: extension = cpp +ixx{*}: extension = ipp + +cxx.poptions += -I$out_root + +using cli + +exe{driver}: cxx{driver} cxx{test} +cxx{test} hxx{test}: cli{test} + +#exe{driver}: cxx{driver} cli.cxx{test} +#cli.cxx{test}: cli{test} diff --git a/old-tests/cli/simple/driver.cpp b/old-tests/cli/simple/driver.cpp new file mode 100644 index 0000000..ef9cc60 --- /dev/null +++ b/old-tests/cli/simple/driver.cpp @@ -0,0 +1,6 @@ +#include "test" + +int +main () +{ +} diff --git a/old-tests/cli/simple/test.cli b/old-tests/cli/simple/test.cli new file mode 100644 index 0000000..db3cfb8 --- /dev/null +++ b/old-tests/cli/simple/test.cli @@ -0,0 +1,5 @@ +class options +{ + bool --help; + bool --version; +}; -- cgit v1.1