Add a smoketest, run on CoreDesktop's with coredesktop-dev
`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>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
bc536407c4
commit
e8fbe256df
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
# shellcheck disable=SC2034
|
||||
DESCRIPTION="a new version of one app in compile.conf rebuilds that app and no other"
|
||||
IMAGE=installed
|
||||
TIER="pr"
|
||||
|
||||
source "$(dirname "${BASH_SOURCE[0]}")/../lib.sh"
|
||||
|
||||
# Dump1090 is pinned to a commit with ref=, so a new version= rebuilds the same
|
||||
# source: the quickest build there is
|
||||
scenario() {
|
||||
local old
|
||||
old="$(compiled_version Dump1090)"
|
||||
upstream_commit HamPack "Rebuild Dump1090" \
|
||||
'sed -i "/^\[Dump1090\]/,/^\$/ s/^version=.*/&-smoketest/" compile.conf'
|
||||
cd_update
|
||||
assert_status 0
|
||||
assert_output "Updating Dump1090 from $old to $old-smoketest"
|
||||
[ "$(grep -c ' Building ' <<< "$OUTPUT")" -eq 1 ] || fail "update built more than Dump1090 (see $LAST_LOG)"
|
||||
health HamPack
|
||||
}
|
||||
Reference in New Issue
Block a user