Загрузить файлы в «test»

This commit is contained in:
Nomad Senaxsys 2024-09-28 22:41:40 +03:00
parent 6fd7d9a5c3
commit 2a80b87bda
5 changed files with 21 additions and 0 deletions

15
test/Dockerfile Normal file
View File

@ -0,0 +1,15 @@
ARG ENGINE_VERSION=5.7.0
FROM registry.gitlab.com/minetest/minetest/server:${ENGINE_VERSION}
# copy old v1 maildb for migration testing
COPY ./mail.db /root/.minetest/worlds/world/mail.db
# copy old v2 mail-dir and auth.sqlite for migration testing
COPY ./old_v2_player.json /root/.minetest/worlds/world/mails/
COPY ./auth.sqlite /root/.minetest/worlds/world/auth.sqlite
USER root
RUN apk add git &&\
mkdir -p /root/.minetest/worlds/world/worldmods/ &&\
git clone https://github.com/BuckarooBanzay/mtt /root/.minetest/worlds/world/worldmods/mtt
ENTRYPOINT minetestserver --config /minetest.conf

BIN
test/auth.sqlite Normal file

Binary file not shown.

1
test/mail.db Normal file
View File

@ -0,0 +1 @@
local _={};_[1]="singleplayer";return {old_v1_player={{unread=true,subject="test1",sender=_[1],body="test2"}},[_[1]]={}}

4
test/minetest.conf Normal file
View File

@ -0,0 +1,4 @@
default_game = minetest_game
mg_name = v7
mtt_enable = true
mtt_filter = mail

1
test/old_v2_player.json Normal file
View File

@ -0,0 +1 @@
[{"body":"test2","sender":"someone-else","subject":"test1","time":1678467148,"unread":false}]