From b3ccc398cfd30ad9e243a041933204ea2e567535 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 22 Mar 2023 12:11:24 -0300 Subject: Support Homebrew --- tests/checks/deb.sh | 1 + tests/checks/homebrew.sh | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100755 tests/checks/homebrew.sh (limited to 'tests/checks') diff --git a/tests/checks/deb.sh b/tests/checks/deb.sh index 04bfcd1..90ed7f9 100755 --- a/tests/checks/deb.sh +++ b/tests/checks/deb.sh @@ -1,5 +1,6 @@ #!/bin/sh set -eu +set -x REPO="$1/debian" diff --git a/tests/checks/homebrew.sh b/tests/checks/homebrew.sh new file mode 100755 index 0000000..2104359 --- /dev/null +++ b/tests/checks/homebrew.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +# Load brew(1) +. ~/.profile +set -eu +set -x + + +REPO="$1" + +if command -v remembering; then + echo 'remembering(1) is already installed.' >&2 + exit 1 +fi + +if brew info remembering; then + echo 'remembering(1) is already in the list of taps.' >&2 + exit 1 +fi + +brew tap org/euandre "$REPO" +brew install remembering-0-1-2 + +remembering --help +remembering -V -- cgit v1.2.3