summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2019-01-15 18:27:13 -0800
committerWilliam A. Kennington III <wak@google.com>2019-03-06 21:47:55 +0000
commitb93377104292de0f94087c0cbb79d4d6d8516b84 (patch)
tree3ccf01c66d4c3972c6d10ac39bb9f206c73f7596 /test
parent976764158af29113103a9a6acd8911f4f06c6b27 (diff)
downloadphosphor-watchdog-b93377104292de0f94087c0cbb79d4d6d8516b84.tar.gz
phosphor-watchdog-b93377104292de0f94087c0cbb79d4d6d8516b84.zip
meson: Add alternate build system
For now we will support both the autotools and meson build systems alongside each other, until support for meson is ready across the ecosystem. Tested: Run through build and unit tests that leverage the new build system and all of the tests pass and the install puts phosphor-watchdog in the correct location. Change-Id: I0454e763acc648ac76efd7728f6da498d9acf5dd Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'test')
-rw-r--r--test/meson.build13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/meson.build b/test/meson.build
new file mode 100644
index 0000000..4218665
--- /dev/null
+++ b/test/meson.build
@@ -0,0 +1,13 @@
+gtest = dependency('gtest', main: true, disabler: true, required: build_tests)
+gmock = dependency('gmock', disabler: true, required: build_tests)
+
+tests = [
+ 'watchdog',
+]
+
+foreach t : tests
+ test(t, executable(t.underscorify(), t + '.cpp',
+ implicit_include_directories: false,
+ link_with: libwatchdog,
+ dependencies: [gtest, gmock]))
+endforeach
OpenPOWER on IntegriCloud