From 4b5133ce0645e2b94b87fdeeaa522d9bf3e8bae8 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 4 Sep 2018 02:09:13 -0400 Subject: [PATCH] Switch to upstream's testing Makefile. --- git-lfs.spec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/git-lfs.spec b/git-lfs.spec index 6631a43..c485f0c 100644 --- a/git-lfs.spec +++ b/git-lfs.spec @@ -55,6 +55,9 @@ which use import path with %{goipath} prefix. rm -rf vendor +# Modify Makefile so that it expects binaries where we build them. +sed -i -e 's!/bin/!/_bin/!g' t/Makefile + %build %gobuildroot @@ -96,14 +99,12 @@ exit 0 %check %gochecks -export GOPATH=%{buildroot}%{gopath}:$(pwd):%{gopath} -export GIT_LFS_TEST_MAXPROCS=$(getconf _NPROCESSORS_ONLN) SKIPCOMPILE=1 -pushd _build/src/%{goipath} -./script/cibuild -popd +PATH=%{buildroot}%{_bindir}:$PWD/_bin:$PATH \ + make -C t PROVE_EXTRA_ARGS="-j$(getconf _NPROCESSORS_ONLN)" %files +%doc README.md CHANGELOG.md %license LICENSE.md %{_bindir}/%{name} %{_mandir}/man1/%{name}*.1*