build: make sure run.sh with EE app is used with EE profile

If one runs a test suite for an EE app using `scripts/ct/run.sh` without
setting the EE profile, the test suite seems to just get stuck. This
commit ensures that this will not happen and can hopefully save someone
some time.

Co-authored-by: Ivan Dyachkov <dev@dyachkov.org>
This commit is contained in:
Kjell Winblad 2023-02-08 10:05:58 +01:00
parent 537ff30550
commit e487247731
1 changed files with 8 additions and 0 deletions

View File

@ -80,6 +80,14 @@ if [ "${WHICH_APP}" = 'novalue' ]; then
exit 1
fi
if [[ "${WHICH_APP}" == lib-ee* && (-z "${PROFILE+x}" || "${PROFILE}" != emqx-enterprise) ]]; then
echo 'You are trying to run an enterprise test case without the emqx-enterprise profile.'
echo 'This will most likely not work.'
echo ''
echo 'Run "export PROFILE=emqx-enterprise" and "make" to fix this'
exit 1
fi
ERLANG_CONTAINER='erlang'
DOCKER_CT_ENVS_FILE="${WHICH_APP}/docker-ct"