Skip to content

Commit

Permalink
Add base test script
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
freddy77 committed May 9, 2024
1 parent 4f3531f commit b40617a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/test.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b40617a

Please sign in to comment.