abacus: bootstrap build system
This commit is contained in:
commit
5b57981af7
6 changed files with 57 additions and 0 deletions
5
tests/unit/base.cc
Normal file
5
tests/unit/base.cc
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#include <gtest/gtest.h>
|
||||
|
||||
TEST(misc, passing) {
|
||||
ASSERT_EQ(1, 1);
|
||||
}
|
||||
25
tests/unit/meson.build
Normal file
25
tests/unit/meson.build
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
gtest = dependency(
|
||||
'gtest',
|
||||
main: true,
|
||||
required: false,
|
||||
)
|
||||
|
||||
if gtest.found()
|
||||
unit_test_sources = files(
|
||||
'base.cc',
|
||||
)
|
||||
|
||||
unit_tests = executable(
|
||||
'unit_tests',
|
||||
sources: unit_test_sources,
|
||||
dependencies: [
|
||||
gtest,
|
||||
],
|
||||
)
|
||||
|
||||
test(
|
||||
'unit tests',
|
||||
unit_tests,
|
||||
protocol: 'gtest',
|
||||
)
|
||||
endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue