Commit 18c7ba4
Better tests (#813)
* first shot at refactoring ci testing
* - Added skeleton for most missing command test modules
- Fixed a logic error in `NopCommand`
* [ci] added tests for `nop`
* [ci] extra test for nop for memory check
* added benchmarking capability, can be triggered directly from `pytest`
* - fixed `pcustom` command test for 32b
- fixed calculation of tcache in gef
- added tests for `gef.heap`
- improved tests for `heap` command
- fixes #641
* [ci] cmd/heap - adjusted tcachebins indexes for 32b
* damnit
* - fixed linting
- fixed test `highlight` for 32b
- fixed test `pattern_search` for x86
* last fixes for tonight
* fixed `pattern` and `heap` tests for good
* - add 3rd party module check for `capstone`, `keystone`, `unicorn` and `ropper`
* added `test_func_update_gef`
* `make test` doesn't execute benchmark
* - fixed errors in the `pie` subcommands
- added tests for `pie`
* `theme` added more tests
* - improved tests for `pattern` and `edit-flags`
* [ci] created cases for all arches for bin tests in `tests/heap.py`
* fixed `heap` tests for good
* - added ci test for `glibcarena`
- fixed `theme` missing comma (original PR #808 by @mrshu )
- added missing values for `theme`
* - added tests for deprecated API
- added test for smart eval
- more function tests
* started `gef` test module
* - added tests for `syscall-args` and `is-syscall`
* - fixed `syscall-args` to also get catchpoints + tests
* - test `show_last_exception`
* make sure `syscall-args` test collects the ABI files from `gef-extras`
* linting
* only enable `syscall-args` test for x86
* `syscall-args` fixed typo in i686 test
* Fix RISCV arch detection (#790)
* Add RISCV alias so arch can be determined by ELF
* Add ptrsize property to RISCV arch
* Allow riscv tests to run
* Update tests/api/gef_arch.py
Co-authored-by: Grazfather <[email protected]>
* fix: make shebang lines portable (#814)
* fix: make shebang lines portable
* fix: SC2006, SC2086, SC2016, SC2059
* make `heap` tests work universally
* disabling capstone/keystone/unicorn for some arches for now
* - fixed tests for ppc64
- added static `ptrsize` for ppc & ppc64 in gef
* - `BIN_LS` -> `_target("default")`
- removed auto demangle for now
* - disable pytest `--pdb` from makefile
- added doc for testing
* Apply suggestions from code review
Co-authored-by: Grazfather <[email protected]>
* fixing ci
* [tests] use camel case for format string helper test class
* [tests] added docstring to `GefFuncDeprecatedApi`
* [tests] `edit-flags` are only for known arches for now
* PR review changes
* PR review last batch
Co-authored-by: Grazfather <[email protected]>
Co-authored-by: theguy147 <[email protected]>1 parent 37bb542 commit 18c7ba4
File tree
78 files changed
+3062
-1524
lines changed- .github
- docs
- scripts
- tests
- api
- binaries
- commands
- config
- functions
- perf
- regressions
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
78 files changed
+3062
-1524
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 14 | + | |
18 | 15 | | |
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 19 | + | |
26 | 20 | | |
27 | 21 | | |
28 | | - | |
| 22 | + | |
29 | 23 | | |
30 | 24 | | |
31 | 25 | | |
| |||
36 | 30 | | |
37 | 31 | | |
38 | 32 | | |
39 | | - | |
| 33 | + | |
40 | 34 | | |
41 | 35 | | |
42 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
0 commit comments