test: break up integration, rejig manual

This commit is contained in:
2022-01-19 12:17:09 +01:00
parent cb210d0c81
commit afeee1270e
22 changed files with 145 additions and 228 deletions

22
tests/integration/common.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/bash
set -e
function init() {
ABRA="$HOME/.local/bin/abra"
INSTALLER_URL="https://install.abra.coopcloud.tech"
for arg in "$@"; do
if [ "$arg" == "--dev" ]; then
ABRA="/src/abra"
INSTALLER_URL="https://git.coopcloud.tech/coop-cloud/abra/raw/branch/main/scripts/installer/installer"
fi
done
export PATH=$PATH:$HOME/.local/bin
echo "choosing $ABRA as abra command"
echo "choosing $INSTALLER_URL as abra installer url"
}
init "$@"