1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#!/bin/sh
set -e
TMP=${AUTOPKGTEST_TMP:-/tmp}
if [ ! -z "$AUTOPKGTEST_TMP" ]; then
cd $AUTOPKGTEST_TMP
fi
export QTWEBENGINE_DISABLE_SANDBOX=1
export QT_QPA_PLATFORM=offscreen
export HOME=$TMP
export XDG_DATA_HOME=$TMP
export XDG_RUNTIME_DIR=${TMP}/run
printf "Starting Jackd...\n"
jackd -ddummy > ${TMP}/jackd.log 2>&1 &
sleep 5
printf "Starting SuperCollider...\n"
printf "FoxDot.start" > ${TMP}/foxdot.scd
sclang ${TMP}/foxdot.scd > ${TMP}/sclang.log 2>&1 &
sleep 5
printf "Create Renardo samples path\n"
mkdir -p ${HOME}/.config/renardo/samples/_loop_/_loop_
# this script is executed in two different contexts:
# - context a: package build
# - context b: autopkgtests
# on the context a we want to run pytest
# on the context b we don't want to run pytest
if [ -e "setup.py" ] && [ -e "tests" ]; then
# run pytest on context a: package build
printf "Running upstream tests with pytest:\n"
pytest -s
else
# do not run pytest on context b: autopkgtests
for py in $(py3versions --supported 2>/dev/null); do
printf "Testing renardo_lib with $py:\n"
$py -c "import renardo_lib; print(renardo_lib)"
done
fi
printf "\nJackd start log:\n"
cat ${TMP}/jackd.log
printf "\nSuperCollider start log:\n"
cat ${TMP}/sclang.log
killall --quiet sclang
killall --quiet jackd
|