Commit c6cab9d9 authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel 🕺

Remove `cabal07`-test broken by e4cc19de

This test is no longer legitimate as the feature it tests was removed
from Cabal via

https://git.haskell.org/packages/Cabal.git/commitdiff/5d20551e44e565bad6335fa213fc4ad592db7225
parent e4cc19de
TOP=../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk
SETUP=../Setup -v0
# This test is for a Cabal package with thinning and renaming
cabal07: clean
$(MAKE) clean
'$(TEST_HC)' -v0 --make Setup
cd p && $(SETUP) clean
cd p && $(SETUP) configure $(CABAL_MINIMAL_BUILD) --with-ghc='$(TEST_HC)' --ghc-options='$(TEST_HC_OPTS)' --prefix='$(PWD)/inst-p' --constraint="containers>=0"
cd p && ! $(SETUP) build
ifneq "$(CLEANUP)" ""
$(MAKE) clean
endif
clean :
'$(GHC_PKG)' unregister --force p >/dev/null 2>&1 || true
$(RM) -r tmp.d inst-* *.o *.hi */*.o */*.hi */Setup$(exeext) */dist Setup$(exeext)
import Distribution.Simple
main = defaultMain
if default_testopts.cleanup != '':
cleanup = 'CLEANUP=1'
else:
cleanup = ''
test('cabal07',
normalise_version('containers'),
run_command,
['$MAKE -s --no-print-directory cabal07 ' + cleanup])
Q.hs:3:1: error:
Failed to load interface for ‘Data.Set’
It is a member of the hidden package ‘containers-0.5.7.0’.
Perhaps you need to add ‘containers’ to the build-depends in your .cabal file.
Use -v to see a list of the files searched for.
module P where
import qualified Set
import qualified Seq
import qualified Seq2
import qualified Control.DeepSeq
module Q where
import P
import Data.Set
name: p
version: 1.0
license-file: LICENSE
author: Edward Z. Yang
maintainer: ezyang@cs.stanford.edu
build-type: Simple
cabal-version: >=1.20
library
exposed-modules: P, Q
build-depends: base, containers >= 0.1 (Data.Set as Set), deepseq (> 0.2 && > 0.1) with (Control.DeepSeq as Seq, Control.DeepSeq as Seq2)
default-language: Haskell2010
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment