From: Matus Fabian Date: Wed, 9 Jul 2025 09:46:09 +0000 (-0400) Subject: hs-test: fix go version mismatch X-Git-Tag: v26.02-rc0~185 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F22%2F43422%2F3;p=vpp.git hs-test: fix go version mismatch Type: test Change-Id: Idce98c261c50ef0da2a4b7c4ee9146faa2194c4b Signed-off-by: Matus Fabian --- diff --git a/extras/hs-test/Makefile b/extras/hs-test/Makefile index 11b5235419f..643cf52221d 100644 --- a/extras/hs-test/Makefile +++ b/extras/hs-test/Makefile @@ -93,6 +93,8 @@ help: @echo " cleanup-hst - removes all docker containers and namespaces from last test run" @echo " cleanup-perf - removes all kubernetes pods and namespaces from last test run" @echo " list-tests - list all tests" + @echo " install-deps - install software dependencies" + @echo " install-kind-deps - install software dependencies for cluster" @echo @echo "'make build' and 'make test' arguments:" @echo " UBUNTU_VERSION - ubuntu version for docker image" @@ -259,11 +261,11 @@ install-kind-deps: .deps.ok install-deps: @rm -f .deps.ok @if [ -d "/usr/local/go" ]; then \ - echo "Go is already installed. You may have to update it manually if version < 1.22"; \ + echo "Go is already installed. You may have to update it manually if version < 1.23.10"; \ go version; \ else \ - echo "Installing Go 1.22"; \ - wget https://go.dev/dl/go1.22.12.linux-amd64.tar.gz -O /tmp/go1.22.12.linux-amd64.tar.gz && sudo tar -C /usr/local -xzf /tmp/go1.22.12.linux-amd64.tar.gz; \ + echo "Installing Go 1.23"; \ + wget https://go.dev/dl/go1.23.10.linux-$(ARCH).tar.gz -O /tmp/go1.23.10.linux-$(ARCH).tar.gz && sudo tar -C /usr/local -xzf /tmp/go1.23.10.linux-$(ARCH).tar.gz; \ sudo ln -s /usr/local/go/bin/go /usr/bin/go ; \ fi @sudo -E apt-get update diff --git a/extras/hs-test/README.rst b/extras/hs-test/README.rst index 815f8aa8e6f..39ca850174c 100644 --- a/extras/hs-test/README.rst +++ b/extras/hs-test/README.rst @@ -20,7 +20,6 @@ Anatomy of a test case **Prerequisites**: * Install hs-test dependencies with ``make install-deps`` -* `Install Go `_, it has to be in path of both the running user (follow instructions on Go installation page) and root (run ``sudo visudo`` and edit ``secure_path`` line, run ``sudo go version`` to verify) * Root privileges are required to run tests as it uses Linux ``ip`` command for configuring topology * Tests use *hs-test*'s own docker image, they are rebuilt automatically when needed, you can run ``make build[-debug]`` to do so or use ``FORCE_BUILD=true`` make parameter