Skip to content

Hadrian: add --test-root-dirs, to only run specific directories of tests

Alp Mestanogullari requested to merge alp/ghc:wip/alp/hadrian-test-dir into master

We can specify several of those, by using the flag multiple times or just once but combining the directories with ':'.

Along the way, this patch also fixes the testsuite-related --only flag, so that we can use it many times instead of being force to specify a space-separated list of test in a single --only flag.


Example:

$ hadrian/build.sh -j6 test --test-root-dirs=testsuite/tests/th
[...]
[...]/bin/python3 testsuite/driver/runtests.py --rootdir=testsuite/tests/th [...]
[...]
SUMMARY for test run started at Tue May 14 17:58:09 2019 CEST
 0:01:09 spent to go through
     329 total tests, which gave rise to
    1665 test cases, of which
    1025 were skipped

       0 had missing libraries
     630 expected passes
      10 expected failures

       0 caused framework failures
       0 caused framework warnings
       0 unexpected passes
       0 unexpected failures
       0 unexpected stat failures

Merge request reports