Skip to content

Commit

Permalink
hardens tests for PR#41 with ida 7.3 updates (#43)
Browse files Browse the repository at this point in the history
* fix plugin flags for ida7.3

* fixes tests

* rm trailing space
  • Loading branch information
gitoleg authored Nov 13, 2019
1 parent 77947fc commit dfa632a
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion plugins/bap/plugins/bap_bir_attr.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class BapBirAttr(idaapi.plugin_t):
Also supports installation of callbacks using install_callback()
"""
flags = idaapi.PLUGIN_DRAW
flags = idaapi.PLUGIN_FIX | idaapi.PLUGIN_DRAW
comment = "Run BAP "
help = "Runs BAP and extracts data from the output"
wanted_name = "BAP: Run"
Expand Down
2 changes: 1 addition & 1 deletion plugins/bap/plugins/bap_clear_comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


class BapClearComments(idaapi.plugin_t):
flags = idaapi.PLUGIN_DRAW
flags = idaapi.PLUGIN_DRAW | idaapi.PLUGIN_FIX
comment = "removes all BAP comments"
help = ""
wanted_name = "BAP: Clear comments"
Expand Down
2 changes: 1 addition & 1 deletion plugins/bap/plugins/bap_comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def OnGetLine(self, n):


class BapComment(idaapi.plugin_t):
flags = 0
flags = idaapi.PLUGIN_FIX
help = 'propagate comments to IDA Views'
comment = ''
wanted_name = 'BAP: View BAP Attributes'
Expand Down
2 changes: 1 addition & 1 deletion plugins/bap/plugins/bap_task_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def OnSelectionChange(self, selected):

class BapTaskManager(idaapi.plugin_t):
#pylint: disable=no-init
flags = idaapi.PLUGIN_DRAW
flags = idaapi.PLUGIN_FIX | idaapi.PLUGIN_DRAW
wanted_hotkey = "Ctrl-Alt-Shift-F5"
comment = "bap task manager"
help = "Open BAP Task Manager"
Expand Down
2 changes: 1 addition & 1 deletion plugins/bap/plugins/bap_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ def display():
class BapTracePlugin(idaapi.plugin_t):
wanted_name = 'BAP: Load Observations'
wanted_hotkey = ''
flags = 0
flags = idaapi.PLUGIN_FIX
comment = 'Load Primus Observations'
help = """
Loads Primus Observations into IDA for further analysis
Expand Down
2 changes: 1 addition & 1 deletion plugins/bap/plugins/bap_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class BapView(idaapi.plugin_t):
Keybindings:
Ctrl-Shift-F5 : Open/Refresh BAP View
"""
flags = idaapi.PLUGIN_DRAW
flags = idaapi.PLUGIN_FIX | idaapi.PLUGIN_DRAW
wanted_hotkey = "Ctrl-Shift-F5"
comment = "bap output viewer"
help = "View BAP output"
Expand Down
2 changes: 1 addition & 1 deletion plugins/bap/utils/bap_taint.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def __init__(self, addr, kind):


class BapTaint(idaapi.plugin_t):
flags = 0
flags = idaapi.PLUGIN_FIX
comment = "BAP Taint Plugin"
wanted_name = "BAP: Taint"

Expand Down
2 changes: 1 addition & 1 deletion plugins/bap/utils/hexrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class PseudocodeVisitor(idaapi.plugin_t):
class.
"""

flags = idaapi.PLUGIN_PROC
flags = idaapi.PLUGIN_FIX | idaapi.PLUGIN_PROC
wanted_hotkey = ""

def visit_line(self, line):
Expand Down
13 changes: 7 additions & 6 deletions tests/mockidaapi.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# flake8: noqa

ASKBTN_YES = NotImplemented
ASKBTN_NO = NotImplemented
ASKBTN_CANCEL = NotImplemented
PLUGIN_DRAW = NotImplemented
PLUGIN_HIDE = NotImplemented
PLUGIN_KEEP = NotImplemented
ASKBTN_YES = 0
ASKBTN_NO = 0
ASKBTN_CANCEL = 0
PLUGIN_DRAW = 0
PLUGIN_HIDE = 0
PLUGIN_KEEP = 0
PLUGIN_FIX = 0
class plugin_t(object): pass
class text_sink_t(object): pass
class Choose2(object): pass
Expand Down

0 comments on commit dfa632a

Please sign in to comment.