blob: 72176e42c1d188f03f319b5a9acd954c5fe8ab6a [file] [log] [blame]
Ryan Anderson7c3ecb62006-03-02 00:23:37 -05001#!/bin/sh
2
Junio C Hamano5be60072007-07-02 22:52:14 -07003test_description='git annotate'
Ryan Anderson7c3ecb62006-03-02 00:23:37 -05004. ./test-lib.sh
5
Fredrik Kuivinen8752d112006-03-05 12:13:34 +01006PROG='git annotate'
Junio C Hamanobfdbee92008-08-08 02:26:28 -07007. "$TEST_DIRECTORY"/annotate-tests.sh
Ryan Anderson7c3ecb62006-03-02 00:23:37 -05008
Eric Sunshinee37f39c2013-07-17 17:25:28 -04009test_expect_success 'annotate old revision' '
10 git annotate file master >actual &&
11 awk "{ print \$3; }" <actual >authors &&
Junio C Hamano4b705f42011-03-30 12:22:05 -070012 test 2 = $(grep A <authors | wc -l) &&
13 test 2 = $(grep B <authors | wc -l)
14'
Ryan Andersonf5600692006-07-03 21:30:01 -040015
Ryan Anderson7c3ecb62006-03-02 00:23:37 -050016test_done