integration-test.sh 510 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. # simple integration test
  3. CFG=/tmp/minetest.conf
  4. MTDIR=/tmp/mt
  5. WORLDDIR=${MTDIR}/worlds/world
  6. cat <<EOF > ${CFG}
  7. enable_3d_armor_integration_test = true
  8. EOF
  9. mkdir -p ${WORLDDIR}
  10. chmod 777 ${MTDIR} -R
  11. docker run --rm -i \
  12. -v ${CFG}:/etc/minetest/minetest.conf:ro \
  13. -v ${MTDIR}:/var/lib/minetest/.minetest \
  14. -v $(pwd):/var/lib/minetest/.minetest/worlds/world/worldmods/3d_armor \
  15. registry.gitlab.com/minetest/minetest/server:5.2.0
  16. test -f ${WORLDDIR}/integration_test.json && exit 0 || exit 1