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/hello | |
parent | 384a3287548786990745c88a7da652a179a4731f (diff) |
Rework test script
Diffstat (limited to 'tests/repository/1/common/libhello-1.0.0/hello')
3 files changed, 36 insertions, 0 deletions
diff --git a/tests/repository/1/common/libhello-1.0.0/hello/buildfile b/tests/repository/1/common/libhello-1.0.0/hello/buildfile new file mode 100644 index 0000000..cef703d --- /dev/null +++ b/tests/repository/1/common/libhello-1.0.0/hello/buildfile @@ -0,0 +1,8 @@ +lib{hello}: cxx{hello} hxx{hello} + +cxx.poptions += -I$src_root +lib{hello}: cxx.export.poptions = -I$src_root + +# Install into the hello/ subdirectory of, say, /usr/include/. +# +install.include = $install.include/hello diff --git a/tests/repository/1/common/libhello-1.0.0/hello/hello b/tests/repository/1/common/libhello-1.0.0/hello/hello new file mode 100644 index 0000000..64c84b8 --- /dev/null +++ b/tests/repository/1/common/libhello-1.0.0/hello/hello @@ -0,0 +1,12 @@ +// file: hello/hello -*- C++ -*- + +#ifndef HELLO_HELLO +#define HELLO_HELLO + +namespace hello +{ + void + say (const char* name); +} + +#endif // HELLO_HELLO diff --git a/tests/repository/1/common/libhello-1.0.0/hello/hello.cxx b/tests/repository/1/common/libhello-1.0.0/hello/hello.cxx new file mode 100644 index 0000000..bba6649 --- /dev/null +++ b/tests/repository/1/common/libhello-1.0.0/hello/hello.cxx @@ -0,0 +1,16 @@ +// file: hello/hello.cxx -*- C++ -*- + +#include <hello/hello> + +#include <iostream> + +using namespace std; + +namespace hello +{ + void + say (const char* n) + { + cout << "Hello, " << n << '!' << endl; + } +} |