Home
last modified time | relevance | path

Searched +full:module +full:- +full:path +full:- +full:tests (Results 1 – 25 of 1313) sorted by relevance

12345678910>>...53

/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/unittest/test/
H A Dtest_discovery.py1 import os.path
2 from os.path import abspath
17 module = None variable in TestableTestProgram
30 # Heavily mocked tests so I can avoid hitting the filesystem
50 original_isfile = os.path.isfile
52 os.path.isfile = original_isfile
53 original_isdir = os.path.isdir
55 os.path.isdir = original_isdir
58 'test.foo', 'test-not-a-module.py', 'another_dir'],
60 os.listdir = lambda path: path_lists.pop(0)
[all …]
/aosp_15_r20/external/python/cpython3/Lib/unittest/test/
Dtest_discovery.py1 import os.path
2 from os.path import abspath
17 module = None variable in TestableTestProgram
30 # Heavily mocked tests so I can avoid hitting the filesystem
50 original_isfile = os.path.isfile
52 os.path.isfile = original_isfile
53 original_isdir = os.path.isdir
55 os.path.isdir = original_isdir
58 'test.foo', 'test-not-a-module.py', 'another_dir'],
60 os.listdir = lambda path: path_lists.pop(0)
[all …]
/aosp_15_r20/external/python/cpython2/Lib/unittest/test/
Dtest_discovery.py11 # Heavily mocked tests so I can avoid hitting the filesystem
32 original_isfile = os.path.isfile
34 os.path.isfile = original_isfile
35 original_isdir = os.path.isdir
37 os.path.isdir = original_isdir
40 'test.foo', 'test-not-a-module.py', 'another_dir'],
42 os.listdir = lambda path: path_lists.pop(0)
45 def isdir(path): argument
46 return path.endswith('dir')
47 os.path.isdir = isdir
[all …]
/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/unittest/
H A Dloader.py18 # we would need to avoid loading the same tests multiple times
20 VALID_MODULE_NAME = re.compile(r'[_a-z]\w*\.py$', re.IGNORECASE)
39 message = 'Failed to import test module: %s\n%s' % (
60 def _jython_aware_splitext(path): argument
61 if path.lower().endswith('$py.class'):
62 return path[:-9]
63 return os.path.splitext(path)[0]
68 This class is responsible for loading tests according to various criteria
81 # avoid infinite re-entrancy.
98 def loadTestsFromModule(self, module, *args, pattern=None, **kws): argument
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/unittest/
Dloader.py18 # we would need to avoid loading the same tests multiple times
20 VALID_MODULE_NAME = re.compile(r'[_a-z]\w*\.py$', re.IGNORECASE)
39 message = 'Failed to import test module: %s\n%s' % (
60 def _jython_aware_splitext(path): argument
61 if path.lower().endswith('$py.class'):
62 return path[:-9]
63 return os.path.splitext(path)[0]
68 This class is responsible for loading tests according to various criteria
81 # avoid infinite re-entrancy.
98 def loadTestsFromModule(self, module, *args, pattern=None, **kws): argument
[all …]
/aosp_15_r20/external/python/cpython3/Lib/unittest/
Dloader.py18 # we would need to avoid loading the same tests multiple times
20 VALID_MODULE_NAME = re.compile(r'[_a-z]\w*\.py$', re.IGNORECASE)
39 message = 'Failed to import test module: %s\n%s' % (
60 def _jython_aware_splitext(path): argument
61 if path.lower().endswith('$py.class'):
62 return path[:-9]
63 return os.path.splitext(path)[0]
68 This class is responsible for loading tests according to various criteria
81 # avoid infinite re-entrancy.
98 def loadTestsFromModule(self, module, *args, pattern=None, **kws): argument
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/unittest/
Dloader.py18 # we would need to avoid loading the same tests multiple times
20 VALID_MODULE_NAME = re.compile(r'[_a-z]\w*\.py$', re.IGNORECASE)
39 message = 'Failed to import test module: %s\n%s' % (
60 def _jython_aware_splitext(path): argument
61 if path.lower().endswith('$py.class'):
62 return path[:-9]
63 return os.path.splitext(path)[0]
68 This class is responsible for loading tests according to various criteria
81 # avoid infinite re-entrancy.
98 def loadTestsFromModule(self, module, *args, pattern=None, **kws): argument
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/unittest/
Dloader.py18 # we would need to avoid loading the same tests multiple times
20 VALID_MODULE_NAME = re.compile(r'[_a-z]\w*\.py$', re.IGNORECASE)
39 message = 'Failed to import test module: %s\n%s' % (
60 def _jython_aware_splitext(path): argument
61 if path.lower().endswith('$py.class'):
62 return path[:-9]
63 return os.path.splitext(path)[0]
68 This class is responsible for loading tests according to various criteria
81 # avoid infinite re-entrancy.
98 def loadTestsFromModule(self, module, *args, pattern=None, **kws): argument
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/unittest/
Dloader.py18 # we would need to avoid loading the same tests multiple times
20 VALID_MODULE_NAME = re.compile(r'[_a-z]\w*\.py$', re.IGNORECASE)
39 message = 'Failed to import test module: %s\n%s' % (
60 def _jython_aware_splitext(path): argument
61 if path.lower().endswith('$py.class'):
62 return path[:-9]
63 return os.path.splitext(path)[0]
68 This class is responsible for loading tests according to various criteria
81 # avoid infinite re-entrancy.
98 def loadTestsFromModule(self, module, *args, pattern=None, **kws): argument
[all …]
/aosp_15_r20/tools/asuite/atest/
H A Dmodule_info.py7 # http://www.apache.org/licenses/LICENSE-2.0
15 """Module Info class used to hold cached module-info.json."""
17 # pylint: disable=too-many-lines
24 from pathlib import Path
41 _MODULE_INFO = 'module-info.json'
46 # JSON file generated by atest merged the content from module-info,
50 _DB_NAME = f'module-info.{_DB_VERSION}.db'
55 Module = Dict[str, Any] variable
59 module_file: Path = None, argument
61 ) -> ModuleInfo:
[all …]
H A Dcli_translator.py7 # http://www.apache.org/licenses/LICENSE-2.0
17 # pylint: disable=too-many-lines
27 from pathlib import Path
53 MAINLINE_LOCAL_DOC = 'go/mainline-local-build'
79 whether it could be referencing a Module, Class, Package, etc.
97 mod_info: ModuleInfo class that has cached module-info.json.
118 'run, if test info needs to be updated, please add -c '
125 def _wait_for_index_if_needed(self) -> None:
134 print('Waiting for the module indexing to complete.')
138 result=int(round((time.time() - start_wait_for_indexing) * 1000)),
[all …]
H A Darg_parser.py9 # http://www.apache.org/licenses/LICENSE-2.0
26 def _output_mode_msg() -> str:
49 value: A string of a command-line argument.
74 parser.add_argument('tests', nargs='*', help='Tests to build and/or run.')
77 '--minimal-build',
82 ' --no-minimal-build to disable it.'
86 '--update-device',
97 '--update:modules',
107 '-a',
108 '--all-abi',
[all …]
H A Dcli_translator_unittest.py9 # http://www.apache.org/licenses/LICENSE-2.0
45 TEST_MAPPING_TOP_DIR = os.path.join(uc.TEST_DATA_DIR, 'test_mapping')
46 TEST_MAPPING_DIR = os.path.join(TEST_MAPPING_TOP_DIR, 'folder1')
60 PRODUCT_OUT_DIR = os.path.join(BUILD_TOP_DIR, 'out/target/product/vsoc_x86_64')
61 HOST_OUT_DIR = os.path.join(BUILD_TOP_DIR, 'out/host/linux-x86')
64 # pylint: disable=unused-argument
82 # pylint: disable=protected-access
84 """Unit tests for cli_t.py"""
92 self.args.tests = []
113 # pylint: disable=too-many-locals
[all …]
/aosp_15_r20/external/python/cpython2/Lib/unittest/
Dloader.py17 # we would need to avoid loading the same tests multiple times
19 VALID_MODULE_NAME = re.compile(r'[_a-z]\w*\.py$', re.IGNORECASE)
23 message = 'Failed to import test module: %s\n%s' % (name, traceback.format_exc())
40 This class is responsible for loading tests according to various criteria
59 def loadTestsFromModule(self, module, use_load_tests=True): argument
60 """Return a suite of all test cases contained in the given module"""
61 tests = []
62 for name in dir(module):
63 obj = getattr(module, name)
65 tests.append(self.loadTestsFromTestCase(obj))
[all …]
/aosp_15_r20/external/python/cpython3/Doc/library/
Dtest.rst1 :mod:`test` --- Regression tests package for Python
4 .. module:: test
5 :synopsis: Regression tests package containing the testing suite for Python.
16 --------------
18 The :mod:`test` package contains all regression tests for Python as well as the
20 :mod:`test.support` is used to enhance your tests while
23 Each module in the :mod:`test` package whose name starts with ``test_`` is a
24 testing suite for a specific module or feature. All new tests should be written
25 using the :mod:`unittest` or :mod:`doctest` module. Some older tests are
32 Module :mod:`unittest`
[all …]
/aosp_15_r20/tools/test/mobly_extensions/scripts/
Dlocal_mobly_runner.py9 # http://www.apache.org/licenses/LICENSE-2.0
17 """Script for running git-based Mobly tests locally.
20 - Run an Android platform test module.
21 local_mobly_runner.py -m my_test_module
23 - Run an Android platform test module. Build the module and install test
25 local_mobly_runner.py -m my_test_module -b -i
27 - Run an Android platform test module with specific Android devices.
28 local_mobly_runner.py -m my_test_module -s DEV00001,DEV00002
30 - Run a list of zipped executable Mobly packages
31 local_mobly_runner.py -p test_pkg1,test_pkg2,test_pkg3
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/go/
Dalldocs.go2 // Use of this source code is governed by a BSD-style
5 // Code generated by 'go test cmd/go -v -run=^TestDocsUpToDate$ -fixdocs'; DO NOT EDIT.
24 // get add dependencies to current module and install them
27 // mod module maintenance
48 // goproxy module proxy protocol
49 // importpath import path syntax
50 // modules modules, module versions, and more
51 // module-auth module authentication using go.sum
53 // private configuration for downloading non-public code
73 // go build [-o output] [build flags] [packages]
[all …]
/aosp_15_r20/external/pigweed/pw_unit_test/
H A Ddocs.rst1 .. _module-pw_unit_test:
6 .. pigweed-module::
9 .. tab-set::
11 .. tab-item:: mylib_test.cpp
13 .. code-block:: c++
29 .. tab-item:: BUILD.bazel
31 .. code-block:: python
52 .. tab-item:: mylib.cc
54 .. code-block:: c++
69 .. tab-item:: mylib.h
[all …]
/aosp_15_r20/external/hamcrest/
H A Dbuild.xml.original4 …<property name="haltonfailure" value="true" description="Whether to halt the build if the tests fa…
7 … <tstamp><format property="build.timestamp" pattern="yyyy-MM-dd HH:mm:ss" timezone="GMT"/></tstamp>
8 …ache.tools.ant.taskdefs.optional.junit.JUnitTask" classpath="lib/integration/ant-junit-1.8.4.jar"/>
11 … depends="clean, bigjar, javadoc" description="Performs clean build, runs tests and packages for d…
18 <path id="cp-hamcrest-api-main" path=""/>
19 <path id="cp-hamcrest-api-test" path=""/>
20 <compile-module modulename="hamcrest-api"/>
21 <jar-module modulename="hamcrest-api"/>
22 <test-module modulename="hamcrest-api"/>
26 …<path id="cp-hamcrest-generator-main" path="lib/generator/qdox-2.0-M2.jar;build/hamcrest-api-${ver…
[all …]
/aosp_15_r20/external/python/pyfakefs/pyfakefs/tests/
Dfake_filesystem_unittest_test.py2 # Copyright 2015-2017 John McGehee
9 # http://www.apache.org/licenses/LICENSE-2.0
31 from pathlib import Path
34 import pyfakefs.tests.import_as_example
35 import pyfakefs.tests.logsio
44 from pyfakefs.tests.fixtures import module_with_attributes
100 self.assertFalse(os.path.exists("/fake_file.txt"))
112 """Fake io module is bound"""
113 self.assertFalse(os.path.exists("/fake_file.txt"))
125 """Fake os module is bound"""
[all …]
/aosp_15_r20/external/python/cpython2/Lib/
Ddoctest.py1 # Module doctest.
2 # Released to the public domain 16-Jan-2001, by Tim Peters ([email protected]).
7 # Provided as-is; use at your own risk; no warranty; no promises; enjoy!
9 r"""Module doctest -- a framework for running examples in docstrings.
11 In simplest use, end each module M to be tested with:
20 Then running the module as a script will cause the examples in the
30 Run it with the -v switch instead:
32 python M.py -v
42 with the unittest framework, and support for running non-Python text
107 # - Example: a <source, want> pair, plus an intra-docstring line number.
[all …]
/aosp_15_r20/tools/asuite/atest/test_finders/
H A Dtest_finder_utils.py7 # http://www.apache.org/licenses/LICENSE-2.0
17 # pylint: disable=too-many-lines
25 from pathlib import Path
73 r"find {0} -type f| egrep '.*/{1}\.(kt|java)$' || true",
79 r"find {0} -type f | egrep '.*{1}\.(kt|java)$' || true",
84 r"find {0} -wholename '*{1}' -type d -print",
89 r"find {0} -wholename '*/{1}\.xml' -print",
95 r"find {0} -type f -print | egrep -i '/*test.*\.(cc|cpp)$'"
96 f"| xargs -P0 egrep -sH '{_CC_GREP_RE}' || true"
107 _XML_PUSH_DELIM = '->'
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/
Ddoctest.py1 # Module doctest.
2 # Released to the public domain 16-Jan-2001, by Tim Peters ([email protected]).
7 # Provided as-is; use at your own risk; no warranty; no promises; enjoy!
9 r"""Module doctest -- a framework for running examples in docstrings.
11 In simplest use, end each module M to be tested with:
20 Then running the module as a script will cause the examples in the
30 Run it with the -v switch instead:
32 python M.py -v
42 with the unittest framework, and support for running non-Python text
111 # - Example: a <source, want> pair, plus an intra-docstring line number.
[all …]
/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/
H A Ddoctest.py1 # Module doctest.
2 # Released to the public domain 16-Jan-2001, by Tim Peters ([email protected]).
7 # Provided as-is; use at your own risk; no warranty; no promises; enjoy!
9 r"""Module doctest -- a framework for running examples in docstrings.
11 In simplest use, end each module M to be tested with:
20 Then running the module as a script will cause the examples in the
30 Run it with the -v switch instead:
32 python M.py -v
42 with the unittest framework, and support for running non-Python text
111 # - Example: a <source, want> pair, plus an intra-docstring line number.
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/
Ddoctest.py1 # Module doctest.
2 # Released to the public domain 16-Jan-2001, by Tim Peters ([email protected]).
7 # Provided as-is; use at your own risk; no warranty; no promises; enjoy!
9 r"""Module doctest -- a framework for running examples in docstrings.
11 In simplest use, end each module M to be tested with:
20 Then running the module as a script will cause the examples in the
30 Run it with the -v switch instead:
32 python M.py -v
42 with the unittest framework, and support for running non-Python text
111 # - Example: a <source, want> pair, plus an intra-docstring line number.
[all …]

12345678910>>...53