mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-12 10:11:04 +01:00
A 26-assertion suite for rpi_nc_ca.sh, third in the hardest-first order. All five OS branches are exercised by seeding the marker file each one tests for inside the jailed /etc, plus a uname stub for Darwin; both NSS stores and all three Firefox outcomes are covered. SHARED-FILE BUG: the Debian branch does `mkdir -p /usr/local/share/ca-certificates` and jail_args bound only /usr/local/bin, so the suite aborted there under set -e. /usr/local/share and /etc/pki are now bound. jail_args is shared by every suite in the directory, so all five libs were re-measured: dot_resolver_install.sh still 39/39 = 100.00%, and rpi_nc_install.sh, dwm_config.sh and aw_autostart.sh are unchanged. An over-aggressive mount looks exactly like unreachable code, so this check is not optional. That bind also unblocked the runner for the whole directory: with the old args the run exited 1 before nc_php.sh could be measured at all. Measured 72/73 = 98.63% through run_all.sh, which is the exact subject is_covered() builds -- the gate's own view -- so the lib STAYS on the allowlist. The single test file alone reports 73/73 = 100.00%, both figures reproduced twice. The one-line delta is line 141, the first line of show_help's heredoc BODY: not a statement, so the denominator is wrong rather than a test missing. Excluding heredoc bodies from the denominator is the next piece of work; it is what stands between this suite and the bar. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016sxxsDHWgdRhmdmzNMA6XM |
||
|---|---|---|
| .. | ||
| tests | ||
| aw_autostart.sh | ||
| aw_install.sh | ||
| aw_service.sh | ||
| dns_dhcp.sh | ||
| dns_firewall.sh | ||
| dns_units.sh | ||
| dot_resolver_install.sh | ||
| dwm_config.sh | ||
| gitea_network.sh | ||
| kcd2_autorebuild.sh | ||
| kcd2_expose.sh | ||
| kcd2_serve.sh | ||
| local_llm_model.sh | ||
| mobile_service.sh | ||
| nc_discover.sh | ||
| nc_flash.sh | ||
| nc_image.sh | ||
| nc_packages.sh | ||
| nc_php.sh | ||
| nc_remote_flash.sh | ||
| nc_remote.sh | ||
| nc_services.sh | ||
| pi_flash_exec.sh | ||
| pi_flash_image.sh | ||
| pi_flash_remote.sh | ||
| rpi_nc_ca.sh | ||
| rpi_nc_deps.sh | ||
| rpi_nc_fixes.sh | ||
| rpi_nc_install.sh | ||
| rpi_nc_ssl_remote.sh | ||
| rpi_nc_ssl.sh | ||
| rpi_nc_system.sh | ||
| searxng_expose.sh | ||
| searxng_limiter.sh | ||
| searxng_settings.sh | ||
| searxng_stack.sh | ||
| searxng_start.sh | ||
| searxng_status.sh | ||
| syncyomi_expose.sh | ||
| syncyomi_stack.sh | ||
| unreal_mcp_repo.sh | ||
| website_build.sh | ||
| wg_firewall.sh | ||
| wg_keys.sh | ||
| wg_sshd.sh | ||