aboutsummaryrefslogtreecommitdiff
path: root/pocketbook/src
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-14 22:32:23 -0500
committerCraig Jennings <c@cjennings.net>2026-06-14 22:32:23 -0500
commit1f7ae221341004ad28f56a20c8f942cd19aff965 (patch)
tree9fb8f9a02da606d1f430d6d0e76d44b766c3cfc2 /pocketbook/src
parent81c4a1d7f360e3dd0162a7f905f804d19fb7251c (diff)
downloadarchsetup-1f7ae221341004ad28f56a20c8f942cd19aff965.tar.gz
archsetup-1f7ae221341004ad28f56a20c8f942cd19aff965.zip
test(scripts): lock package-inventory behavior with characterization tests
package-inventory compares archsetup's declared packages against the live system but had no tests, so a future archsetup edit (a new for-loop shape, a renamed install helper) could silently break the extraction. I added two env seams so the script is testable without the real system. PKGINV_ARCHSETUP points the extractor at a fixture installer, PKGINV_PACMAN swaps in a fake pacman serving controlled query output. Both default to the real targets, so normal use is unchanged, and the seams match the env-override pattern audit-packages.sh already uses. The 7 tests pin the extraction (direct calls, for-loop lists, variable-arg skip) and both diff directions against the fixture, with no network or real pacman db. I also added a make package-diff target so the tool is reachable alongside the test targets.
Diffstat (limited to 'pocketbook/src')
0 files changed, 0 insertions, 0 deletions