forked from misaka00251/go-rpm-macros
Update macros
This commit is contained in:
@@ -12,6 +12,12 @@
|
||||
export GOPATH=%{_builddir}/go:%{_datadir}/gocode \
|
||||
%{nil}
|
||||
|
||||
#
|
||||
# Test flags
|
||||
#
|
||||
%go_test_flags_default -v
|
||||
%go_test_flags %{go_test_flags_default}%{?buildoption_test: %{buildoption_test}}
|
||||
|
||||
#
|
||||
# BuildSystem flags
|
||||
#
|
||||
@@ -26,6 +32,7 @@
|
||||
%__go build -v -o %{_name} . \
|
||||
%{nil}
|
||||
|
||||
|
||||
%go_install \
|
||||
%__install -D -m 0755 %{_name} %{buildroot}%{_bindir}/%{_name} \
|
||||
%{nil}
|
||||
@@ -38,10 +45,10 @@
|
||||
%go_test \
|
||||
%{go_common} \
|
||||
cd %{_builddir}/go/src/%{go_import_path} \
|
||||
%__go test -vet=off -v ./... \
|
||||
%__go test %{go_test_flags} ./... \
|
||||
%{nil}
|
||||
|
||||
%go_test_modules \
|
||||
%{go_common} \
|
||||
%__go test -vet=off -v ./... \
|
||||
%__go test %{go_test_flags} ./... \
|
||||
%{nil}
|
||||
|
||||
Reference in New Issue
Block a user