Skip to content

Commit f0dea44

Browse files
author
Frediano Ziglio
committed
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 <frediano.ziglio@cloud.com>
1 parent b643277 commit f0dea44

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

test/test.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
3+
export PYTHONPATH="$(realpath $(dirname $0))":"$(realpath $(dirname $0)/..)":"$PYTHONPATH"
4+
5+
cd "$(realpath $(dirname $0))"
6+
PYTHON=python2
7+
if head -1 ../init | grep -q python3; then
8+
PYTHON=python3
9+
fi
10+
$PYTHON test_errors.py -v

0 commit comments

Comments
 (0)