Jeff King started this series after a unit-test failure in CI that was hard to debug. CI feeds the unit-test binary to prove, which swallows its TAP output. The binary accepts --verbose-log but ignores it, so nothing about the failing test is reported. King sees this as a symptom of a wider problem: the binary is run directly and misses the setup test-lib.sh does, such as sanitizer options like LSAN_OPTIONS. He shows an intentional leak in u-strbuf.c that behaves differently under the two paths.
The core change brings back a much simpler variant of the dropped test_external. A script can tell test-lib.sh up front that it is a thin wrapper around an external TAP generator, and test-lib.sh then stays out of the way while still doing its other setup.
Once t0011 runs the clar tests, the separate invocations would run them twice. King drops the separate Meson test and the extra call in the first CI slice, along with the unit-tests-test-tool target and UNIT_TESTS_NO_DIR. Prove no longer receives the unit-test binaries, so run-test.sh can go too. The unit tests can still be run directly.
Several patches remove code that may have users outside the tree. King drops test-tool run-command testsuite, noting that be5d88e112 said it might help Visual Studio users run tests without make or prove, and that he cannot tell whether that use persists. He also drops --write-junit-xml support, since the Azure Pipelines consumer was removed in e39e332e50 and GitLab's JUnit output comes from Meson. For both he says the patch should be dropped or reverted if someone still relies on them.
The series also fixes a missing write_junit_xml_testcase() call that breaks scripts that skip everything under "set -e", removes a leftover test_external_has_tap initialization, and fixes unit-test.c so an unexpected argument is reported as argv[1] instead of the program name.
All the excerpts are from King; no one else has commented yet. Separately, in the thread on Kaartic Sivaraam's clar long-tests argument fix, King pointed to this work as making that fallback option parsing obsolete.