aboutsummaryrefslogtreecommitdiff
path: root/scripts/testing/archsetup-vm.conf
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
commitb9ca8305f7314a82b4215379440724769515be32 (patch)
tree9fb8f9a02da606d1f430d6d0e76d44b766c3cfc2 /scripts/testing/archsetup-vm.conf
parent68424a476eb5513927fb3c3ab741d607ff070560 (diff)
downloadarchsetup-b9ca8305f7314a82b4215379440724769515be32.tar.gz
archsetup-b9ca8305f7314a82b4215379440724769515be32.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 'scripts/testing/archsetup-vm.conf')
0 files changed, 0 insertions, 0 deletions