Greetings,
Here is a script that renumbers test numbers in
rtest_xxx.mac files. You can add/remove/reorder
tests in your files and it rewrites test numbers
given in comments.
https://github.com/jlapeyre/mext/blob/master/rtest_renumber.pl
Under *nix, you can type rtest_renumber.pl --man. It is not tested
with MSWin, but it should work there as well-- it makes no system calls.
I run it at the top of a tree of source code and it renumbers
1040 tests in 19 files in 60ms.
If you try it, be careful! Run it on a copy first. I haven't
clobbered anything myself, but it could happen.
HTH,
John