mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-12 23:30:52 +01:00
Three changes, none of which touch what a single test asserts:
thorium_repairs.sh's `sleep 4` becomes `sleep ${THORIUM_STARTUP_WAIT:-4}`
and the harness sets 0.2s. Three cases were each paying four real
seconds to watch a stubbed browser stay up; the stub sleeps 30s, so the
`kill -0` check is unchanged. That file: 17.0s -> 5.6s.
_t_hide was the rest of it. It walks PATH and creates a symlink per
executable -- ~13.5k here, 4.6s a build -- and the suite has ~16
distinct tool sets. Now the full farm is built ONCE and `cp -al`
hard-links it per set, with only the hidden names deleted from the copy.
The cache also moved out of $TEST_TMPDIR, which is per-file, into a
run-scoped dir run_all.sh creates and removes, so it survives between
files.
110s -> 98s (sleep) -> 85s (shared cache) -> 37s (hard-linked farm).
645 OK, 0 FAIL throughout. The cases that only pass when a tool is
genuinely unfindable -- install_pyroveil's missing-dependency arms,
fix_aggressive without sqlite3 -- still pass, which is what proves the
farm is still hiding rather than quietly returning a full PATH.
lib_test_core.sh hit exactly 250 lines, so _t_hide and the farm move to
lib_test_path.sh (194 + 67).
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| tests | ||
| arch_cpu.sh | ||
| arch_hardware.sh | ||
| arch_perf_fixes.sh | ||
| arch_perf_probes.sh | ||
| arch_perf_report.sh | ||
| arch_sysctl.sh | ||
| bt_adapter.sh | ||
| bt_audio.sh | ||
| bt_pairing.sh | ||
| bt_report.sh | ||
| hosts_guard_migrate.sh | ||
| hosts_guard_rollback.sh | ||
| nvidia_config.sh | ||
| pacman_hook_stall_capture.sh | ||
| pacman_hook_stall_load.sh | ||
| pacman_hook_stall_setup.sh | ||
| pacman_hook_stall_summary.sh | ||
| pacman_hook_stall_usage.sh | ||
| pacman_hook_stall_watch.sh | ||
| thorium_repairs.sh | ||
| ubuntu_perf_fixes.sh | ||
| ubuntu_perf_more.sh | ||