diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-02-22 00:58:53 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-03-15 19:15:55 +0300 |
commit | a791b1ce0fa2bc9859474fb6f7a9c0ff8cbd1d4a (patch) | |
tree | 3c9823a54e6e28a8c8f9fb281d82ad2a67c117ba /tests/common/libhello-1.0.0/tests | |
parent | 755a99a7ebf24e00675e2f2e0f5184825ad74c4a (diff) |
Port test.sh to testscript
Diffstat (limited to 'tests/common/libhello-1.0.0/tests')
-rw-r--r-- | tests/common/libhello-1.0.0/tests/build/bootstrap.build | 5 | ||||
-rw-r--r-- | tests/common/libhello-1.0.0/tests/build/root.build | 14 | ||||
-rw-r--r-- | tests/common/libhello-1.0.0/tests/buildfile | 3 | ||||
-rw-r--r-- | tests/common/libhello-1.0.0/tests/test/buildfile | 4 | ||||
-rw-r--r-- | tests/common/libhello-1.0.0/tests/test/driver.cxx | 11 | ||||
-rw-r--r-- | tests/common/libhello-1.0.0/tests/test/test.out | 1 |
6 files changed, 38 insertions, 0 deletions
diff --git a/tests/common/libhello-1.0.0/tests/build/bootstrap.build b/tests/common/libhello-1.0.0/tests/build/bootstrap.build new file mode 100644 index 0000000..2c2de24 --- /dev/null +++ b/tests/common/libhello-1.0.0/tests/build/bootstrap.build @@ -0,0 +1,5 @@ +project = # Unnamed subproject. + +using config +using dist +using test diff --git a/tests/common/libhello-1.0.0/tests/build/root.build b/tests/common/libhello-1.0.0/tests/build/root.build new file mode 100644 index 0000000..de723b8 --- /dev/null +++ b/tests/common/libhello-1.0.0/tests/build/root.build @@ -0,0 +1,14 @@ +cxx.std = 11 + +using cxx + +hxx{*}: extension = +cxx{*}: extension = cxx + +# Every exe{} in this subproject is by default a test. +# +exe{*}: test = true + +# Specify the test target for cross-testing. +# +test.target = $cxx.target diff --git a/tests/common/libhello-1.0.0/tests/buildfile b/tests/common/libhello-1.0.0/tests/buildfile new file mode 100644 index 0000000..4dcbe2a --- /dev/null +++ b/tests/common/libhello-1.0.0/tests/buildfile @@ -0,0 +1,3 @@ +d = test/ +./: $d +include $d diff --git a/tests/common/libhello-1.0.0/tests/test/buildfile b/tests/common/libhello-1.0.0/tests/test/buildfile new file mode 100644 index 0000000..a46969d --- /dev/null +++ b/tests/common/libhello-1.0.0/tests/test/buildfile @@ -0,0 +1,4 @@ +import libs = libhello%lib{hello} + +exe{driver}: cxx{driver} $libs +exe{driver}: test.output = test.out diff --git a/tests/common/libhello-1.0.0/tests/test/driver.cxx b/tests/common/libhello-1.0.0/tests/test/driver.cxx new file mode 100644 index 0000000..59bfb2d --- /dev/null +++ b/tests/common/libhello-1.0.0/tests/test/driver.cxx @@ -0,0 +1,11 @@ +// file: tests/test/driver.cxx -*- C++ -*- + +#include <hello/hello> + +int +main () +{ + using hello::say; + + say ("World"); +} diff --git a/tests/common/libhello-1.0.0/tests/test/test.out b/tests/common/libhello-1.0.0/tests/test/test.out new file mode 100644 index 0000000..8ab686e --- /dev/null +++ b/tests/common/libhello-1.0.0/tests/test/test.out @@ -0,0 +1 @@ +Hello, World! |