From 47e3bee23d3ea3e06d4bfebb678e26d182d448dd Mon Sep 17 00:00:00 2001 From: hanchao Date: Sat, 25 Feb 2023 18:22:26 +0800 Subject: [PATCH] golang: add golang package test --- golang.spec | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/golang.spec b/golang.spec index 5e8e36e..64341fa 100644 --- a/golang.spec +++ b/golang.spec @@ -12,11 +12,6 @@ %define __find_requires %{nil} %bcond_with bootstrap -%ifarch x86_64 aarch64 riscv64 -%bcond_without ignore_tests -%else -%bcond_with ignore_tests -%endif %ifarch x86_64 aarch64 riscv64 %global external_linker 1 @@ -36,12 +31,6 @@ %global golang_bootstrap 1 %endif -%if %{with ignore_tests} -%global fail_on_tests 0 -%else -%global fail_on_tests 1 -%endif - %global shared 0 %ifarch x86_64 @@ -62,7 +51,7 @@ Name: golang Version: 1.19.4 -Release: 1 +Release: 2 Summary: The Go Programming Language License: BSD and Public Domain URL: https://golang.org/ @@ -339,11 +328,7 @@ export CGO_ENABLED=0 export GO_TEST_TIMEOUT_SCALE=2 -%if %{fail_on_tests} -echo tests ignored -%else -./run.bash --no-rebuild -v -v -v -k go_test:testing || : -%endif +./run.bash --no-rebuild -v -v -v -k -run=!"^go_test:(cmd/go|cmd/link/internal/ld|cmd/nm)" cd .. %post @@ -387,6 +372,8 @@ fi %files devel -f go-tests.list -f go-misc.list -f go-src.list %changelog +* Sat Feb 25 2023 hanchao - 1.19.4-2 +- add golang package test * Tue Jan 10 2023 hanchao - 1.19.4-1 - upgrade to 1.19.4 -- Gitee