mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
+googletest
This commit is contained in:
parent
cf3170c802
commit
3224d2244d
36
projects/google.com/googletest/package.yml
Normal file
36
projects/google.com/googletest/package.yml
Normal file
|
@ -0,0 +1,36 @@
|
|||
distributable:
|
||||
url: https://github.com/google/googletest/archive/v{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: google/googletest
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
cmake.org: ^3
|
||||
working-directory: build
|
||||
script: |
|
||||
cmake .. $ARGS
|
||||
make --jobs {{ hw.concurrency }} install
|
||||
env:
|
||||
ARGS:
|
||||
- -DBUILD_TESTING=OFF
|
||||
- -DCMAKE_INSTALL_PREFIX={{prefix}}
|
||||
- -DCMAKE_BUILD_TYPE=Release
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
fixture: |
|
||||
#include <gtest/gtest.h>
|
||||
#include <gtest/gtest-death-test.h>
|
||||
|
||||
TEST(Simple, Boolean) {
|
||||
ASSERT_TRUE(true);
|
||||
}
|
||||
script: |
|
||||
mv $FIXTURE a.c
|
||||
c++ a.c -std=c++14 -lgtest -lgtest_main -pthread
|
||||
./a.out
|
Loading…
Reference in a new issue