Skip to content

Commit

Permalink
Base test output
Browse files Browse the repository at this point in the history
  • Loading branch information
kazarmy committed Feb 3, 2025
1 parent 2d039ee commit 33d0a8e
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions test/db/cmd/regexp
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,42 @@ Searching in [0x0,0x200)
hits: 1
EOF
RUN

NAME=consistency btw / and /e
FILE=bins/elf/analysis/ls2
CMDS=<<EOF
e scr.color=1
/ lib
echo ----
/e /lib/
EOF
EXPECT=<<EOF
0x00400239 hit0_0 ./lib64/ld-linux-x86-.
0x00400f19 hit0_1 .alibselinux.so.1_IT.
0x00400fae hit0_2 .etfilecon_finilibacl.so.1acl_get.
0x00400feb hit0_3 .l_extended_filelibc.so.6fflushst.
0x004013c3 hit0_4 .cmptcgetpgrp__libc_start_maindir.
0x0041769a hit0_5 .system call./.libs/lt-.
0x004186e0 hit0_6 .emory exhaustedlib/xstrtol.c0 <.
0x00418e58 hit0_7 .xstrtoumax/usr/libASCIICHARSETAL.
----
EOF
EXPECT_ERR=<<EOF
Searching 3 bytes in [0x61d368,0x61d720)
hits: 0
Searching 3 bytes in [0x400000,0x41bc2c)
[ ] 0x00403a00 < 0x0041bc2c hits = 5 [# ][ ] 0x00407a00 < 0x0041bc2c hits = 5 [# ][ ] 0x0040ba00 < 0x0041bc2c hits = 5 [# ][ ] 0x0040fa00 < 0x0041bc2c hits = 5 [# ][ ] 0x00413a00 < 0x0041bc2c hits = 5 [# ][ ] 0x00417a00 < 0x0041bc2c hits = 6 [# ][ ] 0x0041ba00 < 0x0041bc2c hits = 8 [# ]hits: 8
Searching 3 bytes in [0x61c5f4,0x61d360)
hits: 0
Searching 3 bytes in [0x61bdf0,0x61c5f4)
hits: 0
Searching in [0x61d368,0x61d720)
hits: 0
Searching in [0x400000,0x41bc2c)
hits: 0
Searching in [0x61c5f4,0x61d360)
hits: 0
Searching in [0x61bdf0,0x61c5f4)
hits: 0
EOF
RUN
Expand Down

0 comments on commit 33d0a8e

Please sign in to comment.