"OK: installed felis-linux-amd64 v9.9.9 at $ddir/bin/felis")"
if cmp -s"$ddir/asset""$ddir/bin/felis";then echo"PASS the installed binary is the download";else echo"FAIL the installed binary is not the download";fails=$((fails +1));fi
if["$rc"-ne 0 ];then echo"PASS a mismatched release binary asks for the source build";else echo"FAIL a mismatched release binary must ask for the source build";fails=$((fails +1));fi
same_log "a mismatched release binary is never executed"\
"WARN: downloaded felis-linux-amd64 hashes to ${dsum}, but release v9.9.9's SHA256SUMS says deadbeef; discarding it and building v9.9.9 from source on this host instead"
refused_download "a mismatched release binary"
run_download ""
rc=$?
if["$rc"-ne 0 ];then echo"PASS a release binary without SHA256SUMS asks for the source build";else echo"FAIL a release binary without SHA256SUMS must ask for the source build";fails=$((fails +1));fi
same_log "a release binary without SHA256SUMS is never executed"\
"WARN: release v9.9.9 publishes no SHA256SUMS, so felis-linux-amd64 cannot be verified; building v9.9.9 from source on this host instead"
refused_download "a release binary without SHA256SUMS"
# --- cloudflared is a pinned release, checked before it is installed ---------------------