From 4b7ecd397290814886b802cbcba1fc378cacddd1 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 4 Jun 2014 23:37:56 +0900 Subject: [PATCH] enable tests - need to cabal configure by hand to avoid override optimization --- ghc-HUnit.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ghc-HUnit.spec b/ghc-HUnit.spec index 1d8c75b..5c90bb8 100644 --- a/ghc-HUnit.spec +++ b/ghc-HUnit.spec @@ -2,8 +2,7 @@ %global pkg_name HUnit -# hunit-test-optimize0 assert failing -%bcond_with tests +%bcond_without tests # no useful debuginfo for Haskell packages without C sources %global debug_package %{nil} @@ -62,7 +61,8 @@ rm %{buildroot}%{_datadir}/%{pkg_name}-%{version}/{README,doc/Guide.html,example %if %{with tests} mv HUnit.cabal HUnit.cabal.orig mv HUnit.cabal.tests HUnit.cabal -%ghc_bin_build +%cabal configure --enable-tests +%cabal build %cabal test mv HUnit.cabal HUnit.cabal.tests mv HUnit.cabal.orig HUnit.cabal @@ -87,7 +87,7 @@ mv HUnit.cabal.orig HUnit.cabal %changelog * Wed Jun 4 2014 Jens Petersen - 1.2.5.2-32 -- disable tests for now +- enable tests * Mon Feb 24 2014 Jens Petersen - 1.2.5.2-31 - split out of haskell-platform