rizin/test/scripts/map_clean.rz
Giovanni 2f97762b09
librz/core: Remove rizin command output (#5540)
* Remove RIZIN command output for the old projects

* Fix cmeta.c

* Fix ik command

* Revert back pc*

* fix formatting cmd_descs_generate.py

* Fix rz_cons_pal_list_as_css

* Fill all info about colors for ec commands.

* Fix all tests
2025-11-28 23:41:47 +08:00

7 lines
538 B
Text

# Partially cleans the map output of `cmd`, towards making it invariant over different CI builds
(map_clean cmd; .(map_clean_i ${cmd} `di~exe[1] | sed 's,.*/rizin/test/bins/,,g; s,/,\\2,g; s/-/[-_]/g'`))
(map_clean_i cmd bin; .echo ${cmd} | sed 's/[fe][0-9a-f]\{7\}/________/g; s,[^[:space:]]*\(\([/_]\)rizin\2test\2bins\2${bin}\),...\1,g')
(dm_cmd_clean cmd; .(map_clean ${cmd}) | sed 's/1..\(K.*stack\)/1__\1/g')
(dm_clean; .(dm_cmd_clean dm))
(fl_F_maps_clean; .(map_clean "fl@F:maps") | sed 's/1[0-9]\{5\}\(.*stack\)/1_____\1/g')