mbox series

[0/2] t0021: convert perl script to C test-tool helper

Message ID cover.1658518769.git.matheus.bernardino@usp.br (mailing list archive)
Headers show
Series t0021: convert perl script to C test-tool helper | expand

Message

Matheus Tavares July 22, 2022, 7:42 p.m. UTC
This addresses the "left over bits" comment from [1], converting the
t0021/rot13-filter.pl script to a C test-tool helper in order to drop
the PERL dependency from tests using this script.

This series builds on top of mt/checkout-count-fix, also adjusting the
script invocations from that patchset.

[1]: https://lore.kernel.org/git/xmqqfsj4dhfi.fsf@gitster.g/

Matheus Tavares (2):
  t/t0021: convert the rot13-filter.pl script to C
  t/t0021: replace old rot13-filter.pl uses with new test-tool cmd

 Makefile                                |   1 +
 pkt-line.c                              |  13 +-
 pkt-line.h                              |   2 +
 t/helper/test-rot13-filter.c            | 396 ++++++++++++++++++++++++
 t/helper/test-tool.c                    |   1 +
 t/helper/test-tool.h                    |   1 +
 t/t0021-conversion.sh                   |  71 ++---
 t/t0021/rot13-filter.pl                 | 247 ---------------
 t/t2080-parallel-checkout-basics.sh     |   7 +-
 t/t2082-parallel-checkout-attributes.sh |   7 +-
 10 files changed, 450 insertions(+), 296 deletions(-)
 create mode 100644 t/helper/test-rot13-filter.c
 delete mode 100644 t/t0021/rot13-filter.pl