🍽 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
This commit is contained in:
26
tests/test_helpers_wrapper.sh
Executable file
26
tests/test_helpers_wrapper.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user