blob: 41962f04a715ea5250360766dc64986c4ecf7981 [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
Junio C Hamano4b705f42011-03-30 12:22:05 -07009test_expect_success 'Annotating an old revision works' '
10 git annotate file master >result &&
11 awk "{ print \$3; }" <result >authors &&
12 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