13
'nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM'
14
EOF
15
16
+write_script rot13-filter.pl "$PERL_PATH" \
17
+ <"$TEST_DIRECTORY"/t0021/rot13-filter.pl
18
+
19
generate_random_characters () {
20
LEN=$1
21
NAME=$2
344
'
345
346
test_expect_success PERL 'required process filter should filter data' '
344
- test_config_global filter.protocol.process "$TEST_DIRECTORY/t0021/rot13-filter.pl clean smudge" &&
347
+ test_config_global filter.protocol.process "rot13-filter.pl clean smudge" &&
348
test_config_global filter.protocol.required true &&
349
rm -rf repo &&
350
mkdir repo &&
437
438
test_expect_success PERL 'required process filter takes precedence' '
439
test_config_global filter.protocol.clean false &&
437
- test_config_global filter.protocol.process "$TEST_DIRECTORY/t0021/rot13-filter.pl clean" &&
440
+ test_config_global filter.protocol.process "rot13-filter.pl clean" &&
441
test_config_global filter.protocol.required true &&
442
rm -rf repo &&
443
mkdir repo &&
462
'
463
464
test_expect_success PERL 'required process filter should be used only for "clean" operation only' '
462
- test_config_global filter.protocol.process "$TEST_DIRECTORY/t0021/rot13-filter.pl clean" &&
465
+ test_config_global filter.protocol.process "rot13-filter.pl clean" &&
466
rm -rf repo &&
467
mkdir repo &&
468
(
497
'
498
499
test_expect_success PERL 'required process filter should process multiple packets' '
497
- test_config_global filter.protocol.process "$TEST_DIRECTORY/t0021/rot13-filter.pl clean smudge" &&
500
+ test_config_global filter.protocol.process "rot13-filter.pl clean smudge" &&
501
test_config_global filter.protocol.required true &&
502
503
rm -rf repo &&
557
'
558
559
test_expect_success PERL 'required process filter with clean error should fail' '
557
- test_config_global filter.protocol.process "$TEST_DIRECTORY/t0021/rot13-filter.pl clean smudge" &&
560
+ test_config_global filter.protocol.process "rot13-filter.pl clean smudge" &&
561
test_config_global filter.protocol.required true &&
562
rm -rf repo &&
563
mkdir repo &&
576
'
577
578
test_expect_success PERL 'process filter should restart after unexpected write failure' '
576
- test_config_global filter.protocol.process "$TEST_DIRECTORY/t0021/rot13-filter.pl clean smudge" &&
579
+ test_config_global filter.protocol.process "rot13-filter.pl clean smudge" &&
580
rm -rf repo &&
581
mkdir repo &&
582
(
627
'
628
629
test_expect_success PERL 'process filter should not be restarted if it signals an error' '
627
- test_config_global filter.protocol.process "$TEST_DIRECTORY/t0021/rot13-filter.pl clean smudge" &&
630
+ test_config_global filter.protocol.process "rot13-filter.pl clean smudge" &&
631
rm -rf repo &&
632
mkdir repo &&
633
(
666
'
667
668
test_expect_success PERL 'process filter abort stops processing of all further files' '
666
- test_config_global filter.protocol.process "$TEST_DIRECTORY/t0021/rot13-filter.pl clean smudge" &&
669
+ test_config_global filter.protocol.process "rot13-filter.pl clean smudge" &&
670
rm -rf repo &&
671
mkdir repo &&
672
(