diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2020-02-07 03:52:42 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-02-07 22:07:30 +0300 |
commit | dfa5f53e78ba80bb727a309ff90d7dbd83c7750c (patch) | |
tree | 7cb79c5b3e7bc0deb3b7951bc19ff94859b33036 /t/t4211-line-log.sh | |
parent | f743e8f5b35512f0e132e10df8f4519fdd4970d6 (diff) |
t4211: add test cases for SHA-256
There are already files containing example output for SHA-1. Add test
files providing example output for SHA-256 as well and adjust the test
to look up the appropriate ones based on the algorithm in use.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4211-line-log.sh')
-rwxr-xr-x | t/t4211-line-log.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t4211-line-log.sh b/t/t4211-line-log.sh index 63a3bf28a5..cda58186c2 100755 --- a/t/t4211-line-log.sh +++ b/t/t4211-line-log.sh @@ -4,6 +4,7 @@ test_description='test log -L' . ./test-lib.sh test_expect_success 'setup (import history)' ' + test_oid_init && git fast-import < "$TEST_DIRECTORY"/t4211/history.export && git reset --hard ' @@ -11,7 +12,7 @@ test_expect_success 'setup (import history)' ' canned_test_1 () { test_expect_$1 "$2" " git log $2 >actual && - test_cmp \"\$TEST_DIRECTORY\"/t4211/sha1/expect.$3 actual + test_cmp \"\$TEST_DIRECTORY\"/t4211/$(test_oid algo)/expect.$3 actual " } |