diff --git a/delve.spec b/delve.spec index 2b58de7..f1b891c 100644 --- a/delve.spec +++ b/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