blob: 45cb60ea4b167676b07ae1c847c0467f2a5e3d69 [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
Ryan Andersonf5600692006-07-03 21:30:01 -04009test_expect_success \
10 'Annotating an old revision works' \
Eric Wong4d62eaa2006-07-04 01:04:24 -070011 '[ $(git annotate file master | awk "{print \$3}" | grep -c "^A$") -eq 2 ] && \
12 [ $(git annotate file master | awk "{print \$3}" | grep -c "^B$") -eq 2 ]'
Ryan Andersonf5600692006-07-03 21:30:01 -040013
14
Ryan Anderson7c3ecb62006-03-02 00:23:37 -050015test_done