Skip to content

Commit

Permalink
More regex fixes of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Feb 2, 2024
1 parent 084d3e4 commit 8db95ef
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 22 deletions.
36 changes: 18 additions & 18 deletions test/db/archos/darwin-x64/dbg
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ ARGS=-d
CMDS=<<EOF
dm~hello
EOF
REGEXP_FILTER_OUT=((0x00000001[^\/]+)|(hello_objc_osx.[r_x]+))
REGEXP_FILTER_OUT=((0x00000001[^\/]+)|(hello_objc_osx.[r_wx]+))
EXPECT=<<EOF
0x0000000100000000 - 0x0000000100001000 - usr 4K u r-x hello-objc-osx hello-objc-osx
0x0000000100000000 - 0x0000000100001000 - usr 4K u r-x hello-objc-osx
hello_objc_osx.r_x
0x0000000100001000 - 0x0000000100002000 - usr 4K u rw- hello-objc-osx hello-objc-osx
0x0000000100001000 - 0x0000000100002000 - usr 4K u rw- hello-objc-osx
hello_objc_osx.rw
0x0000000100002000 - 0x0000000100003000 - usr 4K u r-- hello-objc-osx hello-objc-osx
0x0000000100002000 - 0x0000000100003000 - usr 4K u r-- hello-objc-osx
hello_objc_osx.r
EOF
EXPECT_ERR=
Expand Down Expand Up @@ -144,19 +144,19 @@ dr rax
EOF
REGEXP_FILTER_OUT=((r[ia][px]\s=\s[a-fx0-9]+)|(--))
EXPECT=<<EOF
rip = f20
rip = 0x0000000101665f20
--
rip = f34
rip = 0x0000000101665f34
rax = 0x0000000000000000
--
rip = f38
rip = 0x0000000101665f38
rax = 0x0000000000000064
EOF
REGEXP_FILTER_ERR=(([a-zA-Z:]+|[0-9a-f][0-9a-f][0-9a-f])\s+)
REGEXP_FILTER_ERR=(hit\sbreakpoint\sat:\s[0-9xa-f]+)
EXPECT_ERR=<<EOF
hit breakpoint at: f20
hit breakpoint at: f34
hit breakpoint at: f38
hit breakpoint at: 0x0000000101665f20
hit breakpoint at: 0x0000000101665f34
hit breakpoint at: 0x0000000101665f38
EOF
RUN

Expand All @@ -180,18 +180,18 @@ dr rax
EOF
REGEXP_FILTER_OUT=((r[ia][px]\s=\s[a-fx0-9]+)|(--))
EXPECT=<<EOF
rip = ea0
rip = 0x0000000100000ea0
--
rip = edd
rip = 0x0000000100000edd
rax = 0x0000000000000190
--
rip = ee3
rip = 0x0000000100000ee3
rax = 0x00000000000000a0
EOF
REGEXP_FILTER_ERR=(([a-zA-Z:]+|[0-9a-f][0-9a-f][0-9a-f])\s+)
REGEXP_FILTER_ERR=(hit\sbreakpoint\sat:\s[0-9xa-f]+)
EXPECT_ERR=<<EOF
hit breakpoint at: ea0
hit breakpoint at: edd
hit breakpoint at: ee3
hit breakpoint at: 0x0000000100000ea0
hit breakpoint at: 0x0000000100000edd
hit breakpoint at: 0x0000000100000ee3
EOF
RUN
3 changes: 1 addition & 2 deletions test/db/archos/linux-x64/dbg_dmh
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ echo ----
7dso
dmh | tail -n 3
EOF
REGEXP_FILTER_OUT=(status=[a-z,[0]+)|(size=0x[a-f0-9]+)|-+|\n|[()]|Chunk
REGEXP_FILTER_OUT=(Chunk\(status=[a-z,[0]+(size=0x[a-f0-9]+)\))
EXPECT=<<EOF
Chunk(status=allocated,size=0x12010)
Chunk(status=free,size=0xed60)
----
Chunk(status=allocated,size=0x12010)
Chunk(status=allocated,size=0x20)
Chunk(status=free,size=0xed40)
Expand Down
2 changes: 1 addition & 1 deletion test/db/archos/linux-x64/dbg_oo
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ ARGS=-e log.level=4
CMDS=<<EOF
ood
EOF
REGEXP_FILTER_ERR=([a-zA-Z-]+)
REGEXP_FILTER_ERR=(Process\swith\sPID\sFile\s.+)
EXPECT_ERR=<<EOF
Process with PID File -helloworld-gcc reopened in read-write mode
EOF
Expand Down
2 changes: 1 addition & 1 deletion test/db/archos/linux-x64/dbg_trace
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ echo ----
dsui call; ds
dbt~[6-] # dbtt here would be nice
EOF
REGEXP_FILTER_OUT=((loc\.[^_]\S*)|(main\s?\S*)|(entry0\+\d+)|(-+))
REGEXP_FILTER_OUT=((loc\.[^_]\S*)|(main\s?\S*)|(entry0\+\d+)|(----))
EXPECT=<<EOF
main loc.func_6+6
entry0+41
Expand Down

0 comments on commit 8db95ef

Please sign in to comment.