Skip to content

Commit

Permalink
test with gtest 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
thetic committed Dec 8, 2022
1 parent a91d6c5 commit 7c45bff
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/basic.yml
Expand Up @@ -83,6 +83,9 @@ jobs:
- name: GTest 1.11
os: ubuntu-20.04
target: check_gtest111
- name: GTest 1.12
os: ubuntu-20.04
target: check_gtest112
- name: Disable long long
os: ubuntu-latest
configure_args: --disable-longlong
Expand Down
15 changes: 14 additions & 1 deletion Makefile.am
Expand Up @@ -261,6 +261,12 @@ if INCLUDE_CPPUTEST_EXT
endif


cpputest_build_gtest112:
mkdir -p cpputest_build_gtest112
cd cpputest_build_gtest112; \
wget https://github.com/google/googletest/archive/refs/tags/release-1.12.1.zip -O gtest-1.12.1.zip && unzip gtest-1.12.1.zip; \
cd googletest-release-1.12.1; cmake .; make

cpputest_build_gtest111:
mkdir -p cpputest_build_gtest111
cd cpputest_build_gtest111; \
Expand Down Expand Up @@ -336,15 +342,22 @@ check_gtest111: cpputest_build_gtest111
export GTEST_HOME=`pwd`/cpputest_build_gtest111/googletest-release-1.11.0; \
make distclean; $(srcdir)/configure --enable-std-cpp11; make check

check_gtest112: cpputest_build_gtest112
@echo "Build using gmock 1.12"
export GMOCK_MOCK=`pwd`/cpputest_build_gtest121/googletest-release-1.12.1; \
export GTEST_HOME=`pwd`/cpputest_build_gtest121/googletest-release-1.12.1; \
make distclean; $(srcdir)/configure --enable-std-cpp11; make check

remove_gtest_directories:
rm -rf cpputest_build_gtest15
rm -rf cpputest_build_gtest16
rm -rf cpputest_build_gtest17
rm -rf cpputest_build_gtest18
rm -rf cpputest_build_gtest110
rm -rf cpputest_build_gtest111
rm -rf cpputest_build_gtest112

check_gtest: remove_gtest_directories check_gtest15 check_gtest16 check_gtest17 check_gtest18 check_gtest110 check_gtest111
check_gtest: remove_gtest_directories check_gtest15 check_gtest16 check_gtest17 check_gtest18 check_gtest110 check_gtest111 check_gtest112

check_basic:
@echo "If dash is available, run the configure with dash to find bash-isms and increase portability"
Expand Down

0 comments on commit 7c45bff

Please sign in to comment.