Files
yunohost/tests/test_helpers_wrapper.sh
machine-a-tsoins edb4c397df
Some checks failed
Check for new n releases / updater (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
🍽 Fork YunoHost — snapshot mangé par la machine à tsoins
Upstream: https://github.com/YunoHost/yunohost @ 3a5f8bac8301c450897b96cbd43a4c7d3ba750fb
But (José) : transformer tout le code en bions + ploxions du xerboxion.
La carte de digestion vit au labo : /yunohost-digest.json
2026-07-03 17:20:06 +00:00

27 lines
542 B
Bash
Executable File

#!/usr/bin/env bash
VERSION=$1
TESTFILE=$2
TESTFUNC=$3
export YNH_STDINFO=1
export YNH_ARCH=$(dpkg --print-architecture)
export YNH_J2_FILTERS_FILE_PATH="$(python3 <<< 'from yunohost.utils import jinja_filters; print(jinja_filters.__file__)')"
export YNH_HELPERS_VERSION="$VERSION"
pushd "$(mktemp -d)" >/dev/null
mkdir conf
mkdir scripts
cd scripts
# shellcheck disable=SC1091
source /usr/share/yunohost/helpers
app=ynhtest
# shellcheck disable=SC2034
YNH_APP_ID=$app
set -eux
# shellcheck disable=SC1090
source "$TESTFILE"
"$TESTFUNC"