projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "dbg: Watchdog resets while 'hw tune lf'"
[proxmark3-svn]
/
client
/
scripts
/
tracetest.lua
diff --git
a/client/scripts/tracetest.lua
b/client/scripts/tracetest.lua
index e4a9215cb0a74bb0c877c0f636c4097a1031c721..ae4055aed40a9a6c891a42b62af7cb42369f2fcc 100644
(file)
--- a/
client/scripts/tracetest.lua
+++ b/
client/scripts/tracetest.lua
@@
-6,19
+6,20
@@
local dumplib = require('html_dumplib')
example =[[
1. script run tracetest
example =[[
1. script run tracetest
- 2. script run tracetest -o
-
]]
author = "Iceman"
]]
author = "Iceman"
-usage = "script run tracetest
-o <filename>
"
+usage = "script run tracetest"
desc =[[
This script will load several traces files in ../traces/ folder and do
"data load"
desc =[[
This script will load several traces files in ../traces/ folder and do
"data load"
-"lf search"
+"lf search 1 u"
+
+The following tracefiles will be loaded:
+ em*.pm3
+ m*.pm3
Arguments:
-h : this help
Arguments:
-h : this help
- -o : logfile name
]]
local TIMEOUT = 2000 -- Shouldn't take longer than 2 seconds
]]
local TIMEOUT = 2000 -- Shouldn't take longer than 2 seconds
@@
-71,14
+72,14
@@
local function main(args)
local tracesEM = "find '../traces/' -iname 'em*.pm3' -type f"
local tracesMOD = "find '../traces/' -iname 'm*.pm3' -type f"
local tracesEM = "find '../traces/' -iname 'em*.pm3' -type f"
local tracesMOD = "find '../traces/' -iname 'm*.pm3' -type f"
+ local write2File = false
local outputTemplate = os.date("testtest_%Y-%m-%d_%H%M%S")
-- Arguments for the script
local outputTemplate = os.date("testtest_%Y-%m-%d_%H%M%S")
-- Arguments for the script
- for o, arg in getopt.getopt(args, 'h
o:
') do
+ for o, arg in getopt.getopt(args, 'h') do
if o == "h" then return help() end
if o == "h" then return help() end
- if o == "o" then outputTemplate = arg end
end
end
-
+
core.clearCommandBuffer()
local files = {}
core.clearCommandBuffer()
local files = {}
@@
-97,7
+98,7
@@
local function main(args)
end
p.close();
end
p.close();
- local cmdLFSEARCH = "lf search 1"
+ local cmdLFSEARCH = "lf search 1
u
"
-- main loop
io.write('Starting to test traces > ')
-- main loop
io.write('Starting to test traces > ')
@@
-119,13
+120,6
@@
local function main(args)
end
io.write('\n')
end
io.write('\n')
- -- Write dump to files
- if not DEBUG then
- local bar = dumplib.SaveAsText(emldata, outputTemplate..'.txt')
- print(("Wrote output to: %s"):format(bar))
- end
-
- -- Show info
print( string.rep('--',20) )
end
print( string.rep('--',20) )
end
Impressum
,
Datenschutz