summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorZubin Duggal <zubin.duggal@gmail.com>2021-10-04 15:58:39 +0530
committerZubin Duggal <zubin.duggal@gmail.com>2021-10-13 13:51:03 +0530
commit8c224b6d43e220930ef0a60e50636e4910d15229 (patch)
tree99459405e1e362bc04b9710917320e72724624f1 /testsuite
parent337a31db4a6985e70ea1d852f4eb7e5d3f929c9b (diff)
downloadhaskell-8c224b6d43e220930ef0a60e50636e4910d15229.tar.gz
ci: test in-tree compiler in hadrian
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/driver/runtests.py6
-rw-r--r--testsuite/driver/testglobals.py3
2 files changed, 5 insertions, 4 deletions
diff --git a/testsuite/driver/runtests.py b/testsuite/driver/runtests.py
index b315e80d09..eff240fc78 100644
--- a/testsuite/driver/runtests.py
+++ b/testsuite/driver/runtests.py
@@ -79,8 +79,8 @@ perf_group.add_argument("--skip-perf-tests", action="store_true", help="skip per
perf_group.add_argument("--only-perf-tests", action="store_true", help="Only do performance tests")
parser.add_argument("--ignore-perf-failures", choices=['increases','decreases','all'],
help="Do not fail due to out-of-tolerance perf tests")
-parser.add_argument("--only-report-hadrian-deps", action="store_true",
- help="Dry run the testsuite and report all extra hadrian depenedencies needed on stderr")
+parser.add_argument("--only-report-hadrian-deps", type=argparse.FileType('w'),
+ help="Dry run the testsuite and report all extra hadrian depenedencies needed on the given file")
args = parser.parse_args()
@@ -571,7 +571,7 @@ else:
if config.only_report_hadrian_deps:
print("WARNING - skipping all tests and only reporting required hadrian dependencies:", config.hadrian_deps)
for d in config.hadrian_deps:
- print(d,file=sys.stderr)
+ print(d,file=config.only_report_hadrian_deps)
if len(t.unexpected_failures) > 0 or \
len(t.unexpected_stat_failures) > 0 or \
diff --git a/testsuite/driver/testglobals.py b/testsuite/driver/testglobals.py
index e3df29c980..da82458fcf 100644
--- a/testsuite/driver/testglobals.py
+++ b/testsuite/driver/testglobals.py
@@ -214,7 +214,8 @@ class TestConfig:
self.hadrian_deps = set() # type: Set[str]
# Are we only reporting hadrian dependencies?
- self.only_report_hadrian_deps = False # type: bool
+ # The path specifies the file in which to write the dependencies
+ self.only_report_hadrian_deps = None # type: Optional[Path]
def validate(self) -> None: