mirror of
https://github.com/curl/curl.git
synced 2026-05-20 20:46:19 +03:00
build: add pytest targets
It enables running pytests in cmake jobs, regardless of underlying build tool choice (= makes it work with ninja.) Also: - drop pytest logic launching `make` and exiting in case of failure. Maybe there is a better way and keep this functionality somehow, bind it to a command-line option? make it fail softly? - GHA/linux: invoke pytest via the build, not directly. - autotools: add missing dummy runtests targets when cross-compiling. Closes #15034
This commit is contained in:
parent
ed766751cc
commit
d82f9f965c
7 changed files with 49 additions and 17 deletions
13
.github/workflows/linux.yml
vendored
13
.github/workflows/linux.yml
vendored
|
|
@ -652,14 +652,17 @@ jobs:
|
|||
fi
|
||||
make V=1 VERBOSE=1 test-ci
|
||||
|
||||
- if: contains(matrix.build.install_steps, 'pytest')
|
||||
# run for `tests/http` directory, so pytest does not pick up any other
|
||||
# packages we might have built here
|
||||
run: pytest -v tests/http
|
||||
name: 'run pytest'
|
||||
- name: 'run pytest'
|
||||
if: contains(matrix.build.install_steps, 'pytest')
|
||||
env:
|
||||
TFLAGS: "${{ matrix.build.tflags }}"
|
||||
CURL_CI: github
|
||||
run: |
|
||||
if [ -n '${{ matrix.build.generate }}' ]; then
|
||||
cmake --build . --verbose --target curl-pytest-ci
|
||||
else
|
||||
make V=1 pytest-ci
|
||||
fi
|
||||
|
||||
- run: ${{ matrix.build.make-prefix }} make V=1 examples
|
||||
if: ${{ matrix.build.configure }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue