13 lines
401 B
Bash
Executable File
13 lines
401 B
Bash
Executable File
#!/bin/sh
|
|
# simple integration test
|
|
|
|
mkdir -p /tmp/mt/worlds/world
|
|
chmod 777 /tmp/mt -Rv
|
|
docker run --rm -it \
|
|
-v $(pwd)/test-minetest.conf:/etc/minetest/minetest.conf \
|
|
-v /tmp/mt:/var/lib/minetest/.minetest \
|
|
-v $(pwd):/var/lib/minetest/.minetest/worlds/world/worldmods \
|
|
registry.gitlab.com/minetest/minetest/server:5.0.1
|
|
|
|
test -f /tmp/mt/worlds/world/integration_test.json && exit 0 || exit 1
|