mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix unit test of readerlink and readerpaging
and have more confidence with the unit testing framework. Now `make testfront` won't retry on failure and testing files are ordered in each run so that it's possible to reproduce testing failure. And this patch also fix flush settings not working before suspend issue: at some point the `FlushSettings` event is sent to `UIManager` instead of `ReaderUI`, but `UIManager` only delegated events to active widgets and `ReaderUI` is actually not an active widgets thus will miss the event. This patch also add a verbose debug mode with "-v" as a switch to turn on this mode. With verbose mode on, event handling will be logged.
This commit is contained in:
@@ -48,6 +48,7 @@ local function showusage()
|
||||
print("Read all the books on your E-Ink reader")
|
||||
print("")
|
||||
print("-d start in debug mode")
|
||||
print("-v debug in verbose mode")
|
||||
print("-p enable Lua code profiling")
|
||||
print("-h show this usage help")
|
||||
print("")
|
||||
@@ -82,6 +83,8 @@ while argidx <= #ARGV do
|
||||
return showusage()
|
||||
elseif arg == "-d" then
|
||||
DEBUG:turnOn()
|
||||
elseif arg == "-v" then
|
||||
DEBUG:setVerbose(true)
|
||||
elseif arg == "-p" then
|
||||
Profiler = require("jit.p")
|
||||
Profiler.start("la")
|
||||
|
||||
Reference in New Issue
Block a user