rizin/test/db/tools/rz_test
Giovanni 3033f62865
Refactor logging. (#4446)
* Remove globals and refactor to complete implementation of logging.
* Renamed log.traplevel to log.abortlevel and hide it on release builds.
2024-04-19 13:02:58 +08:00

48 lines
1.2 KiB
Text

NAME=Only EXPECT_ERR<<EOF
FILE==
CMDS=<<EOF
pfs cat_sat_on_keyboard
pfs CAT_SAT_ON_KEYBOARD
EOF
EXPECT_ERR=<<EOF
ERROR: Format "cat_sat_on_keyboard" could not be found
ERROR: Format "CAT_SAT_ON_KEYBOARD" could not be found
EOF
RUN
NAME=EXPECT<<EOF empty and EXPECT_ERR<<EOF non-empty
FILE==
CMDS=<<EOF
pfs cat_sat_on_keyboard
pfs CAT_SAT_ON_KEYBOARD
EOF
EXPECT=<<EOF
EOF
EXPECT_ERR=<<EOF
ERROR: Format "cat_sat_on_keyboard" could not be found
ERROR: Format "CAT_SAT_ON_KEYBOARD" could not be found
EOF
RUN
NAME=BROKEN=0 with comment
BROKEN=0 # Use BROKEN=0 to unbreak this. Don't remove this line!
FILE==
CMDS=echo Test for BROKEN=0
EXPECT=<<EOF
Test for BROKEN=0
EOF
RUN
NAME=bin with space in filename
FILE=bins/elf/_Exit (42)
CMDS=i~^file
ARGS=-e log.level=3
EXPECT=<<EOF
file bins/elf/_Exit (42)
EOF
EXPECT_ERR=<<EOF
WARNING: Neither hash nor gnu_hash exist. Falling back to heuristics for deducing the number of dynamic symbols...
WARNING: Neither hash nor gnu_hash exist. Falling back to heuristics for deducing the number of dynamic symbols...
WARNING: Neither hash nor gnu_hash exist. Falling back to heuristics for deducing the number of dynamic symbols...
EOF
RUN