rizin/test/db/cmd/cmd_pdj
Aswin C d42cde8ca5
Disable asm.bytes by default ##cons (#155)
* Disable `asm.bytes` by default

* Fix tests by adding `e asm.bytes=true` (1/n)

* Fix tests by adding  (2/n)

* Fix tests by adding `e asm.bytes=true` (3/n)

* Fix tests by adding `asm.bytes=true` (4/n)

* Fix test by adding `asm.bytes=true` (5/n)

* Fix mostly all broken tests

* Attemp to fix the rzpipe test

* Attempt to fix the tests in `db/cmd/cmd_pipe`

* Fix tests again

* Fix cmd_pipe test

* Add a test where `asm.bytes` is false

Co-authored-by: Anton Kochkov <anton.kochkov@gmail.com>
2020-12-15 12:47:33 +01:00

48 lines
1.1 KiB
Text

NAME=pdJ+html
FILE=bins/mach0/ls-osx-x86_64
CMDS=<<EOF
e asm.bytes=true
pdJ 1~{}
e scr.html=1
pdJ 1~{}
EOF
EXPECT=<<EOF
[
{
"offset": 4294972376,
"text": " ;-- main:"
},
{
"offset": 4294972376,
"text": " ;-- entry0:"
},
{
"offset": 4294972376,
"text": " ;-- func.1000013d8:"
},
{
"offset": 4294972376,
"text": " 0x1000013d8 55 push rbp"
}
]
[
{
"offset": 4294972376,
"text": "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;--&nbsp;main:"
},
{
"offset": 4294972376,
"text": "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;--&nbsp;entry0:"
},
{
"offset": 4294972376,
"text": "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;--&nbsp;func.1000013d8:"
},
{
"offset": 4294972376,
"text": "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x1000013d8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;55&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;push&nbsp;rbp"
}
]
EOF
RUN