summaryrefslogtreecommitdiff
path: root/testsuite/driver/testglobals.py
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2015-08-29 15:52:43 +0200
committerThomas Miedema <thomasmiedema@gmail.com>2016-05-17 18:06:05 +0200
commit3f3dc23ea64573a12e2f4bfdaaa3aa536ad3188d (patch)
tree19caf96220f19094efca6171fa980829f4b9794d /testsuite/driver/testglobals.py
parentdc94914eb0da985a2f006e2bd390fa1fdbafcc33 (diff)
downloadhaskell-3f3dc23ea64573a12e2f4bfdaaa3aa536ad3188d.tar.gz
Testsuite: run tests in /tmp after copying required files
Major change to the testsuite driver. For each TEST: * create a directory `<testdir>` inside `/tmp`. * link/copy all source files that the test needs into `<testdir>`. * run the test inside `<testdir>`. * delete `<testdir>` Extra files are (temporarily) tracked in `testsuite/driver/extra_files.py`, but can also be specified using the `extra_files` setup function. Differential Revision: https://phabricator.haskell.org/D1187 Reviewed by: Rufflewind, bgamari Trac: #11980
Diffstat (limited to 'testsuite/driver/testglobals.py')
-rw-r--r--testsuite/driver/testglobals.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/driver/testglobals.py b/testsuite/driver/testglobals.py
index d1976923a0..9f88acf445 100644
--- a/testsuite/driver/testglobals.py
+++ b/testsuite/driver/testglobals.py
@@ -210,6 +210,9 @@ class TestOptions:
# extra files to clean afterward
self.clean_files = []
+ # extra files to copy to the testdir
+ self.extra_files = []
+
# which -t numeric fields do we want to look at, and what bounds must
# they fall within?
# Elements of these lists should be things like