t0000: annotate with SHA1 prerequisite

Since this is a core test that tests basic functionality, annotate the assertions that have dependencies on SHA-1 with the appropriate prerequisite. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

brian m. carlson committed May 13, 2018 at 02:24 UTC 5b9ba9bd80254ffe31864de71989428ac0cf8eeb
1 file changed +12 -12
t/t0000-basic.sh
+12 -12
@@ -839,7 +839,7 @@ test_expect_success 'writing tree out with git write-tree' '
839 '
840
841 # we know the shape and contents of the tree and know the object ID for it.
842 -test_expect_success 'validate object ID of a known tree' '
842 +test_expect_success SHA1 'validate object ID of a known tree' '
843 test "$tree" = 7bb943559a305bdd6bdee2cef6e5df2413c3d30a
844 '
845
@@ -882,7 +882,7 @@ test_expect_success 'showing stage with git ls-files --stage' '
882 git ls-files --stage >current
883 '
884
885 -test_expect_success 'validate git ls-files output for a known tree' '
885 +test_expect_success SHA1 'validate git ls-files output for a known tree' '
886 cat >expected <<-\EOF &&
887 100644 f87290f8eb2cbbea7857214459a0739927eab154 0 path0
888 120000 15a98433ae33114b085f3eb3bb03b832b3180a01 0 path0sym
@@ -900,7 +900,7 @@ test_expect_success 'writing tree out with git write-tree' '
900 tree=$(git write-tree)
901 '
902
903 -test_expect_success 'validate object ID for a known tree' '
903 +test_expect_success SHA1 'validate object ID for a known tree' '
904 test "$tree" = 087704a96baf1c2d1c869a8b084481e121c88b5b
905 '
906
@@ -908,7 +908,7 @@ test_expect_success 'showing tree with git ls-tree' '
908 git ls-tree $tree >current
909 '
910
911 -test_expect_success 'git ls-tree output for a known tree' '
911 +test_expect_success SHA1 'git ls-tree output for a known tree' '
912 cat >expected <<-\EOF &&
913 100644 blob f87290f8eb2cbbea7857214459a0739927eab154 path0
914 120000 blob 15a98433ae33114b085f3eb3bb03b832b3180a01 path0sym
@@ -924,7 +924,7 @@ test_expect_success 'showing tree with git ls-tree -r' '
924 git ls-tree -r $tree >current
925 '
926
927 -test_expect_success 'git ls-tree -r output for a known tree' '
927 +test_expect_success SHA1 'git ls-tree -r output for a known tree' '
928 cat >expected <<-\EOF &&
929 100644 blob f87290f8eb2cbbea7857214459a0739927eab154 path0
930 120000 blob 15a98433ae33114b085f3eb3bb03b832b3180a01 path0sym
@@ -943,7 +943,7 @@ test_expect_success 'showing tree with git ls-tree -r -t' '
943 git ls-tree -r -t $tree >current
944 '
945
946 -test_expect_success 'git ls-tree -r output for a known tree' '
946 +test_expect_success SHA1 'git ls-tree -r output for a known tree' '
947 cat >expected <<-\EOF &&
948 100644 blob f87290f8eb2cbbea7857214459a0739927eab154 path0
949 120000 blob 15a98433ae33114b085f3eb3bb03b832b3180a01 path0sym
@@ -964,7 +964,7 @@ test_expect_success 'writing partial tree out with git write-tree --prefix' '
964 ptree=$(git write-tree --prefix=path3)
965 '
966
967 -test_expect_success 'validate object ID for a known tree' '
967 +test_expect_success SHA1 'validate object ID for a known tree' '
968 test "$ptree" = 21ae8269cacbe57ae09138dcc3a2887f904d02b3
969 '
970
@@ -972,7 +972,7 @@ test_expect_success 'writing partial tree out with git write-tree --prefix' '
972 ptree=$(git write-tree --prefix=path3/subp3)
973 '
974
975 -test_expect_success 'validate object ID for a known tree' '
975 +test_expect_success SHA1 'validate object ID for a known tree' '
976 test "$ptree" = 3c5e5399f3a333eddecce7a9b9465b63f65f51e2
977 '
978
@@ -1006,7 +1006,7 @@ test_expect_success 'git read-tree followed by write-tree should be idempotent'
1006 test "$newtree" = "$tree"
1007 '
1008
1009 -test_expect_success 'validate git diff-files output for a know cache/work tree state' '
1009 +test_expect_success SHA1 'validate git diff-files output for a know cache/work tree state' '
1010 cat >expected <<\EOF &&
1011 :100644 100644 f87290f8eb2cbbea7857214459a0739927eab154 0000000000000000000000000000000000000000 M path0
1012 :120000 120000 15a98433ae33114b085f3eb3bb03b832b3180a01 0000000000000000000000000000000000000000 M path0sym
@@ -1033,21 +1033,21 @@ test_expect_success 'no diff after checkout and git update-index --refresh' '
1033 ################################################################
1034 P=087704a96baf1c2d1c869a8b084481e121c88b5b
1035
1036 -test_expect_success 'git commit-tree records the correct tree in a commit' '
1036 +test_expect_success SHA1 'git commit-tree records the correct tree in a commit' '
1037 commit0=$(echo NO | git commit-tree $P) &&
1038 tree=$(git show --pretty=raw $commit0 |
1039 sed -n -e "s/^tree //p" -e "/^author /q") &&
1040 test "z$tree" = "z$P"
1041 '
1042
1043 -test_expect_success 'git commit-tree records the correct parent in a commit' '
1043 +test_expect_success SHA1 'git commit-tree records the correct parent in a commit' '
1044 commit1=$(echo NO | git commit-tree $P -p $commit0) &&
1045 parent=$(git show --pretty=raw $commit1 |
1046 sed -n -e "s/^parent //p" -e "/^author /q") &&
1047 test "z$commit0" = "z$parent"
1048 '
1049
1050 -test_expect_success 'git commit-tree omits duplicated parent in a commit' '
1050 +test_expect_success SHA1 'git commit-tree omits duplicated parent in a commit' '
1051 commit2=$(echo NO | git commit-tree $P -p $commit0 -p $commit0) &&
1052 parent=$(git show --pretty=raw $commit2 |
1053 sed -n -e "s/^parent //p" -e "/^author /q" |