aboutsummaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2020-12-29 02:01:10 +0100
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2020-12-29 02:01:10 +0100
commitdca7ba9dfec9bfbb59204b79ce6b0ff355b2ce7e (patch)
tree1b06f25119d247ad22864a2a0117b5a0c92ff2c2 /dist
parent3427a61b81b542bb683e8f1e5dd376aaa184e575 (diff)
parent718da371523f37a45cbca6c83cc26ef84b7140ec (diff)
downloadghdl-dca7ba9dfec9bfbb59204b79ce6b0ff355b2ce7e.tar.gz
ghdl-dca7ba9dfec9bfbb59204b79ce6b0ff355b2ce7e.tar.bz2
ghdl-dca7ba9dfec9bfbb59204b79ce6b0ff355b2ce7e.zip
Merge remote-tracking branch 'github-umarcor/py/GHDL' into paebbels/pyGHDL
Diffstat (limited to 'dist')
-rwxr-xr-xdist/ci-run.sh31
1 files changed, 21 insertions, 10 deletions
diff --git a/dist/ci-run.sh b/dist/ci-run.sh
index 928fa201a..c61169f9f 100755
--- a/dist/ci-run.sh
+++ b/dist/ci-run.sh
@@ -420,32 +420,43 @@ ci_run () {
if [ "x$IS_MACOS" = "xtrue" ]; then
CC=clang \
prefix="`cd ./install-mcode; pwd`/usr/local" \
- ./testsuite/testsuite.sh sanity pyunit gna vests vpi
+ ./testsuite/testsuite.sh sanity gna vests vpi
else
# Build ghdl/ghdl:$GHDL_IMAGE_TAG image
build_img_ghdl
+
+ tests="sanity"
+
case "$GHDL_IMAGE_TAG" in
- *ubuntu*|*buster*)
+ *ubuntu20*|*buster*)
GHDL_TEST_IMAGE="test:$GHDL_IMAGE_TAG-py"
- docker build -t "$GHDL_TEST_IMAGE" - <<-EOF
+ docker build -t "$GHDL_TEST_IMAGE" . -f- <<-EOF
+# syntax=docker/dockerfile:experimental
FROM ghdl/ghdl:$GHDL_IMAGE_TAG
-RUN apt update -qq && apt install -y python3
+RUN apt update -qq && apt install -y python3 python3-pip
+RUN --mount=type=bind,src=./,target=/tmp/ghdl/ \
+ pip3 install -r /tmp/ghdl/testsuite/requirements.txt
EOF
+ tests+=" pyunit"
;;
*)
GHDL_TEST_IMAGE="ghdl/ghdl:$GHDL_IMAGE_TAG"
;;
esac
- # Run test in docker container
- tests="sanity pyunit"
+
if [ "x$ISGPL" != "xtrue" ]; then
- tests="$tests gna"
+ tests+=" gna"
fi
- tests="$tests vests"
+
+ tests+=" vests"
+
if [ "x$ISSYNTH" = "xtrue" ]; then
- tests="$tests synth"
+ tests+=" synth"
fi
- tests="$tests vpi"
+
+ tests+=" vpi"
+
+ # Run tests in docker container
$RUN "$GHDL_TEST_IMAGE" bash -c "GHDL=ghdl ./testsuite/testsuite.sh $tests"
fi