mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-09-07 21:30:29 +02:00
21 lines
510 B
Bash
Executable File
21 lines
510 B
Bash
Executable File
#!/bin/sh
|
|
# simple integration test
|
|
|
|
CFG=/tmp/minetest.conf
|
|
MTDIR=/tmp/mt
|
|
WORLDDIR=${MTDIR}/worlds/world
|
|
|
|
cat <<EOF > ${CFG}
|
|
enable_3d_armor_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/3d_armor \
|
|
registry.gitlab.com/minetest/minetest/server:5.2.0
|
|
|
|
test -f ${WORLDDIR}/integration_test.json && exit 0 || exit 1
|