2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-28 20:47:48 +00:00

[#3350] Updated gtest version to 1.14

This commit is contained in:
Marcin Godzina 2024-04-24 11:41:18 +00:00 committed by Andrei Pavel
parent cac91f02b8
commit 0103b20ca5
No known key found for this signature in database
GPG Key ID: D4E804481939CB21

View File

@ -1100,7 +1100,7 @@ class VagrantEnv(object):
def _install_gtest_sources(): def _install_gtest_sources():
"""Install gtest sources.""" """Install gtest sources."""
# download gtest sources only if it is not present as native package # 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' gtest_path = f'/usr/src/googletest-release-{gtest_version}/googletest'
if os.path.exists(gtest_path): if os.path.exists(gtest_path):
log.info(f'gtest is already installed in {gtest_path}.') log.info(f'gtest is already installed in {gtest_path}.')
@ -1108,11 +1108,11 @@ def _install_gtest_sources():
execute('mkdir -p ~/.hammer-tmp') execute('mkdir -p ~/.hammer-tmp')
cmd = 'wget --no-verbose -O ~/.hammer-tmp/gtest.tar.gz ' 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) execute(cmd)
execute('sudo mkdir -p /usr/src') execute('sudo mkdir -p /usr/src')
execute('sudo tar -C /usr/src -zxf ~/.hammer-tmp/gtest.tar.gz') 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') execute('rm -rf ~/.hammer-tmp')