`coredesktop-dev smoketest run --with HamPack` installs HamPack on a VM with CoreDesktop and checks a fresh install, an update with nothing to do, a one-app rebuild, a failing build and hampackremove, with smoketest/health checking every package, Flatpak and app is in place. HAMPACK_SKIP_WINDOWS_APPS skips the Windows installers, which the test VMs' desktop would start with no one to click through them; smoketest/setup sets it in each VM. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
800 B
Makefile
27 lines
800 B
Makefile
# HamPack development tasks
|
|
# make lint - shellcheck every script
|
|
# make test - run the bats tests in tests/
|
|
# make check-packages - check every package and Flatpak in packages.conf can
|
|
# still be installed (needs the network; run `pacman -Sy` first)
|
|
# make hooks - run `make lint test` before each commit
|
|
|
|
SCRIPTS := install.sh update.sh lib.sh install-binaries.sh install-compiled.sh \
|
|
install-flatpaks.sh install-windows-apps.sh patch-potacat.sh hampackcheck hampackremove \
|
|
smoketest/setup smoketest/health smoketest/lib.sh $(wildcard smoketest/scenarios/*.sh)
|
|
|
|
.PHONY: check lint test check-packages hooks
|
|
|
|
check: lint test
|
|
|
|
lint:
|
|
shellcheck -x $(SCRIPTS)
|
|
|
|
test:
|
|
bats tests/
|
|
|
|
check-packages:
|
|
./hampackcheck packages
|
|
|
|
hooks:
|
|
git config core.hooksPath .githooks
|