Commit a07a3ffa authored by niteria's avatar niteria Committed by Ben Gamari
Browse files

A failing testcase for T12485

Test Plan: it's just a testcase

Reviewers: ezyang, simonmar, bgamari, austin

Subscribers: thomie

Differential Revision:

GHC Trac Issues: #12485
parent 2d220263
......@@ -84,6 +84,7 @@ extra_src_files = {
'T11827': ['A.hs', 'A.hs-boot', 'B.hs'],
'T12062': ['A.hs', 'A.hs-boot', 'C.hs'],
'T12035j': ['T12035.hs', 'T12035a.hs', 'T12035.hs-boot'],
'T12485': ['a.pkg', 'b.pkg', 'Main.hs'],
'T1372': ['p1/', 'p2/'],
'T1407': ['A.c'],
'T1959': ['B.hs', 'C.hs', 'D.hs', 'E1.hs', 'E2.hs'],
module Main where
main = main
include $(TOP)/mk/
include $(TOP)/mk/
T12485 :
@rm -rf a.db b.db
'$(GHC_PKG)' init a.db
'$(GHC_PKG)' -f a.db register a.pkg
'$(GHC_PKG)' init b.db
'$(GHC_PKG)' -f a.db/ -f b.db/ register b.pkg # register b.pkg in b.db
# -package-db in dependency order
'$(TEST_HC)' -XNoImplicitPrelude -fforce-recomp -hide-all-packages -no-user-package-db -package-db a.db -package-db b.db -package-id a-1-XXX -package-id b-1-XXX Main.hs
# -package-db in reverse dependency order
'$(TEST_HC)' -XNoImplicitPrelude -fforce-recomp -hide-all-packages -no-user-package-db -package-db b.db -package-db a.db -package-id a-1-XXX -package-id b-1-XXX Main.hs
Reading package info from "a.pkg" ... done.
Reading package info from "b.pkg" ... done.
[1 of 1] Compiling Main ( Main.hs, Main.o )
Linking Main ...
[1 of 1] Compiling Main ( Main.hs, Main.o )
Linking Main ...
name: a
version: 1
id: a-1-XXX
key: a-1-XXX
abi: aaa
[extra_clean(['a.db', 'b.db', 'Main.o', 'Main', 'Main.hi']),
['$MAKE -s --no-print-directory T12485'])
name: b
version: 1
id: b-1-XXX
key: b-1-XXX
depends: a-1-XXX
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