The Slint crates are gone from the workspace, so cargo-test.sh's four --exclude flags were stale; qbz-qt is the only exclusion now (it is the one crate that needs Qt, and the sole consumer of wayland-sys — the reason the workspace test fails on a runner without libwayland-dev). Release workflows write their caches from main only: nothing but test-crates.yml is meant to run from pre-release. cc
26 lines
788 B
Bash
Executable File
26 lines
788 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Run the unit/doc tests of every crate that needs no Qt (crates workspace).
|
|
#
|
|
# Same command CI uses (.github/workflows/test-crates.yml, job `test`). The Qt
|
|
# frontend crate `qbz-qt` is excluded here — it needs a Qt >= 6.8 install to
|
|
# even build — and is tested by the `qt-gate` job instead (audits, its own
|
|
# `cargo test -p qbz-qt`, and an offscreen boot).
|
|
#
|
|
# Usage:
|
|
# ./scripts/cargo-test.sh
|
|
# ./scripts/cargo-test.sh -- --lib # skip doctests
|
|
# CARGO_BUILD_JOBS=1 ./scripts/cargo-test.sh
|
|
set -euo pipefail
|
|
|
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
cd "$ROOT"
|
|
|
|
export CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-2}"
|
|
|
|
exec cargo test \
|
|
--manifest-path crates/Cargo.toml \
|
|
--workspace \
|
|
--exclude qbz-qt \
|
|
--no-fail-fast \
|
|
"$@"
|