-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from cuberite/Tests
Started working for scenario tests for CuberitePluginChecker
- Loading branch information
Showing
8 changed files
with
130 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
-- selection.lua | ||
|
||
-- These files are used with the CuberitePluginChecker script. | ||
-- This test tests the selection and actions on the selection. | ||
-- Usage: lua CuberitePluginChecker.lua -a AutoAPI -e ManualAPI.lua -i APIImpl/All.lua -p <WorldEditPath> -s <WorldEditPath>/selection.lua -f ^E_ | ||
|
||
|
||
|
||
|
||
|
||
scenario | ||
{ | ||
redirectPluginFiles | ||
{ | ||
-- Redirect the default config file. | ||
-- This disables the update check and also works around a bug in the simulator which causes block/item enums to not be in the global environment. | ||
["config.cfg"] = "test.config.cfg" | ||
}, | ||
world | ||
{ | ||
name = "world" | ||
}, | ||
initializePlugin(), | ||
connectPlayer | ||
{ | ||
name = "TestUser" | ||
}, | ||
playerCommand | ||
{ | ||
playerName = "TestUser", | ||
command = "//pos1", | ||
}, | ||
playerCommand | ||
{ | ||
playerName = "TestUser", | ||
command = "//pos2", | ||
}, | ||
playerCommand | ||
{ | ||
playerName = "TestUser", | ||
command = "//set 0", | ||
}, | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
WandItem = 271, | ||
Limits = | ||
{ | ||
ButcherRadius = -1, | ||
MaxBrushRadius = 5, | ||
DisallowedBlocks = {6, 7, 14, 15, 16, 26, 27, 28, 29, 39, 31, 32, 33, 34, 36, 37, 38, 39, 40, 46, 50, 51, 56, 59, 69, 73, 74, 75, 76, 77, 81, 83}, | ||
}, | ||
|
||
Defaults = | ||
{ | ||
ButcherRadius = 20, | ||
}, | ||
|
||
NavigationWand = | ||
{ | ||
Item = 345, | ||
MaxDistance = 120, | ||
TeleportNoHit = true, | ||
}, | ||
|
||
Scripting = | ||
{ | ||
-- If true it logs an error when a craftscript failed | ||
Debug = false, | ||
|
||
-- The amount of seconds that a script may be active. Any longer and the script will be aborted. | ||
-- If negative the time a script can run is unlimited. | ||
MaxExecutionTime = 5, | ||
}, | ||
|
||
Schematics = | ||
{ | ||
OverrideExistingFiles = true, | ||
}, | ||
|
||
Updates = | ||
{ | ||
CheckForUpdates = false, | ||
NumAttempts = 3, | ||
ShowMessageWhenUpToDate = true, | ||
DownloadNewerVersion = true, | ||
}, | ||
|
||
Storage = | ||
{ | ||
-- If set to true the selection of a player will be remembered once he leaves. | ||
RememberPlayerSelection = true, | ||
|
||
-- If WorldEdit needs to change a format in the database the database will be backuped first before changing. | ||
-- This doesn't mean when adding or removing data the database will be backed up. Only when the used database is outdated. | ||
BackupDatabaseWhenUpdating = true, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters