diff options
author | Sam Clegg <sbc@chromium.org> | 2020-12-09 13:50:41 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-09 13:50:41 -0800 |
commit | 64d2aef103ce19f280cff34e5a60f5035cacaa29 (patch) | |
tree | 7b103627b87e9bcc06110c0a60fda243a1668085 /test/lit/lit.site.cfg.py.in | |
parent | 823222ff566b38495327bc28b4726871b0a86b26 (diff) | |
download | binaryen-64d2aef103ce19f280cff34e5a60f5035cacaa29.tar.gz binaryen-64d2aef103ce19f280cff34e5a60f5035cacaa29.tar.bz2 binaryen-64d2aef103ce19f280cff34e5a60f5035cacaa29.zip |
Improve lit support (#3426)
This uses the same technique used in llvm-lit to enable
running on in-tree tests with out-of-tree builds.
So you can run something like this:
../binaryen-out/bin/binaryen-lit test/lit/
Diffstat (limited to 'test/lit/lit.site.cfg.py.in')
-rw-r--r-- | test/lit/lit.site.cfg.py.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lit/lit.site.cfg.py.in b/test/lit/lit.site.cfg.py.in index 4b976dbad..c5c349ab1 100644 --- a/test/lit/lit.site.cfg.py.in +++ b/test/lit/lit.site.cfg.py.in @@ -1,7 +1,7 @@ import os -config.src_root = r'@CMAKE_SOURCE_DIR@' -config.binaryen_root = r'@CMAKE_BINARY_DIR@' +config.binaryen_src_root = r'@CMAKE_SOURCE_DIR@' +config.binaryen_build_root = r'@CMAKE_BINARY_DIR@' lit_config.load_config( - config, os.path.join(config.src_root, 'test', 'lit', 'lit.cfg.py')) + config, os.path.join(config.binaryen_src_root, 'test', 'lit', 'lit.cfg.py')) |