From 473dc807017829403eb9868034d21de24c261473 Mon Sep 17 00:00:00 2001 From: Hemmo Nieminen Date: Mon, 11 Sep 2017 21:24:24 +0300 Subject: Add some test setup selection tests. --- test cases/unit/13 testsetup selection/main.c | 3 +++ test cases/unit/13 testsetup selection/meson.build | 10 ++++++++++ test cases/unit/13 testsetup selection/subprojects/bar/bar.c | 3 +++ .../unit/13 testsetup selection/subprojects/bar/meson.build | 6 ++++++ test cases/unit/13 testsetup selection/subprojects/foo/foo.c | 3 +++ .../unit/13 testsetup selection/subprojects/foo/meson.build | 4 ++++ 6 files changed, 29 insertions(+) create mode 100644 test cases/unit/13 testsetup selection/main.c create mode 100644 test cases/unit/13 testsetup selection/meson.build create mode 100644 test cases/unit/13 testsetup selection/subprojects/bar/bar.c create mode 100644 test cases/unit/13 testsetup selection/subprojects/bar/meson.build create mode 100644 test cases/unit/13 testsetup selection/subprojects/foo/foo.c create mode 100644 test cases/unit/13 testsetup selection/subprojects/foo/meson.build (limited to 'test cases') diff --git a/test cases/unit/13 testsetup selection/main.c b/test cases/unit/13 testsetup selection/main.c new file mode 100644 index 000000000..cb3f7482f --- /dev/null +++ b/test cases/unit/13 testsetup selection/main.c @@ -0,0 +1,3 @@ +int main() { + return 0; +} diff --git a/test cases/unit/13 testsetup selection/meson.build b/test cases/unit/13 testsetup selection/meson.build new file mode 100644 index 000000000..ae996c5be --- /dev/null +++ b/test cases/unit/13 testsetup selection/meson.build @@ -0,0 +1,10 @@ +project('main', 'c') + +main = executable('main', 'main.c') +test('Test main', main) + +add_test_setup('worksforall') +add_test_setup('missingfromfoo') + +subproject('foo') +subproject('bar') diff --git a/test cases/unit/13 testsetup selection/subprojects/bar/bar.c b/test cases/unit/13 testsetup selection/subprojects/bar/bar.c new file mode 100644 index 000000000..cb3f7482f --- /dev/null +++ b/test cases/unit/13 testsetup selection/subprojects/bar/bar.c @@ -0,0 +1,3 @@ +int main() { + return 0; +} diff --git a/test cases/unit/13 testsetup selection/subprojects/bar/meson.build b/test cases/unit/13 testsetup selection/subprojects/bar/meson.build new file mode 100644 index 000000000..1155a88aa --- /dev/null +++ b/test cases/unit/13 testsetup selection/subprojects/bar/meson.build @@ -0,0 +1,6 @@ +project('bar', 'c') +bar = executable('bar', 'bar.c') +test('Test bar', bar) +add_test_setup('onlyinbar') +add_test_setup('worksforall') +add_test_setup('missingfromfoo') diff --git a/test cases/unit/13 testsetup selection/subprojects/foo/foo.c b/test cases/unit/13 testsetup selection/subprojects/foo/foo.c new file mode 100644 index 000000000..cb3f7482f --- /dev/null +++ b/test cases/unit/13 testsetup selection/subprojects/foo/foo.c @@ -0,0 +1,3 @@ +int main() { + return 0; +} diff --git a/test cases/unit/13 testsetup selection/subprojects/foo/meson.build b/test cases/unit/13 testsetup selection/subprojects/foo/meson.build new file mode 100644 index 000000000..2eef840cd --- /dev/null +++ b/test cases/unit/13 testsetup selection/subprojects/foo/meson.build @@ -0,0 +1,4 @@ +project('foo', 'c') +foo = executable('foo', 'foo.c') +test('Test foo', foo) +add_test_setup('worksforall') -- cgit v1.2.3