From f0dea4445ad682d57753ab67dcb43e90fc0318ab Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Tue, 30 Apr 2024 10:21:18 +0100 Subject: [PATCH] Add base test script This test script comes partially from release/xs8 branch. The intention is to have some common way to launch tests. This allows, for instance, to execute tests from packaging tools (like RPM spec files) using the same code. Signed-off-by: Frediano Ziglio --- test/test.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 test/test.sh diff --git a/test/test.sh b/test/test.sh new file mode 100755 index 00000000..9a99b8b4 --- /dev/null +++ b/test/test.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +export PYTHONPATH="$(realpath $(dirname $0))":"$(realpath $(dirname $0)/..)":"$PYTHONPATH" + +cd "$(realpath $(dirname $0))" +PYTHON=python2 +if head -1 ../init | grep -q python3; then + PYTHON=python3 +fi +$PYTHON test_errors.py -v