testsuite: Add test for #8305

This is a test for the current algorithm of GHCi command name resolution.

I add this test in preparation for updating GHCi command name resolution.

For the current algorithm, see https://downloads.haskell.org/ghc/latest/docs/html/users_guide/ghci.html#the-ghci-files
21 jobs for master in 422 minutes and 59 seconds (queued for 17 seconds)
Status Job ID Name Coverage
  Lint
passed #179666
lint
lint-linters

00:00:19

passed #179669
lint
lint-submods-branch

00:00:27

passed #179667
lint
lint-testsuite

00:00:22

passed #179668
lint
typecheck-testsuite

00:00:21

 
  Quick Build
passed #179670
x86_64-linux
hadrian-ghc-in-ghci

00:15:57

 
  Build
passed #179673
x86_64-linux
release-x86_64-linux-deb9-dwarf

01:51:18

passed #179672
x86_64-linux
validate-x86_64-linux-deb9-debug

02:17:26

passed #179671
x86_64-linux
validate-x86_64-linux-deb9-hadrian

02:41:09

 
  Full Build
failed #179675
aarch64-linux allowed to fail
validate-aarch64-linux-deb9

01:05:23

passed #179676
x86_64-linux
validate-i386-linux-deb9

01:33:19

passed #179674
x86_64-darwin
validate-x86_64-darwin

00:56:45

passed #179677
x86_64-linux
validate-x86_64-linux-deb9-integer-simple

01:14:21

passed #179678
x86_64-linux
validate-x86_64-linux-deb9-unreg

02:04:32

passed #179679
x86_64-linux
validate-x86_64-linux-fedora27

01:16:21

failed #179681
x86_64-windows allowed to fail
validate-x86_64-windows

00:36:12

failed #179680
x86_64-windows allowed to fail
validate-x86_64-windows-hadrian

02:53:45

 
  Cleanup
passed #179682
x86_64-darwin
cleanup-darwin

00:00:04

 
  Packaging
failed #179683
x86_64-linux allowed to fail
doc-tarball

00:01:27

 
  Testing
manual #179684
x86_64-linux allowed to fail manual
hackage
passed #179685
x86_64-linux
perf-nofib

00:33:49

 
  Deploy
failed #179686
x86_64-linux allowed to fail
pages

00:01:34

 
Name Stage Failure
failed
doc-tarball Packaging
Submodule path 'utils/hsc2hs': checked out '4c65964de3ca1a002901cae95217ad10b95edeeb'
$ git checkout .gitmodules
$ git fetch https://gitlab.haskell.org/ghc/ghc-performance-notes.git refs/notes/perf:refs/notes/perf || true
warning: no common commits
From https://gitlab.haskell.org/ghc/ghc-performance-notes
* [new ref] refs/notes/perf -> refs/notes/perf
$ if [ ! -f "$LINUX_BINDIST" ]; then # collapsed multi-line command
Error: ghc-x86_64-mingw32.tar.xz does not exist. Did the 64-bit Windows job fail?
ERROR: Job failed: exit code 1
failed
validate-aarch64-linux-deb9 Full Build
$ cp -Rf $HOME/.cabal cabal-cache
Uploading artifacts...
WARNING: ghc-*.tar.xz: no matching files
WARNING: junit.xml: no matching files
ERROR: No files to upload
Uploading artifacts...
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
pages Deploy
Synchronizing submodule url for 'utils/hsc2hs'
$ git submodule update --init --recursive
$ git checkout .gitmodules
$ git fetch https://gitlab.haskell.org/ghc/ghc-performance-notes.git refs/notes/perf:refs/notes/perf || true
$ mkdir -p public/doc
$ tar -xf haddock.html.tar.xz -C public/doc
tar: haddock.html.tar.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
ERROR: Job failed: exit code 1
failed
validate-x86_64-windows Full Build
Runtime platform                                    arch=amd64 os=windows pid=7048 revision=1f513601 version=11.10.1
WARNING: ghc-*.tar.xz: no matching files
WARNING: junit.xml: no matching files
ERROR: No files to upload
Uploading artifacts...
Runtime platform
arch=amd64 os=windows pid=2980 revision=1f513601 version=11.10.1
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit status 2
failed
validate-x86_64-windows-hadrian Full Build
junit.xml: found 1 matching files                  
WARNING: Failed to load system CertPool:crypto/x509: system root pool is not available on Windows
Uploading artifacts to coordinator... ok
id=179680 responseStatus=201 Created token=4qqWzsTn
Uploading artifacts...
Runtime platform
arch=amd64 os=windows pid=5308 revision=1f513601 version=11.10.1
junit.xml: found 1 matching files

WARNING: Failed to load system CertPool:crypto/x509: system root pool is not available on Windows
Uploading artifacts to coordinator... ok
id=179680 responseStatus=201 Created token=4qqWzsTn
ERROR: Job failed: exit status 1