File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed
Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 3333 CC : gcc
3434 CXX : g++
3535
36+ - name : Test
37+ run : |
38+ source util/ci/script.sh
39+ do_functional_test
40+
3641 clang :
3742 runs-on : ubuntu-20.04
3843 steps :
4954 env :
5055 CC : clang
5156 CXX : clang++
57+
58+ - name : Test
59+ run : |
60+ source util/ci/script.sh
61+ do_functional_test
Original file line number Diff line number Diff line change @@ -13,3 +13,15 @@ run_build() {
1313
1414 make -j2
1515}
16+
17+ do_functional_test () {
18+ mkdir testmap
19+ echo " backend = sqlite3" > testmap/world.mt
20+ sqlite3 testmap/map.sqlite << END
21+ CREATE TABLE blocks(pos INT,data BLOB);
22+ INSERT INTO blocks(pos, data) VALUES(0, x'$( cat util/ci/test_block) ');
23+ END
24+
25+ ./minetestmapper --noemptyimage -i ./testmap -o map.png
26+ file map.png
27+ }
Original file line number Diff line number Diff line change 1+ 1b00ffff020278daedd4c1090000080331dd7f691710faf12589235cb12ae870fca6bffefaebafbffefaebafbffefaebbff7b708fdf1ffd11ffdd11ffdd11ffd01000000000000003836d59f010578da63000000010001000000ffffffff000002000000036169720001000d64656661756c743a73746f6e650a0000
You can’t perform that action at this time.
0 commit comments