1
0
mirror of https://github.com/luanti-org/minetestmapper.git synced 2025-10-06 22:05:22 +02:00

Add simple functional test to CI

This commit is contained in:
sfan5
2021-08-27 20:49:29 +02:00
parent 8b563f409e
commit 5c435f6459
3 changed files with 23 additions and 0 deletions

View File

@@ -13,3 +13,15 @@ run_build() {
make -j2
}
do_functional_test() {
mkdir testmap
echo "backend = sqlite3" >testmap/world.mt
sqlite3 testmap/map.sqlite <<END
CREATE TABLE blocks(pos INT,data BLOB);
INSERT INTO blocks(pos, data) VALUES(0, x'$(cat util/ci/test_block)');
END
./minetestmapper --noemptyimage -i ./testmap -o map.png
file map.png
}