Home
last modified time | relevance | path

Searched +full:lit +full:- +full:tests (Results 1 – 25 of 485) sorted by relevance

12345678910>>...20

/llvm-project/llvm/docs/CommandGuide/
H A Dlit.rst1 lit - LLVM Integrated Tester
4 .. program:: lit
7 -------
[all...]
/llvm-project/llvm/utils/lit/lit/
H A Dmain.py2 lit - LLVM Integrated Tester.
4 See lit.pod for more information.
13 import lit.cl_arguments
14 import lit.discovery
15 import lit.display
16 import lit.LitConfig
17 import lit.reports
18 import lit.run
19 import lit
169 print_discovered(tests, show_suites, show_tests) global() argument
193 determine_order(tests, order) global() argument
210 filter_by_shard(tests, run, shards, lit_config) global() argument
246 run_tests(tests, lit_config, opts, discovered_tests) global() argument
304 print_histogram(tests) global() argument
312 print_results(tests, elapsed, opts) global() argument
328 print_group(tests, code, shown_codes) global() argument
[all...]
H A Dreports.py11 import lit.Test
16 # key to avoid mixing tests of different suites.
26 def write_results(self, tests, elapsed):
38 self._write_results_to_file(tests, elapsed, report_file)
41 def _write_results_to_file(self, tests, elapsed, file):
47 def _write_results_to_file(self, tests, elapsed, file):
48 unexecuted_codes = {lit.Test.EXCLUDED, lit.Test.SKIPPED}
49 tests = [t for t in tests i
21 write_results(self, tests, elapsed) global() argument
96 write_results(self, tests, elapsed) global() argument
107 _write_testsuite(self, file, suite, tests) global() argument
205 write_results(self, tests, elapsed) global() argument
254 write_results(self, tests, elapsed) global() argument
[all...]
H A Drun.py6 import lit.Test
7 import lit.util
8 import lit.worker
23 self, tests, lit_config, workers, progress_callback, max_failures, timeout
25 self.tests = tests
35 Execute the tests in the run using up to the specified number of
37 provided tests should be a subset of the tests available in this run
42 If timeout is non-Non
22 __init__( self, tests, lit_config, workers, progress_callback, max_failures, timeout ) global() argument
[all...]
H A Dcl_arguments.py7 import lit.reports
8 import lit.util
19 parser = argparse.ArgumentParser(prog="lit", fromfile_prefix_chars="@")
28 "--version", action="version", version="%(prog)s " + lit.__version__
32 "-j",
33 "--threads",
34 "-
[all...]
/llvm-project/llvm/utils/lit/
H A DCMakeLists.txt2 # until the tests are run as we need to copy it into
3 # a copy of the tests folder
5 "${CMAKE_CURRENT_SOURCE_DIR}/tests/lit.site.cfg.in"
6 "${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg"
9 # Lit's test suite creates output files next to the sources which makes the
11 # To work around this the tests and the configuration file are copied into the
12 # build directory just before running them. The tests are not copied over at
14 # tests being run.
15 add_custom_target(prepare-check-lit
16 COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_CURRENT_BINARY_DIR}/tests"
[all …]
H A DREADME.rst2 lit - A Software Testing Tool
8 *lit* is a portable tool for executing LLVM and Clang style test suites,
9 summarizing their results, and providing indication of failures. *lit* is
26 The official *lit* documentation is in the man page, available online at the LLVM
27 Command Guide: http://llvm.org/cmds/lit.html.
33 The *lit* source is available as part of LLVM, in the LLVM source repository:
34 https://github.com/llvm/llvm-project/tree/main/llvm/utils/lit
37 Contributing to lit
40 Please browse the issues labeled *tools:llvm-lit* in LLVM's issue tracker for
42 https://github.com/llvm/llvm-project/labels/tools%3Allvm-lit
[all …]
/llvm-project/llvm/utils/lit/tests/
H A Ddiscovery.py1 # Check the basic discovery process, including a sub-suite.
3 # RUN: %{lit} %{inputs}/discovery \
4 # RUN: --debug --show-tests --show-suites \
5 # RUN: -v > %t.out 2> %t.err
6 # RUN: FileCheck --check-prefix=CHECK-BASIC-OUT < %t.out %s
7 # RUN: FileCheck --check-prefix=CHECK-BASIC-ERR < %t.err %s
9 # CHECK-BASIC-ERR: loading suite config '{{.*(/|\\\\)discovery(/|\\\\)lit.cfg}}'
10 # CHECK-BASIC-ERR-DAG: loading suite config '{{.*(/|\\\\)discovery(/|\\\\)subsuite(/|\\\\)lit.cfg}}'
11 # CHECK-BASIC-ERR-DAG: loading local config '{{.*(/|\\\\)discovery(/|\\\\)subdir(/|\\\\)lit.local.c…
13 # CHECK-BASIC-OUT: -- Test Suites --
[all …]
H A Dselecting.py1 # RUN: %{lit} %{inputs}/discovery | FileCheck --check-prefix=CHECK-BASIC %s
2 # CHECK-BASIC: Testing: 5 tests
5 # Check that we exit with an error if we do not discover any tests, even with --allow-empty-runs.
7 # RUN: not %{lit} %{inputs}/nonexistent 2>&1 | FileCheck --check-prefix=CHECK-BA…
8 # RUN: not %{lit} %{inputs}/nonexistent --allow-empty-runs 2>&1 | FileCheck --check-prefix=CHECK-BA…
9 # CHECK-BAD-PATH: error: did not discover any tests for provided path(s)
11 # Check that we exit with an error if we filter out all tests, but allow it with --allow-empty-runs.
12 # Check that we exit with an error if we skip all tests, but allow it with --allow-empty-runs.
14 …N: not %{lit} --filter 'nonexistent' %{inputs}/discovery 2>&1 | FileCheck --che…
15 …N: %{lit} --filter 'nonexistent' --allow-empty-runs %{inputs}/discovery 2>&1 | FileCheck --che…
[all …]
H A Dlit.cfg1 # -*- Python -*-
8 import lit.formats
9 from lit.llvm import llvm_config
11 # Configuration file for the 'lit' test runner.
14 config.name = "lit"
16 # testFormat: The test format to use to interpret tests.
17 config.test_format = lit.formats.ShTest(execute_external=False)
25 # test_source_root: The root path where tests are located.
34 # ``lit.py``, so use `llvm_src_root` instead.
35 lit_path = os.path.join(llvm_src_root, "utils", "lit")
[all …]
/llvm-project/libcxx/docs/
H A DTestingLibcxx.rst13 libc++ uses LIT to configure and run its tests.
15 The primary way to run the libc++ tests is by using ``make check-cxx``.
18 configurations it is important to customize the way LIT builds and runs
19 the tests. This guide provides information on how to use LIT directly to
22 Please see the `Lit Command Guide`_ for more information about LIT.
24 .. _LIT Command Guide: https://llvm.org/docs/CommandGuide/lit
[all...]
/llvm-project/llvm/docs/
H A DTestingGuide.rst20 tests.
32 The LLVM testing infrastructure contains three major categories of tests:
33 unit tests, regression tests and whole programs. The unit tests and regression
34 tests are contained inside the LLVM repository itself under ``llvm/unittests``
35 and ``llvm/test`` respectively and are expected to always pass -- they should be
38 The whole programs tests are referred to as the "LLVM test suite" (or
39 "test-suit
[all...]
H A DTestSuiteGuide.md1 test-suite Guide
5 ---------
[all...]
/llvm-project/libcxx/utils/libcxx/test/
H A Dgooglebenchmark.py
/llvm-project/lldb/test/
H A DCMakeLists.txt2 # for use by Lit, and delegates to LLVM's lit test handlers.
3 # Lit requires a Python3 interpreter, let's be careful and fail early if it's
8 "was found. Please install Python3 or disable tests with "
14 # Lit uses psutil to do per-test timeouts.
35 # In order to run check-lldb-* we need the correct map_config directives in
36 # llvm-lit
[all...]
/llvm-project/llvm/utils/lit/lit/formats/
H A Dbase.py4 import lit.Test
5 import lit.util
11 Given the path to a test in the test suite, generates the Lit tests associated
12 to that path. There can be zero, one or more tests. For example, some testing
13 formats allow expanding a single path in the test suite into multiple Lit tests
16 Note that this method is only used when Lit needs to actually perform test
17 discovery, which is not the case for configs with standalone tests.
19 yield lit.Test.Test(testSuite, path_in_suite, localConfig)
27 Expand each path in a test suite to a Lit test using that path and assuming
31 filename = path_in_suite[-1]
[all …]
H A Dgoogletest.py9 import lit.Test
10 import lit.TestRunner
11 import lit.util
22 # On Windows, assume tests will also end in '.exe'.
33 [path, "--gtest_list_tests", "--gtest_filter=-*DISABLED_*"]
39 "unable to discover google-test
284 remove_gtest(tests) global() argument
[all...]
/llvm-project/clang/test/
H A DCMakeLists.txt2 # for use by Lit, and delegates to LLVM's lit test handlers.
28 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
29 ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
31 ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
47 ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.py.in
48 ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg.py
50 ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.cfg.py
60 option(CLANG_TEST_USE_VG "Run Clang tests under Valgrind" OFF)
62 set(CLANG_TEST_EXTRA_ARGS ${CLANG_TEST_EXTRA_ARGS} "-
[all...]
/llvm-project/lldb/test/API/
H A Dlldbtest.py6 import lit.Test
7 import lit.TestRunner
8 import lit.util
9 from lit.formats.base import TestFormat
19 # Ignore dot files and excluded tests.
31 yield lit.Test.Test(
37 return lit.Test.PASS, ""
40 return (lit.Test.UNSUPPORTED, "Python module disabled")
43 return (lit.Test.UNSUPPORTED, "Test is unsupported")
47 # The Python used to run lit ca
[all...]
/llvm-project/lldb/test/Shell/
H A Dlit.cfg.py1 # -*- Python -*-
12 import lit.formats
13 from lit.llvm import llvm_config
14 from lit.llvm.subst import FindTool
15 from lit.llvm.subst import ToolSubst
21 config.name = "lldb-shell"
23 # testFormat: The test format to use to interpret tests
[all...]
/llvm-project/polly/test/
H A DCMakeLists.txt3 add_custom_target(check-polly)
4 set_target_properties(check-polly PROPERTIES FOLDER "Polly/Meta")
37 set(POLLY_TEST_DEPS llvm-config opt LLVMPolly FileCheck not count)
41 list(APPEND POLLY_TEST_DEPS polly-isl-test)
57 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
58 ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg)
60 # Run regression and unit tests
61 add_lit_testsuite(check-polly-tests "Running polly regression tests"
63 PARAMS polly_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
64 polly_unit_site_config=${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg
[all …]
/llvm-project/compiler-rt/test/tsan/
H A DCMakeLists.txt36 string(TOLOWER "-${arch}" TSAN_TEST_CONFIG_SUFFIX)
43 string(APPEND TSAN_TEST_TARGET_CFLAGS " -msse4.2 ")
50 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
51 ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME}/lit.site.cfg.py
53 ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
58 string(TOLOWER "-${arch}-${OS_NAME}-dynamic" TSAN_TEST_CONFIG_SUFFIX)
61 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
62 ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME}/lit
[all...]
/llvm-project/mlir/test/
H A DCMakeLists.txt15 # Passed to lit.site.cfg.py.in to set up the path where to find libraries.
20 "If set, arch-specific integration tests are run with Intel SDE.")
22 "If set, arch-specific Arm integration tests are run with an emulator.")
24 "If arch-specific Arm integration tests run emulated, pass these as parameters to the emulator.")
26 "If arch-specific Arm integration tests run emulated, use this Arm native mlir-runne
[all...]
/llvm-project/libcxx/utils/
H A Dlibcxx-lit3 set -e
9 ${PROGNAME} [-h|--help] [-b|--bootstrap] <build-directory> [lit options...] tests
[all...]
/llvm-project/clang/test/utils/update_cc_test_checks/
H A Dlit.local.cfg4 import lit.util
14 # These tests require the update_cc_test_checks.py script from the llvm
15 # source tree, so skip these tests if we are doing standalone builds.
16 # These tests are only relevant to developers working with the
22 config.test_format = lit.formats.ShTest(execute_external=False)
26 extra_args = "--clang " + shell_quote(clang_path)
28 extra_args += " --opt " + shell_quote(opt_path)
29 # Specify an explicit default version in UTC tests, so that the --version
32 extra_args += " --version=1"
37 # Windows: llvm-lit.py, Linux: llvm-lit
[all …]

12345678910>>...20