Commit c6007fe6 authored by thomie's avatar thomie
Browse files

Pass -haddock to tests in should_compile_*flag*_nohaddock

should_compile_flag_nohaddock and should_compile_noflag_nohaddock
contain the exact same tests. By passing `-haddock` to the tests in
should_compile_**flag**_nohaddock, at least they're now testing
different things.

Add documentation.
parent d738e664
# should_compile_flag_haddock.
#
# * flag: we *do* pass the -haddock flag
#
# * haddock: and tests *do* contain haddock annotations
#
# When adding a new test here, think about adding it to the
# should_compile_noflag_haddock directory as well.
test('haddockA001', normal, compile, ['-haddock -ddump-parsed'])
test('haddockA002', normal, compile, ['-haddock -ddump-parsed'])
test('haddockA003', normal, compile, ['-haddock -ddump-parsed'])
......@@ -30,6 +39,10 @@ test('haddockA029', normal, compile, ['-haddock -ddump-parsed'])
test('haddockA030', normal, compile, ['-haddock -ddump-parsed'])
test('haddockA031', normal, compile, ['-haddock -ddump-parsed -XExistentialQuantification'])
test('haddockA032', normal, compile, ['-haddock -ddump-parsed'])
# The tests below this line are not duplicated in
# should_compile_noflag_haddock.
test('haddockA033', normal, compile, ['-haddock -ddump-parsed'])
test('haddockA034', normal, compile, ['-haddock -ddump-parsed'])
test('T10398', normal, compile, ['-haddock -ddump-parsed'])
test('haddockB001', normal, compile, [''])
test('haddockB002', normal, compile, [''])
test('haddockB003', normal, compile, [''])
test('haddockB004', normal, compile, [''])
# should_compile_flag_nohaddock
#
# * flag: we *do* pass the -haddock flag
#
# * nohaddock: but tests do *not* contain haddock annotations
#
# When adding a new test here, think about adding it to the
# should_compile_noflag_nohaddock directory as well.
test('haddockB001', normal, compile, ['-haddock'])
test('haddockB002', normal, compile, ['-haddock'])
test('haddockB003', normal, compile, ['-haddock'])
test('haddockB004', normal, compile, ['-haddock'])
# should_compile_noflag_haddock
#
# * noflag: we do *not* pass the -haddock flag
#
# * haddock: but tests *do* contain haddock annotations
#
# When adding a new test here, think about adding it to the
# should_compile_flag_haddock directory as well.
test('haddockC001', normal, compile, [''])
test('haddockC002', normal, compile, [''])
test('haddockC003', normal, compile, [''])
......@@ -30,4 +39,8 @@ test('haddockC029', normal, compile, [''])
test('haddockC030', normal, compile, [''])
test('haddockC031', normal, compile, ['-XExistentialQuantification'])
test('haddockC032', normal, compile, [''])
# The tests below this line are not duplicated in
# should_compile_flag_haddock.
test('haddockSimplUtilsBug', normal, compile, [''])
# should_compile_noflag_nohaddock
#
# * noflag: we do *not* pass the -haddock flag
#
# * nohaddock: and tests do *not* contain haddock annotations
#
# When adding a new test here, think about adding it to the
# should_compile_flag_nohaddock directory as well.
test('haddockD001', normal, compile, [''])
test('haddockD002', normal, compile, [''])
test('haddockD003', normal, compile, [''])
......
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