From 7466fd150a9e799cad98d89d943d1f07effb08ed Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Thu, 16 Jan 2020 15:59:02 +0100 Subject: [PATCH] integration test stub --- integration-test.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 integration-test.sh diff --git a/integration-test.sh b/integration-test.sh new file mode 100755 index 0000000..7da661a --- /dev/null +++ b/integration-test.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# simple integration test + +CFG=/tmp/minetest.conf +MTDIR=/tmp/mt +WORLDDIR=${MTDIR}/worlds/world + +# TODO: pipeworks / basic_materials +cat < ${CFG} + enable_technic_integration_test = true +EOF + +mkdir -p ${WORLDDIR} +chmod 777 ${MTDIR} -R +docker run --rm -i \ + -v ${CFG}:/etc/minetest/minetest.conf:ro \ + -v ${MTDIR}:/var/lib/minetest/.minetest \ + -v $(pwd):/var/lib/minetest/.minetest/worlds/world/worldmods/technic \ + registry.gitlab.com/minetest/minetest/server:5.0.1 + +test -f ${WORLDDIR}/integration_test.json && exit 0 || exit 1