testsuite: Test named X but want to use Y.hs as source

Ömer Sinan Ağacan omeragacan at gmail.com
Sun Jul 10 09:16:05 UTC 2016


I have some number of test programs that I compile and run as usual. I also
want to run them using GHCi, with -fobject-code. So I tried this:

    def just_ghci( name, opts ):
        opts.only_ways = ['ghci']

    test('unboxedsums1.ghci', just_ghci, compile_and_run, ['-fobject-code'])

Now, I don't have a file named `unboxedsums1.ghci.hs`, I want to use
`unboxedsums1.hs` and I already have a test named `unboxedsums1`.

Any ideas how to do this?

Thanks


More information about the ghc-devs mailing list