#!/usr/bin/env bash set -euo pipefail ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" cd "${ROOT_DIR}" command -v dpkg-deb >/dev/null command -v zip >/dev/null bash packaging/build-release.sh >/tmp/jarvis-package-test.log DEB="$(find dist -maxdepth 1 -name 'jarvis-qvac_*.deb' -print -quit)" test -n "${DEB}" dpkg-deb --info "${DEB}" >/dev/null dpkg-deb --contents "${DEB}" | grep 'usr/lib/jarvis-qvac/daemon/index.js' >/dev/null unzip -t dist/jarvis-qvac-extension.zip >/dev/null test -s dist/SHA256SUMS echo "package smoke test passed"