hs-test: fix go version mismatch 22/43422/3
authorMatus Fabian <[email protected]>
Wed, 9 Jul 2025 09:46:09 +0000 (05:46 -0400)
committerFlorin Coras <[email protected]>
Wed, 9 Jul 2025 21:35:49 +0000 (21:35 +0000)
Type: test

Change-Id: Idce98c261c50ef0da2a4b7c4ee9146faa2194c4b
Signed-off-by: Matus Fabian <[email protected]>
extras/hs-test/Makefile
extras/hs-test/README.rst

index 11b5235..643cf52 100644 (file)
@@ -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
index 815f8aa..39ca850 100644 (file)
@@ -20,7 +20,6 @@ Anatomy of a test case
 **Prerequisites**:
 
 * Install hs-test dependencies with ``make install-deps``
-* `Install Go <https://go.dev/doc/install>`_, 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