diff --git a/tests/test-engine-image/build_include_case.sh b/tests/test-engine-image/build_include_case.sh new file mode 100644 index 000000000..6ea3cd1fc --- /dev/null +++ b/tests/test-engine-image/build_include_case.sh @@ -0,0 +1,35 @@ +#!/bin/bash +set -x +set -e + +E2E_BASE_TAG=$1 +CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) +CURRENT_COMMIT=$(git rev-parse --short HEAD) +DOCKER_FILE=Dockerfile +CASE_DIRECTORY=test-files + +if [ -f $DOCKER_FILE ]; then + rm -rf $DOCKER_FILE +fi + +if [ -d $CASE_DIRECTORY ]; then + rm -rf $CASE_DIRECTORY +fi + +mkdir $CASE_DIRECTORY +mkdir $CASE_DIRECTORY/tests +cp -r ../../tests/{robot-cases,resources,files,apitests} ./$CASE_DIRECTORY/tests +cp -r ../../api ./$CASE_DIRECTORY/ +cp ../../Makefile ./$CASE_DIRECTORY/ + +cat > "$DOCKER_FILE" <