Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: tmt tests improvements #899

Merged
merged 5 commits into from
Oct 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .distro/plans/examples.fmf
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
summary:
Documentation examples
summary: Documentation examples
discover+:
how: fmf
filter: "tag: examples"
Expand Down
6 changes: 4 additions & 2 deletions .distro/plans/smoke.fmf
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
summary:
Basic smoke tests
/:
inherit: false

summary: Basic smoke tests
discover:
how: fmf
filter: "tag: smoke"
Expand Down
1 change: 1 addition & 0 deletions .distro/tests/smoke.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ path: /

# Define tests
/version:
summary: Read version
test: python3 -c "import scikit_build_core; print(scikit_build_core.__version__)"
5 changes: 2 additions & 3 deletions docs/examples/downstream/nanobind_example/main.fmf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
summary:
Nanobind downstream example
summary: Nanobind downstream example
adjust:
enabled: false
because: Nanobind is not yet packaged on Fedora
#require+:
# - python3-nanobind
# - python3dist(nanobind)
5 changes: 2 additions & 3 deletions docs/examples/downstream/pybind11_example/main.fmf
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
summary:
Pybind downstream example
summary: Pybind downstream example
require+:
- gcc-c++
- pybind11-devel
- python3dist(pybind11)
3 changes: 1 addition & 2 deletions docs/examples/getting_started/abi3/main.fmf
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
summary:
Abi3 example project
summary: Abi3 example project
3 changes: 1 addition & 2 deletions docs/examples/getting_started/c/main.fmf
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
summary:
C example project
summary: C example project
5 changes: 2 additions & 3 deletions docs/examples/getting_started/cython/main.fmf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
summary:
Cython example project
summary: Cython example project
require+:
- python3-cython
- python3dist(cython)
5 changes: 2 additions & 3 deletions docs/examples/getting_started/fortran/main.fmf
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
summary:
F2PY example project
summary: F2PY example project
require+:
- gcc-gfortran
- python3-numpy
- python3dist(numpy)
- python3-numpy-f2py
5 changes: 2 additions & 3 deletions docs/examples/getting_started/nanobind/main.fmf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
summary:
Nanobind example project
summary: Nanobind example project
adjust:
enabled: false
because: Nanobind is not yet packaged on Fedora
#require+:
# - python3-nanobind
# - python3dist(nanobind)
5 changes: 2 additions & 3 deletions docs/examples/getting_started/pybind11/main.fmf
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
summary:
Pybind example project
summary: Pybind example project
require+:
- gcc-c++
- pybind11-devel
- python3dist(pybind11)
3 changes: 1 addition & 2 deletions docs/examples/getting_started/swig/main.fmf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
summary:
Swig example project
summary: Swig example project
require+:
- swig
6 changes: 4 additions & 2 deletions docs/examples/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ rlJournalStart
fi
rlRun "pushd $tmp"
rlRun "tree" 0 "Show directory tree"
rlRun "python3 -m venv .venv --system-site-packages" 0 "Create venv with system packages"
rlRun "source .venv/bin/activate" 0 "Activate venv"
rlRun "set -o pipefail"
rlPhaseEnd

rlPhaseStartTest
rlRun "pip install --user . --config-settings=cmake.verbose=true --no-index --no-build-isolation" 0 "Build the python project"
rlRun "pip install . -v --config-settings=build.verbose=true --no-index --no-build-isolation" 0 "Build the python project"
if [ "${HAS_PYTEST}" == True ]; then
rlRun "pytest" 0 "Run built-in pytest"
rlRun "python3 -m pytest" 0 "Run built-in pytest"
else
rlRun "python3 test.py" 0 "Test project is installed correctly"
fi
Expand Down
Loading