Use custom check section
This commit is contained in:
parent
baf961b7b9
commit
866ba58906
14
delve.spec
14
delve.spec
@ -79,7 +79,19 @@ install -Dpm 0755 _bin/dlv %{buildroot}%{_bindir}/dlv
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%gochecks
|
||||
export GO111MODULE=off
|
||||
export GOPATH=%{buildroot}/%{gopath}:%{gopath}
|
||||
|
||||
delvepath=%{buildroot}/%{gopath}/src/%{goipath}
|
||||
cp -r _fixtures $delvepath
|
||||
cp -r pkg/dwarf/line/_testdata $delvepath/pkg/dwarf/line
|
||||
pushd $delvepath
|
||||
for d in $(go list ./... | grep -v cmd | grep -v scripts); do
|
||||
%gotest ${d}
|
||||
done
|
||||
rm -rf $delvepath/_fixtures
|
||||
rm -rf $delvepath/pkg/dwarf/line/_testdata
|
||||
popd
|
||||
%endif
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user