Bump google test version in hammer
The following discussion from !2213 (merged) should be addressed:
-
@andrei started a discussion: I think we should start catching up to the googletest versions.
I bumped it up to the latest version. Ran unit tests. All pass. If you agree to include the change, here is the patch.
diff --git a/hammer.py b/hammer.py index 7426f6a117..7a932f71ca 100755 --- a/hammer.py +++ b/hammer.py @@ -1099,3 +1099,3 @@ def _install_gtest_sources(): # download gtest sources only if it is not present as native package - gtest_version = '1.10.0' + gtest_version = '1.14.0' gtest_path = f'/usr/src/googletest-release-{gtest_version}/googletest' @@ -1107,3 +1107,4 @@ def _install_gtest_sources(): cmd = 'wget --no-verbose -O ~/.hammer-tmp/gtest.tar.gz ' - cmd += f'https://github.com/google/googletest/archive/release-{gtest_version}.tar.gz' + + cmd += f'https://github.com/google/googletest/archive/refs/tags/v{gtest_version}.tar.gz' execute(cmd) @@ -1111,3 +1112,3 @@ def _install_gtest_sources(): execute('sudo tar -C /usr/src -zxf ~/.hammer-tmp/gtest.tar.gz') - execute(f'sudo ln -sf /usr/src/googletest-release-{gtest_version} /usr/src/googletest') + execute(f'sudo ln -sf /usr/src/googletest-{gtest_version} /usr/src/googletest') execute('rm -rf ~/.hammer-tmp')