forked from Mineclonia/Mineclonia
add a setting to opt-in for selftests
This commit is contained in:
parent
6f811b3cee
commit
d0540c3a1c
|
@ -85,8 +85,6 @@ local test_minetest_find_nodes_in_area_can_count = function(dtime)
|
||||||
assert ( 0 == nodes_difference )
|
assert ( 0 == nodes_difference )
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.after( 0, test_minetest_find_nodes_in_area_can_count )
|
|
||||||
|
|
||||||
local test_minetest_find_nodes_in_area_crash = function(dtime)
|
local test_minetest_find_nodes_in_area_crash = function(dtime)
|
||||||
-- And now for our feature presentation, where we call the
|
-- And now for our feature presentation, where we call the
|
||||||
-- function “minetest.find_nodes_in_area()” with a position
|
-- function “minetest.find_nodes_in_area()” with a position
|
||||||
|
@ -110,4 +108,7 @@ local test_minetest_find_nodes_in_area_crash = function(dtime)
|
||||||
-- That's all, folks!
|
-- That's all, folks!
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.after( 0, test_minetest_find_nodes_in_area_crash )
|
if minetest.settings:get_bool("mclRunSelftests") then
|
||||||
|
minetest.after( 0, test_minetest_find_nodes_in_area_can_count )
|
||||||
|
minetest.after( 0, test_minetest_find_nodes_in_area_crash )
|
||||||
|
end
|
||||||
|
|
|
@ -146,3 +146,6 @@ basic_pseudobiome_villages (Enables very basic, and experimental "pseudobiome-ba
|
||||||
|
|
||||||
# If enabled, will run an LBM to fix the top 1/2 of double plants in mcimported worlds; defaults to true.
|
# If enabled, will run an LBM to fix the top 1/2 of double plants in mcimported worlds; defaults to true.
|
||||||
fix_doubleplants (Mcimport double plant fixes) bool true
|
fix_doubleplants (Mcimport double plant fixes) bool true
|
||||||
|
|
||||||
|
# Run tests on startup, crash if they fail. Particularly useful for development.
|
||||||
|
mclRunSelftests (Run Selftests on Startup) bool false
|
||||||
|
|
Loading…
Reference in New Issue