test: require the account-migration and portable-blacklist suites in the gate

Same shape as the listen-log presence check: the workspace run already
executes them; the counts keep a renamed module or a dropped cfg from
shrinking coverage without a trace. The workflow calls the script, so the
mirror stays exact; its header names the new check.

cc
This commit is contained in:
vicrodh committed 2026-09-02 08:25:09 -06:00
1 parent a39ea8c12d
commit e235cd3e23
2 files changed
+19 -1

No files matched your search

+4 -1
View File
@@ -5,7 +5,10 @@
# excludes the frozen Slint crates and qbz-qt), then the named
# listen-log suite check (qbz-app::listen_log must exist and be
# green — the per-user listen store's schema, accumulator, end
# reasons and pause/clear rules). ~5 min cold.
# reasons and pause/clear rules), and the account-migration +
# portable-blacklist suite check (Settings > Import / Export:
# snapshot/plan/apply/ledger/local copy, additive blacklist
# merge). ~5 min cold.
# qt-gate — the Qt frontend: the five static QML audits, `cargo test -p
# qbz-qt`, the Slint-free dep-graph gate, and an OFFSCREEN BOOT of
# the debug binary. This is the thing `cargo check` cannot give:
+15
View File
@@ -63,6 +63,21 @@ n=$(cargo test --manifest-path crates/Cargo.toml -p qbz-app --lib -- --list list
(( n >= 25 )) || { echo "listen_log suite has $n tests (expected >= 25)"; exit 1; }
cargo test --manifest-path crates/Cargo.toml -p qbz-app --lib -- listen_log::
say "gate: account-migration and portable-blacklist suites present and green"
# Same shape as the listen-log check: the workspace run already executed
# these; the count keeps a renamed module or a dropped cfg from shrinking the
# coverage silently. qbz-account-migration is the crate behind Settings >
# Import / Export (snapshot, plan, apply, ledger, local-profile copy);
# blacklist_portable is the JSON one user hands to another.
n=$(cargo test --manifest-path crates/Cargo.toml -p qbz-account-migration --lib -- --list 2>/dev/null \
| grep -c ': test$' || true)
(( n >= 12 )) || { echo "qbz-account-migration has $n tests (expected >= 12)"; exit 1; }
n=$(cargo test --manifest-path crates/Cargo.toml -p qbz-app --lib -- --list blacklist_portable:: 2>/dev/null \
| grep -c ': test$' || true)
(( n >= 3 )) || { echo "blacklist_portable suite has $n tests (expected >= 3)"; exit 1; }
cargo test --manifest-path crates/Cargo.toml -p qbz-account-migration --lib
cargo test --manifest-path crates/Cargo.toml -p qbz-app --lib -- blacklist_portable::
say "gate: qbzd resolves no Slint crate"
hits=$(cargo tree --manifest-path crates/Cargo.toml -p qbzd -e normal \
| grep -E '\b(slint|qbz-ui|qbz-slint-common|qbz-dac-wizard) v' || true)