aboutsummaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
Diffstat (limited to 'dist')
-rwxr-xr-xdist/ci-run.sh22
1 files changed, 15 insertions, 7 deletions
diff --git a/dist/ci-run.sh b/dist/ci-run.sh
index e71229194..5a78d080f 100755
--- a/dist/ci-run.sh
+++ b/dist/ci-run.sh
@@ -424,8 +424,11 @@ ci_run () {
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" . -f- <<-EOF
# syntax=docker/dockerfile:experimental
@@ -434,21 +437,26 @@ 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