capa/tests
Willi Ballenthin c3301d3b3f
refactor main to for ease of integration (#1948)
* main: split main into a bunch of "main routines"

[wip] since there are a few references to BinExport2
that are in progress elsewhre. Next commit will remove them.

* main: remove references to wip BinExport2 code

* changelog

* main: rename first position argument "input_file"

closes #1946

* main: linters

* main: move rule-related routines to capa.rules

ref #1821

* main: extract routines to capa.loader module

closes #1821

* add loader module

* loader: learn to load freeze format

* freeze: use new cli arg handling

* Update capa/loader.py

Co-authored-by: Moritz <mr-tz@users.noreply.github.com>

* main: remove duplicate documentation

* main: add doc about where some functions live

* scripts: migrate to new main wrapper helper functions

* scripts: port to main routines

* main: better handle auto-detection of backend

* scripts: migrate bulk-process to main wrappers

* scripts: migrate scripts to main wrappers

* main: rename *_from_args to *_from_cli

* changelog

* cache-ruleset: remove duplication

* main: fix tag handling

* cache-ruleset: fix cli args

* cache-ruleset: fix special rule cli handling

* scripts: fix type bytes

* main: remove old TODO message

* loader: fix references to binja extractor

---------

Co-authored-by: Moritz <mr-tz@users.noreply.github.com>
2024-01-29 13:59:05 +01:00
..
data@f10326d6b7 Sync capa-testfiles submodule 2024-01-05 14:24:40 +00:00
conftest.py
fixtures.py refactor main to for ease of integration (#1948) 2024-01-29 13:59:05 +01:00
test_binja_features.py Merge branch 'master' into test_binja_forwarded_export 2023-09-21 12:10:13 +02:00
test_capabilities.py test_capabilities.py: add missing test_com_feature_matching() test 2023-10-20 20:11:08 +02:00
test_cape_features.py
test_cape_model.py verify target file type and warn user 2024-01-18 12:33:28 +01:00
test_dnfile_features.py
test_dotnetfile_features.py
test_elffile_features.py Resolved Import address 2023-08-02 16:41:24 +05:30
test_engine.py
test_extractor_hashing.py tests: create workspaces only during tests, not import 2023-08-11 08:38:06 +00:00
test_fmt.py add tests 2023-07-27 10:31:45 +01:00
test_freeze_dynamic.py layout: capture call names 2023-10-20 14:21:13 +00:00
test_freeze_static.py tests: rename freeze tests 2023-10-19 09:24:18 +00:00
test_function_id.py
test_ghidra_features.py add a Ghidra entry script users can invoke to run capa against a loaded Ghidra database (#1767) 2023-08-25 18:35:59 -07:00
test_helpers.py fix symbol generation, ordinals 2023-12-03 17:49:54 +02:00
test_ida_features.py Update tests/test_ida_features.py 2023-08-15 12:26:19 +02:00
test_main.py identify potential JSON object data start (#1819) 2023-10-19 17:17:57 +02:00
test_match.py update tests to explicitely specify scopes 2023-08-01 07:41:47 +01:00
test_optimizer.py add tests 2023-07-27 10:31:45 +01:00
test_os_detection.py os: detect Android via dependencies, too 2023-08-14 10:27:19 +00:00
test_pefile_features.py
test_proto.py proto: fix serialization of call address 2023-10-19 09:59:18 +00:00
test_render.py tests: fix render tests 2023-11-06 10:32:44 +00:00
test_result_document.py add yaml representer for the Scope class, as well as other bugfixes 2023-08-26 18:11:35 +02:00
test_rule_cache.py add tests 2023-07-27 10:31:45 +01:00
test_rules.py fix: do not trim api names that include :: (#1897) 2024-01-08 10:59:24 -07:00
test_rules_insn_scope.py test_rules_insn_scope.py: update rules missing the dynamic scope 2023-08-22 16:26:54 +02:00
test_scripts.py cape2yara.py: update for use of scopes, and fix bug 2023-08-24 14:32:49 +02:00
test_viv_features.py