26 lines
485 B
YAML
26 lines
485 B
YAML
# vi: ts=2 sw=2 et ft=yaml:
|
|
|
|
summary: Basic smoke test
|
|
prepare:
|
|
- how: install
|
|
package: gcc
|
|
execute:
|
|
how: tmt
|
|
script: |
|
|
set -eux
|
|
|
|
TMP_DIR="$(mktemp -d)"
|
|
pushd "$TMP_DIR"
|
|
|
|
meson init --name foo
|
|
cat >pyproject.toml <<EOF
|
|
[build-system]
|
|
build-backend = 'mesonpy'
|
|
requires = ['meson-python']
|
|
EOF
|
|
python3 -c 'import mesonpy; x = mesonpy.Project(source_dir=".", build_dir="./build"); x.build()'
|
|
build/foo
|
|
|
|
popd
|
|
rm -rf "$TMP_DIR"
|