Use custom check section

This commit is contained in:
Derek Parker 2019-02-26 16:02:11 -08:00
parent baf961b7b9
commit 866ba58906

View File

@ -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