diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-07-31 19:22:24 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-07-31 19:22:24 +0300 |
commit | 17bfbb99e5897ac759aca42d3ee375ebb33bd087 (patch) | |
tree | 8df2a3f7cbfcca9c30df15404f0227dfe0107705 /test cases/unit/10 build_rpath | |
parent | 2bc0f56b21a6dd327a6907c5fe27885b05db49d5 (diff) | |
download | meson-17bfbb99e5897ac759aca42d3ee375ebb33bd087.zip meson-17bfbb99e5897ac759aca42d3ee375ebb33bd087.tar.gz meson-17bfbb99e5897ac759aca42d3ee375ebb33bd087.tar.bz2 |
Condense test dirs.
Diffstat (limited to 'test cases/unit/10 build_rpath')
-rw-r--r-- | test cases/unit/10 build_rpath/meson.build | 16 | ||||
-rw-r--r-- | test cases/unit/10 build_rpath/prog.c | 5 | ||||
-rw-r--r-- | test cases/unit/10 build_rpath/prog.cc | 8 | ||||
-rw-r--r-- | test cases/unit/10 build_rpath/sub/meson.build | 1 | ||||
-rw-r--r-- | test cases/unit/10 build_rpath/sub/stuff.c | 3 |
5 files changed, 33 insertions, 0 deletions
diff --git a/test cases/unit/10 build_rpath/meson.build b/test cases/unit/10 build_rpath/meson.build new file mode 100644 index 0000000..c0bc3bd --- /dev/null +++ b/test cases/unit/10 build_rpath/meson.build @@ -0,0 +1,16 @@ +project('build rpath', 'c', 'cpp') + +subdir('sub') +executable('prog', 'prog.c', + link_with : l, + build_rpath : '/foo/bar', + install_rpath : '/baz', + install : true, + ) + +executable('progcxx', 'prog.cc', + link_with : l, + build_rpath : '/foo/bar', + install_rpath : 'baz', + install : true, + ) diff --git a/test cases/unit/10 build_rpath/prog.c b/test cases/unit/10 build_rpath/prog.c new file mode 100644 index 0000000..45b2fa3 --- /dev/null +++ b/test cases/unit/10 build_rpath/prog.c @@ -0,0 +1,5 @@ +int get_stuff(); + +int main(int argc, char **argv) { + return get_stuff(); +} diff --git a/test cases/unit/10 build_rpath/prog.cc b/test cases/unit/10 build_rpath/prog.cc new file mode 100644 index 0000000..c7c2123 --- /dev/null +++ b/test cases/unit/10 build_rpath/prog.cc @@ -0,0 +1,8 @@ +#include <string> +#include <iostream> + +int main(int argc, char **argv) { + std::string* s = new std::string("Hello"); + delete s; + return 0; +} diff --git a/test cases/unit/10 build_rpath/sub/meson.build b/test cases/unit/10 build_rpath/sub/meson.build new file mode 100644 index 0000000..6879ec6 --- /dev/null +++ b/test cases/unit/10 build_rpath/sub/meson.build @@ -0,0 +1 @@ +l = shared_library('stuff', 'stuff.c') diff --git a/test cases/unit/10 build_rpath/sub/stuff.c b/test cases/unit/10 build_rpath/sub/stuff.c new file mode 100644 index 0000000..d56d8b0 --- /dev/null +++ b/test cases/unit/10 build_rpath/sub/stuff.c @@ -0,0 +1,3 @@ +int get_stuff() { + return 0; +} |