We already print available features, and it can be useful to print
substitutions as well since those are a pretty fundamental part of
a test suite. We could also consider printing other things like the
test environment, however the need doesn't appear to be as strong.
As a fly-by fix, we also always print available features, even when
there are none.
Before:
$ lit -sv libcxx/test --show-suites
-- Test Suites --
libc++ - 6350 tests
Source Root: [...]
Exec Root : [...]
Available Features : -faligned-allocation -fsized-deallocation [...]
After:
$ lit -sv libcxx/test --show-suites
-- Test Suites --
libc++ - 6350 tests
Source Root: [...]
Exec Root : [...]
Available Features: -faligned-allocation -fsized-deallocation [...]
Available Substitutions: %{build_module} => [...]
%{build} => %{cxx} -o [...]
Differential Revision: https://reviews.llvm.org/D77818
21 lines
759 B
INI
21 lines
759 B
INI
import lit.formats
|
|
config.name = 'top-level-suite'
|
|
config.suffixes = ['.txt']
|
|
config.test_format = lit.formats.ShTest()
|
|
|
|
# We intentionally don't set the source root or exec root directories here,
|
|
# because this suite gets reused for testing the exec root behavior (in
|
|
# ../exec-discovery).
|
|
#
|
|
#config.test_source_root = None
|
|
#config.test_exec_root = None
|
|
|
|
# Check that arbitrary config values are copied (tested by subdir/lit.local.cfg).
|
|
config.an_extra_variable = False
|
|
|
|
# Check that available_features are printed by --show-suites (and in the right order)
|
|
config.available_features = ['feature2', 'feature1']
|
|
|
|
# Check that substitutions are printed by --show-suites (and in the right order)
|
|
config.substitutions = [('%key2', 'value2'), ('%key1', 'value1')]
|