remove integration test stuff (didn't really do anything)

master
BuckarooBanzay 2022-08-19 18:10:20 +02:00
parent f289e50af2
commit f193fc5b0a
5 changed files with 1 additions and 59 deletions

View File

@ -1,14 +0,0 @@
name: integration-test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: integration-test
run: ./integration-test.sh

View File

@ -5,7 +5,7 @@ Chat mod for minetest
(heavily modified version of the "original" beerchat mod: https://github.com/evrooije/beerchat.git)
![](https://github.com/minetest-beerchat/beerchat/workflows/luacheck/badge.svg)
![](https://github.com/minetest-beerchat/beerchat/workflows/integration-test/badge.svg)
![](https://github.com/minetest-beerchat/beerchat/workflows/mineunit/badge.svg)
# Overview

View File

@ -75,8 +75,4 @@ beerchat.http = nil
-- Load beerchat extensions
dofile(MP.."/plugin/init.lua")
if minetest.settings:get_bool("enable_beerchat_integration_test") then
dofile(MP.."/integration_test.lua")
end
print("[OK] beerchat")

View File

@ -1,21 +0,0 @@
#!/bin/sh
# simple integration test
CFG=/tmp/minetest.conf
MTDIR=/tmp/mt
WORLDDIR=${MTDIR}/worlds/world
cat <<EOF > ${CFG}
enable_beerchat_integration_test = true
secure.http_mods = beerchat
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/beerchat \
registry.gitlab.com/minetest/minetest/server:5.3.0
test -f ${WORLDDIR}/integration_test.json && exit 0 || exit 1

View File

@ -1,19 +0,0 @@
minetest.log("warning", "[TEST] integration-test enabled!")
minetest.register_on_mods_loaded(function()
minetest.after(1, function()
-- TODO something useful here
local data = minetest.write_json({ success = true }, true);
local file = io.open(minetest.get_worldpath().."/integration_test.json", "w" );
if file then
file:write(data)
file:close()
end
minetest.log("warning", "[TEST] integration tests done!")
minetest.request_shutdown("success")
end)
end)