Home
last modified time | relevance | path

Searched +full:python3 +full:- +full:pytest (Results 1 – 25 of 32) sorted by relevance

12

/third_party/ninja/.github/workflows/
Dlinux.yml11 runs-on: [ubuntu-latest]
15 - uses: actions/checkout@v2
16 - uses: codespell-project/actions-codespell@master
19 - name: Install dependencies
21 … curl -L -O https://github.com/Kitware/CMake/releases/download/v3.16.4/cmake-3.16.4-Linux-x86_64.sh
22 chmod +x cmake-3.16.4-Linux-x86_64.sh
23 ./cmake-3.16.4-Linux-x86_64.sh --skip-license --prefix=/usr/local
24 …curl -L -O https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/7/x86_64/Packages/p/p…
25 …curl -L -O https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/7/x86_64/Packages/p/p…
26 rpm -U --quiet p7zip-16.02-20.el7.x86_64.rpm
[all …]
/third_party/libfuse/test/
Dwrong_command.c7 …"'cd <srcdir>/subprojects/libfuse && meson . build && cd build && python3 -m pytest test/' instead… in main()
12 "You probably want to run 'python3 -m pytest test/' instead" in main()
Dci-install.sh3 set -e
5 sudo python3 -m pip install --upgrade pip
6 sudo python3 -m pip install pytest meson==1.0.1 looseversion
7 valgrind --version
8 ninja --version
9 meson --version
Dtest_ctests.py1 #!/usr/bin/env python3
4 import pytest
6 sys.exit(pytest.main([__file__] + sys.argv[1:]))
9 import pytest
21 @pytest.mark.skipif('FUSE_CAP_WRITEBACK_CACHE' not in fuse_caps,
23 @pytest.mark.parametrize("writeback", (False, True))
26 pytest.skip('Requires kernel 3.14 or newer')
35 cmdline.append('-owriteback_cache')
39 # so opt-in for this test from kernel 5.16.
40 cmdline.append('--delay_ms=200')
[all …]
Dconftest.py1 #!/usr/bin/env python3
4 import pytest
17 @pytest.hookimpl(hookwrapper=True)
74 patterns += ['^==[0-9]+== ']
83 @pytest.fixture()
91 # (from https://github.com/pytest-dev/pytest/issues/230)
92 @pytest.hookimpl(hookwrapper=True, tryfirst=True)
Dtest_custom_io.py1 #!/usr/bin/env python3
6 import pytest
7 sys.exit(pytest.main([__file__] + sys.argv[1:]))
17 import pytest
33 def sock_recvall(sock: socket.socket, bufsize: int) -> bytes:
36 buf += sock.recv(bufsize - len(buf))
57 response_payload = sock_recvall(sock, packet_len - len(response_header))
71 sock.connect("/tmp/libfuse-hello-ll.sock")
81 os.remove("/tmp/libfuse-hello-ll.sock")
Dutil.py1 #!/usr/bin/env python3
3 import pytest
44 pytest.fail('file system process terminated prematurely')
47 pytest.fail("mountpoint failed to come up")
53 cmd = [ 'umount', '-f', mnt_dir ]
56 '-z', '-u', mnt_dir]
77 '-z', '-u', mnt_dir ]
90 pytest.fail('file system process terminated with code %s' % (code,))
93 pytest.fail('mount process did not terminate')
107 time.sleep(end - now)
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/parallel/cluster/process_entity/
D_utils.py7 # http://www.apache.org/licenses/LICENSE-2.0
28 if cmd not in ['python', 'pytest']:
40 if cmd not in ['python', 'pytest', 'python3']:
51 taskset_args = ['taskset'] + ['-c'] + [str(cpu_start) + '-' + str(cpu_end)]
53 if cmd not in ['python', 'pytest', 'python3']:
76 p = os.popen("ip -j addr")
80 # This means this host has no "ip -j addr" command.
/third_party/mesa3d/.gitlab-ci/container/debian/
Dx86_build.sh3 set -e
4 set -o xtrace
12 autotools-dev \
15 python3-pip \
18 apt-get update
20 apt-get install -y --no-remove \
25 libarchive-dev \
26 libclang-cpp13-dev \
27 libclang-cpp11-dev \
28 libgbm-dev \
[all …]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
Dtest_entity_db.py1 #!/usr/bin/python3 -i
3 # Copyright (c) 2018-2019 Collabora, Ltd.
5 # SPDX-License-Identifier: Apache-2.0
10 import pytest
15 @pytest.fixture
Dtest_check_spec_links_api_specific.py1 #!/usr/bin/python3
3 # Copyright (c) 2018-2019 Collabora, Ltd.
5 # SPDX-License-Identifier: Apache-2.0
12 import pytest
21 @pytest.fixture
23 … """Fixture - add an arg named ckr to your test function to automatically get one passed to you."""
28 """Vulkan-specific tests of the REFPAGE_MISMATCH message."""
33 --
37 --
43 --
[all …]
/third_party/mindspore/mindspore-src/source/tests/st/scripts/
DREADME.md8 pytest_path: ${HOME}/miniconda3/envs/py3.7/bin//pytest
9 python_path: ${HOME}/miniconda3/envs/py3.7/bin//python3
16 - 0
21 | ----- | ----- | ----------- |
22 | pytest_path | \${HOME}/miniconda3/envs/py3.7/bin//pytest | Path of pytest, if starts with XXX, th…
23 | python_path | \${HOME}/miniconda3/envs/py3.7/bin//pytest | Path of python, if starts with XXX, th…
32 - requirements
35 pytest <= 6.0.0
38 - Dependencies
41 pip install pycocotools matplotlib scikit-learn opencv-python easydict torch==1.12
[all …]
/third_party/libfuse/
DREADME.md5 -----
17 send responses back. libfuse offers two APIs: a "high-level",
18 synchronous API, and a "low-level" asynchronous API. In both cases,
20 callbacks. When using the high-level API, the callbacks may work with
22 finishes when the callback function returns. When using the low-level
28 ------------------
35 beyond addressing high-impact issues. When reporting bugs, please
42 -------------------
45 * BSD (mostly/best-effort)
46 * For OS-X, please use [OSXFUSE](https://osxfuse.github.io/)
[all …]
/third_party/mindspore/mindspore-src/source/tests/st/pynative/jit/
Dtest_nested_calling_jit.py7 # http://www.apache.org/licenses/LICENSE-2.0
16 #!/usr/bin/env python3
19 import pytest
32 @pytest.mark.level1
33 @pytest.mark.timeout(60)
34 @pytest.mark.env_Ascend_1p
35 @pytest.mark.env_Gpu_1p
36 @pytest.mark.env_CPU
37 @pytest.mark.Function
49 x -= 1
[all …]
/third_party/libinput/
D.gitlab-ci.yml9 # To change the gitlab CI, edit .gitlab-ci/ci.template and/or .gitlab-ci/config.yaml
10 # and run ci-fairy generate-template. For details, see
11 # https://freedesktop.pages.freedesktop.org/ci-templates/ci-fairy.html#templating-gitlab-ci-yml
14 # - we really want to run dnf/apt/... only once, updating on the test runner for
18 # This is handled by the ci-templates, ensuring containers are only rebuilt
21 # - GitLab only allows one script: set per job but we have a bunch of commands
22 # we need to re-run for each build (meson && ninja && etc). YAML cannot merge
27 # MESON_ARGS=-Denable-something=true
28 # NINJA_ARGS=dist ... to run 'ninja -C builddir dist'
35 # e.g. fedora:31@build-default
[all …]
/third_party/libinput/test/
Dtest_quirks_files.py1 #!/usr/bin/env python3
5 # Run with pytest
11 import pytest
15 # https://github.com/torvalds/linux/blob/master/drivers/hid/hid-ids.h#L772
16 # https://github.com/torvalds/linux/blob/master/drivers/hid/hid-logitech-dj.c#L1826
61 "0x[0-9A-F]{4}", vid
67 "0x[0-9A-F]{4}", pid
92 args += ["-n", ncores]
96 return pytest.main(args)
/third_party/mindspore/mindspore-src/source/tests/st/scripts/config/
Denv_config.yaml1 pytest_path: XXX ${HOME}/miniconda3/envs/py3.7/bin/pytest
2 python_path: XXX ${HOME}/miniconda3/envs/py3.7/bin/python3
4 run_path: /tmp/ms-run-st/run
5 log_path: /tmp/ms-run-st/log
9 - 0
/third_party/mesa3d/.gitlab-ci/tests/
Dtest_lava_job_submitter.py1 #!/usr/bin/env python3
6 # SPDX-License-Identifier: MIT
13 import pytest
36 @pytest.fixture
50 @pytest.mark.parametrize("exception", [RuntimeError, SystemError, KeyError])
52 with pytest.raises(MesaCIException):
74 pytest.raises(MesaCIRetryError),
83 pytest.raises(MesaCIRetryError),
102 "test case took too long": pytest.param(
112 pytest.raises(MesaCIRetryError),
[all …]
/third_party/mesa3d/.gitlab-ci/lava/
Dlava-pytest.sh27 set -ex
29 TEST_DIR=${CI_PROJECT_DIR}/.gitlab-ci/tests
31 PYTHONPATH="${TEST_DIR}:${PYTHONPATH}" python3 -m \
32 pytest "${TEST_DIR}" \
33 -W ignore::DeprecationWarning \
34 --junitxml=artifacts/ci_scripts_report.xml \
35 -m 'not slow'
/third_party/mesa3d/.gitlab-ci/tests/utils/
Dtest_lava_log.py1 #!/usr/bin/env python3
6 # SPDX-License-Identifier: MIT
10 import pytest
47 @pytest.mark.parametrize(
82 "msg": "Received signal: <STARTTC> mesa-ci_iris-kbl-traces",
88 "msg": "[ 16.997829] <LAVA_SIGNAL_STARTTC mesa-ci_iris-kbl-traces>",
93 "msg": "<LAVA_SIGNAL_ENDTC mesa-ci_iris-kbl-traces>",
116 "msg": "Received signal: <STARTTC> mesa-ci_iris-kbl-traces",
121 "msg": "<LAVA_SIGNAL_ENDTC mesa-ci_iris-kbl-traces>",
155 @pytest.mark.parametrize(
[all …]
/third_party/libfuse/dev-docs/
Drelease-process.md4 * `set TAG fuse-A.B.C`
10 …* Create signing key for the next release: `P=fuse-<A.B+1> signify-openbsd -G -n -p signify/$P.pub…
13 * Update authors: `git log --all --pretty="format:%an <%aE>" | sort -u >> AUTHORS`
14 * `git commit --all -m "Released $TAG"`
15 * `git tag -s $TAG`
18 * `cd fuse-x.y.z`
22 * `(cd build; python3 -m pytest test/)`
24 * `rm -r ../libfuse.github.io/doxygen && cp -a doc/html ../libfuse.github.io/doxygen`
25 …* `(cd ../libfuse.github.io; git add doxygen/; git commit --all -m "Re-generated doxygen documenta…
26 * `git push && git push --tags`, create release on Github
[all …]
/third_party/libinput/tools/
Dtest_tool_option_parsing.py1 #!/usr/bin/env python3
3 # -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
33 import pytest
35 print("Failed to import pytest. Skipping.", file=sys.stderr)
64 if p.returncode == -3:
66 return p.returncode, stdout.decode("UTF-8"), stderr.decode("UTF-8")
116 def __init__(self, subtool="debug-gui"):
117 assert subtool == "debug-gui"
122 pytest.skip()
125 pytest.skip()
[all …]
/third_party/mesa3d/bin/
Dgen_calendar_entries_test.py1 #!/usr/bin/env python3
2 # SPDX-License-Identifier: MIT
35 import pytest
41 def mock_csv(data: typing.List[gen_calendar_entries.CalendarRowType]) -> typing.Iterator[None]:
53 @pytest.fixture(autouse=True, scope='module')
54 def disable_git_commits() -> None:
62 def test_first_is_wednesday(self) -> None:
68 def test_first_is_before_wednesday(self) -> None:
74 def test_first_is_after_wednesday(self) -> None:
84 def _patch_date(date: datetime.date) -> typing.Iterator[None]:
[all …]
/third_party/markupsafe/
DCONTRIBUTING.rst8 -----------------
15 - The ``#get-help`` channel on our Discord chat:
17 - The mailing list flask@python.org for long term discussion or larger
19 - Ask on `Stack Overflow`_. Search with Google first using:
26 ----------------
30 - Describe what you expected to happen.
31 - If possible, include a `minimal reproducible example`_ to help us
34 - Describe what actually happened. Include the full traceback if there
36 - List your Python and MarkupSafe versions. If possible, check if this
40 .. _minimal reproducible example: https://stackoverflow.com/help/minimal-reproducible-example
[all …]
/third_party/jinja2/
DCONTRIBUTING.rst8 -----------------
15 - The ``#get-help`` channel on our Discord chat:
17 - The mailing list flask@python.org for long term discussion or larger
19 - Ask on `Stack Overflow`_. Search with Google first using:
26 ----------------
30 - Describe what you expected to happen.
31 - If possible, include a `minimal reproducible example`_ to help us
34 - Describe what actually happened. Include the full traceback if there
36 - List your Python and Jinja versions. If possible, check if this
40 .. _minimal reproducible example: https://stackoverflow.com/help/minimal-reproducible-example
[all …]

12