diff options
author | Krzysztof Gogolewski <krz.gogolewski@gmail.com> | 2018-08-12 10:09:41 +0200 |
---|---|---|
committer | Krzysztof Gogolewski <krz.gogolewski@gmail.com> | 2018-08-12 10:09:42 +0200 |
commit | 97596a44cafefba6b03f1dca8f445078dae12ba7 (patch) | |
tree | 7d227d524652026085706a7b8565256ee9e50da3 /testsuite/config | |
parent | f27d7145414eae17a211b88908965c91b0236a0f (diff) | |
download | haskell-97596a44cafefba6b03f1dca8f445078dae12ba7.tar.gz |
Simplify testsuite driver, part 2
Summary:
- Avoid import *; this helps tools such as pyflakes.
The last occurrence in runtests.py is not easy to remove
as it's used by .T files.
- Use False/True instead of 0/1.
Test Plan: validate
Reviewers: bgamari, thomie, simonmar
Reviewed By: thomie
Subscribers: rwbarton, carter
Differential Revision: https://phabricator.haskell.org/D5062
Diffstat (limited to 'testsuite/config')
-rw-r--r-- | testsuite/config/ghc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/testsuite/config/ghc b/testsuite/config/ghc index 6777a59473..e974b62a96 100644 --- a/testsuite/config/ghc +++ b/testsuite/config/ghc @@ -33,7 +33,7 @@ config.other_ways = ['prof', 'normal_h', 'ghci-ext', 'ghci-ext-prof', 'ext-interp'] -if (ghc_with_native_codegen == 1): +if ghc_with_native_codegen: config.compile_ways.append('optasm') config.run_ways.append('optasm') @@ -44,25 +44,25 @@ if config.have_profiling: if config.have_interp: config.run_ways.append('ghci') -if (ghc_with_threaded_rts == 1): +if ghc_with_threaded_rts: config.run_ways.append('threaded1') - if (ghc_with_smp == 1): + if ghc_with_smp: config.have_smp = True config.run_ways.append('threaded2') -if (ghc_with_dynamic_rts == 1): +if ghc_with_dynamic_rts: config.have_shared_libs = True if config.ghc_dynamic_by_default and config.have_vanilla == 1: config.run_ways.append('static') else: - if (ghc_with_dynamic_rts == 1): + if ghc_with_dynamic_rts: config.run_ways.append('dyn') -if (config.have_profiling and ghc_with_threaded_rts == 1): +if (config.have_profiling and ghc_with_threaded_rts): config.run_ways.append('profthreaded') -if (ghc_with_llvm == 1 and not config.unregisterised): +if (ghc_with_llvm and not config.unregisterised): config.compile_ways.append('optllvm') config.run_ways.append('optllvm') |