aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2020-12-29 00:46:47 +0100
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2020-12-29 00:46:47 +0100
commitf170010041fd95d1705d5f73b823b25b6963b850 (patch)
treeb48d0aba680834a93fb8e4327bbd5647795efce1
parent71a7c3b1102b888f0560de64d9efaa48d8a3738f (diff)
parent403ce633036dc9611c78fc5a0460ea7b856bd848 (diff)
downloadghdl-f170010041fd95d1705d5f73b823b25b6963b850.tar.gz
ghdl-f170010041fd95d1705d5f73b823b25b6963b850.tar.bz2
ghdl-f170010041fd95d1705d5f73b823b25b6963b850.zip
Merge remote-tracking branch 'github-umarcor/py/GHDL' into paebbels/pyGHDL
-rwxr-xr-xdist/ci-run.sh2
-rwxr-xr-xtestsuite/pyunit/testsuite.sh6
2 files changed, 5 insertions, 3 deletions
diff --git a/dist/ci-run.sh b/dist/ci-run.sh
index 70e6b6d44..928fa201a 100755
--- a/dist/ci-run.sh
+++ b/dist/ci-run.sh
@@ -425,7 +425,7 @@ ci_run () {
# Build ghdl/ghdl:$GHDL_IMAGE_TAG image
build_img_ghdl
case "$GHDL_IMAGE_TAG" in
- *ubuntu*)
+ *ubuntu*|*buster*)
GHDL_TEST_IMAGE="test:$GHDL_IMAGE_TAG-py"
docker build -t "$GHDL_TEST_IMAGE" - <<-EOF
FROM ghdl/ghdl:$GHDL_IMAGE_TAG
diff --git a/testsuite/pyunit/testsuite.sh b/testsuite/pyunit/testsuite.sh
index 7eac028ca..3de4b3951 100755
--- a/testsuite/pyunit/testsuite.sh
+++ b/testsuite/pyunit/testsuite.sh
@@ -52,6 +52,8 @@ set -e
# echo "test failed ($failures)" && exit 1
#fi
-cd $(dirname "$0")/..
+cd $(dirname "$0")/../..
-python3 -m unittest pyunit
+export PYTHONPATH=$(pwd)/pyGHDL
+
+python3 -m unittest testsuite.pyunit