From 21758878a3b902ba06aaf2945edc626b367f2dbd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 12 Oct 2015 12:18:49 +0200 Subject: Rework test script --- tests/repository/1/common/libhello-1.0.0/hello/buildfile | 8 ++++++++ tests/repository/1/common/libhello-1.0.0/hello/hello | 12 ++++++++++++ tests/repository/1/common/libhello-1.0.0/hello/hello.cxx | 16 ++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 tests/repository/1/common/libhello-1.0.0/hello/buildfile create mode 100644 tests/repository/1/common/libhello-1.0.0/hello/hello create mode 100644 tests/repository/1/common/libhello-1.0.0/hello/hello.cxx (limited to 'tests/repository/1/common/libhello-1.0.0/hello') 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 + +#include + +using namespace std; + +namespace hello +{ + void + say (const char* n) + { + cout << "Hello, " << n << '!' << endl; + } +} -- cgit v1.1