diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-12 12:18:49 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-12 12:18:49 +0200 |
commit | 21758878a3b902ba06aaf2945edc626b367f2dbd (patch) | |
tree | 64be065c27e88150efd180554ce879b65b120e6d /tests/repository/1/common/libhello-1.0.0/tests | |
parent | 384a3287548786990745c88a7da652a179a4731f (diff) |
Rework test script
Diffstat (limited to 'tests/repository/1/common/libhello-1.0.0/tests')
6 files changed, 33 insertions, 0 deletions
diff --git a/tests/repository/1/common/libhello-1.0.0/tests/build/bootstrap.build b/tests/repository/1/common/libhello-1.0.0/tests/build/bootstrap.build new file mode 100644 index 0000000..1151b0c --- /dev/null +++ b/tests/repository/1/common/libhello-1.0.0/tests/build/bootstrap.build @@ -0,0 +1,4 @@ +project = # Unnamed. +using config +using dist +using test diff --git a/tests/repository/1/common/libhello-1.0.0/tests/build/root.build b/tests/repository/1/common/libhello-1.0.0/tests/build/root.build new file mode 100644 index 0000000..37809b8 --- /dev/null +++ b/tests/repository/1/common/libhello-1.0.0/tests/build/root.build @@ -0,0 +1,10 @@ +using cxx + +hxx.ext = +cxx.ext = cxx + +cxx.std = 11 + +# Every exe{} here is by default a test. +# +test.exe = true diff --git a/tests/repository/1/common/libhello-1.0.0/tests/buildfile b/tests/repository/1/common/libhello-1.0.0/tests/buildfile new file mode 100644 index 0000000..7688d2c --- /dev/null +++ b/tests/repository/1/common/libhello-1.0.0/tests/buildfile @@ -0,0 +1,3 @@ +d = test/ +.: $d +include $d diff --git a/tests/repository/1/common/libhello-1.0.0/tests/test/buildfile b/tests/repository/1/common/libhello-1.0.0/tests/test/buildfile new file mode 100644 index 0000000..a46969d --- /dev/null +++ b/tests/repository/1/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/repository/1/common/libhello-1.0.0/tests/test/driver.cxx b/tests/repository/1/common/libhello-1.0.0/tests/test/driver.cxx new file mode 100644 index 0000000..59bfb2d --- /dev/null +++ b/tests/repository/1/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/repository/1/common/libhello-1.0.0/tests/test/test.out b/tests/repository/1/common/libhello-1.0.0/tests/test/test.out new file mode 100644 index 0000000..8ab686e --- /dev/null +++ b/tests/repository/1/common/libhello-1.0.0/tests/test/test.out @@ -0,0 +1 @@ +Hello, World! |