testsAndMisc/linux_configuration/scripts/mtk_root/tests
Krzysztof kuhy Rudnicki 4ff7a0bf15 Split mtk_root run_tests.sh: assertions and the dump-test group
421 -> 218 + 157 + 75. The assertion helpers (pass, fail, assert_*,
strip_noncode, run_recon) go to lib/assertions.sh; the six
20-dump-stock.sh tests go to lib/dump_tests.sh. run_tests.sh keeps the
counters, the trap, the eight recon tests and main().

Verified by running the suite, not by inspecting it: 58 passed / 0 failed
before and after, and a diff of the complete 89-line output reports no
differences. The suite is hermetic -- every test drives a fixture via
MTK_ROOT_FIXTURE -- so this is a real execution of 58 assertions rather
than a stubbed trace.

All three files are shfmt-dirty, but run_tests.sh already was at HEAD
(2-space indent against shfmt's tabs) and the libs inherit that style, so
no clean file was made dirty.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011w2Pj4Ek3ZNMQVYcFHgXDY
2026-08-16 23:02:09 +02:00
..
fixtures mtk_root: build the rooting toolkit before the phone lands 2026-08-04 20:38:44 +02:00
lib Split mtk_root run_tests.sh: assertions and the dump-test group 2026-08-16 23:02:09 +02:00
run_tests.sh Split mtk_root run_tests.sh: assertions and the dump-test group 2026-08-16 23:02:09 +02:00