t / t4106-apply-stdin.shon commit t/aggregate-results: accomodate systems with small max argument list length (6508eed)
   1#!/bin/sh
   2
   3test_description='git apply --numstat - <patch'
   4
   5. ./test-lib.sh
   6
   7test_expect_success setup '
   8        echo hello >text &&
   9        git add text &&
  10        echo goodbye >text &&
  11        git diff >patch
  12'
  13
  14test_expect_success 'git apply --numstat - < patch' '
  15        echo "1 1       text" >expect &&
  16        git apply --numstat - <patch >actual &&
  17        test_cmp expect actual
  18'
  19
  20test_expect_success 'git apply --numstat - < patch patch' '
  21        for i in 1 2; do echo "1        1       text"; done >expect &&
  22        git apply --numstat - < patch patch >actual &&
  23        test_cmp expect actual
  24'
  25
  26test_done