enable tests - need to cabal configure by hand
to avoid override optimization
This commit is contained in:
parent
667018cc1d
commit
4b7ecd3972
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
%global pkg_name HUnit
|
%global pkg_name HUnit
|
||||||
|
|
||||||
# hunit-test-optimize0 assert failing
|
%bcond_without tests
|
||||||
%bcond_with tests
|
|
||||||
|
|
||||||
# no useful debuginfo for Haskell packages without C sources
|
# no useful debuginfo for Haskell packages without C sources
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
@ -62,7 +61,8 @@ rm %{buildroot}%{_datadir}/%{pkg_name}-%{version}/{README,doc/Guide.html,example
|
|||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
mv HUnit.cabal HUnit.cabal.orig
|
mv HUnit.cabal HUnit.cabal.orig
|
||||||
mv HUnit.cabal.tests HUnit.cabal
|
mv HUnit.cabal.tests HUnit.cabal
|
||||||
%ghc_bin_build
|
%cabal configure --enable-tests
|
||||||
|
%cabal build
|
||||||
%cabal test
|
%cabal test
|
||||||
mv HUnit.cabal HUnit.cabal.tests
|
mv HUnit.cabal HUnit.cabal.tests
|
||||||
mv HUnit.cabal.orig HUnit.cabal
|
mv HUnit.cabal.orig HUnit.cabal
|
||||||
@ -87,7 +87,7 @@ mv HUnit.cabal.orig HUnit.cabal
|
|||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Jun 4 2014 Jens Petersen <petersen@redhat.com> - 1.2.5.2-32
|
* Wed Jun 4 2014 Jens Petersen <petersen@redhat.com> - 1.2.5.2-32
|
||||||
- disable tests for now
|
- enable tests
|
||||||
|
|
||||||
* Mon Feb 24 2014 Jens Petersen <petersen@redhat.com> - 1.2.5.2-31
|
* Mon Feb 24 2014 Jens Petersen <petersen@redhat.com> - 1.2.5.2-31
|
||||||
- split out of haskell-platform
|
- split out of haskell-platform
|
||||||
|
Loading…
Reference in New Issue
Block a user