Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wargio committed Dec 29, 2024
1 parent 2f51b77 commit 7f1f1e7
Show file tree
Hide file tree
Showing 21 changed files with 62 additions and 113 deletions.
1 change: 1 addition & 0 deletions test/db/analysis/java
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ block 0x100
type JAVA CLASS
arch java
cpu N/A
features N/A
baddr 0x00000000
binsz 0x00000400
bintype class
Expand Down
1 change: 1 addition & 0 deletions test/db/analysis/rl78
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ EXPECT=<<EOF
0x00000785 clrw ax
arch rl78
cpu N/A
features N/A
baddr 0x00000000
binsz 0x00008360
bintype elf
Expand Down
1 change: 1 addition & 0 deletions test/db/analysis/rx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ EXPECT=<<EOF
0xfff4000f mvtc #loc.__vectors, intb, ; crt0.S:41
arch rx
cpu N/A
features N/A
baddr 0xfff40000
binsz 0x0000a623
bintype elf
Expand Down
25 changes: 17 additions & 8 deletions test/db/cmd/cmd_i
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ type
[Info]
arch N/A
cpu N/A
features N/A
baddr 0x00000000
binsz 0x00000401
bintype N/A
Expand Down Expand Up @@ -224,6 +225,7 @@ block 0x100
type
arch N/A
cpu N/A
features N/A
baddr 0x00000000
binsz 0x00000400
bintype N/A
Expand Down Expand Up @@ -273,6 +275,7 @@ iorw false
block 0x100
arch x86
cpu N/A
features N/A
baddr 0x08048000
binsz 0x00001323
bintype elf
Expand Down Expand Up @@ -316,10 +319,10 @@ iA
iAj
EOF
EXPECT=<<EOF
offset size arch machine
-----------------------------------------------
0x00000000 266108 mips_32 mips1 o32 MIPS R3000
[{"arch":"mips","bits":32,"offset":0,"size":266108,"isa":"mips1","features":"o32","machine":"MIPS R3000"}]
offset size arch machine
----------------------------------------------------------------------
0x00000000 266108 mips_32 mips5 noreorder pic c MIPS R3000 big-endian
[{"arch":"mips","bits":32,"offset":0,"size":266108,"cpu":"mips5","features":"noreorder pic cpic o32 n32","machine":"MIPS R3000 big-endian"}]
EOF
RUN

Expand All @@ -330,10 +333,10 @@ iA
iAj
EOF
EXPECT=<<EOF
offset size arch machine
---------------------------------------------------
0x00000000 1039368 mips_64 mips64r2 n64 MIPS R3000
[{"arch":"mips","bits":64,"offset":0,"size":1039368,"isa":"mips64r2","features":"n64","machine":"MIPS R3000"}]
offset size arch machine
-----------------------------------------------------------------------
0x00000000 1039368 mips_64 mips64r2 noreorder pi MIPS R3000 big-endian
[{"arch":"mips","bits":64,"offset":0,"size":1039368,"cpu":"mips64r2","features":"noreorder pic cpic n64","machine":"MIPS R3000 big-endian"}]
EOF
RUN

Expand Down Expand Up @@ -375,6 +378,7 @@ block 0x100
type JAVA CLASS
arch java
cpu N/A
features N/A
baddr 0x00000000
binsz 0x00000400
bintype class
Expand Down Expand Up @@ -819,6 +823,7 @@ CMDS=iq
EXPECT=<<EOF
arch arm
cpu N/A
features N/A
bits 16
os linux
endian little
Expand All @@ -834,6 +839,7 @@ CMDS=iaq
EXPECT=<<EOF
arch arm
cpu N/A
features N/A
bits 16
os linux
endian little
Expand Down Expand Up @@ -1782,6 +1788,7 @@ CMDS=iI
EXPECT=<<EOF
arch x86
cpu N/A
features N/A
baddr 0x08048000
binsz 0x00001323
bintype elf
Expand Down Expand Up @@ -3297,6 +3304,7 @@ block 0x100
type EXEC (Executable file)
arch x86
cpu N/A
features N/A
baddr 0x00400000
binsz 0x00001a36
bintype elf
Expand Down Expand Up @@ -3393,6 +3401,7 @@ CMDS=iI
EXPECT=<<EOF
arch x86
cpu N/A
features N/A
baddr 0x00400000
binsz 0x00001a36
bintype elf
Expand Down
1 change: 1 addition & 0 deletions test/db/cmd/cmd_open
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ block 0x100
type EXEC (Executable file)
arch x86
cpu N/A
features N/A
baddr 0x08048000
binsz 0x000050bc
bintype elf
Expand Down
2 changes: 1 addition & 1 deletion test/db/cmd/cmd_pipe
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Copied bins/mach0/mach0_2-x86_64 succesfully
-------------
Shared buffer size 0x10e8
-------------
{'arch': 'x86', 'baddr': 4294967296, 'binsz': 4328, 'bintype': 'mach0', 'bits': 64, 'class': 'MACH064', 'compiler': '', 'endian': 'LE', 'intrp': '/usr/lib/dyld', 'laddr': 0, 'lang': 'c', 'machine': 'x86 64 all', 'maxopsz': 16, 'minopsz': 1, 'os': 'darwin', 'pcalign': 0, 'subsys': 'macOS', 'stripped': False, 'crypto': False, 'havecode': True, 'va': True, 'sanitiz': False, 'static': False, 'linenum': False, 'lsyms': False, 'canary': False, 'PIE': True, 'RELROCS': False, 'NX': False}
{'arch': 'x86', 'cpu': 'x86 64 all', 'baddr': 4294967296, 'binsz': 4328, 'bintype': 'mach0', 'bits': 64, 'class': 'MACH064', 'compiler': '', 'endian': 'LE', 'intrp': '/usr/lib/dyld', 'laddr': 0, 'lang': 'c', 'machine': 'x86 64 all', 'maxopsz': 16, 'minopsz': 1, 'os': 'darwin', 'pcalign': 0, 'subsys': 'macOS', 'stripped': False, 'crypto': False, 'havecode': True, 'va': True, 'sanitiz': False, 'static': False, 'linenum': False, 'lsyms': False, 'canary': False, 'PIE': True, 'RELROCS': False, 'NX': False}
- offset - 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
0x100000f70 5548 89e5 4883 ec10 c745 fc00 0000 0089 UH..H....E......

Expand Down
Loading

0 comments on commit 7f1f1e7

Please sign in to comment.