• Alp Mestanogullari's avatar
    Hadrian: ability to run a subset of the testsuite · a5e76a07
    Alp Mestanogullari authored and Ben Gamari's avatar Ben Gamari committed
    This was supposed to be working already but didn't work when we
    specified several tests with --only. This patch not only fixes this
    but also makes it possible to specify a subset of tests to run with the
    TEST environment variable, like the make build system. Here are some
        hadrian/build.sh test --only=plugins01
        hadrian/build.sh test --only="plugins01 plugins02"
        TEST="plugins01 plugins02" hadrian/build.sh test
        TEST=plugins03 hadrian/build.sh test --only="plugins01 plugins02"
    When both the TEST environment variable and the --only flag are used,
    we simply concatenate the list of tests from both sources and ask the
    testsuite driver to run them all.
    This patch addresses #16026.
    Test Plan: hadrian/build.sh test --only="plugins01 plugins02"
    Reviewers: bgamari, snowleopard
    Reviewed By: bgamari, snowleopard
    Subscribers: rwbarton, carter
    GHC Trac Issues: #16026
    Differential Revision: https://phabricator.haskell.org/D5431
RunTest.hs 9.85 KB