Skip to content

Commit

Permalink
Add test that attempts to install a package
Browse files Browse the repository at this point in the history
  • Loading branch information
maertsen committed Jan 11, 2024
1 parent b8fc360 commit 42cd565
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ jobs:
- "debian:bookworm"
target: x86_64
extra_cargo_deb_args: --no-build --target all --output target/debian
package_test_scripts_path: pkg/test-scripts/test.sh
16 changes: 16 additions & 0 deletions pkg/test-scripts/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

set -eo pipefail
set -x

case $1 in
post-install)
echo -e "\nPACKAGE INSTALL SHOULD NOW AUTHENTICATE:"
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/nlnetlabs-archive-keyring.gpg] https://packages.nlnetlabs.nl/linux/debian \
$(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/nlnetlabs.list > /dev/null
apt update
apt install routinator
;;
post-upgrade)
;;
esac

0 comments on commit 42cd565

Please sign in to comment.