File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,11 @@ cpm_get_shortest_hash(${tmp} "cccb77be9609d2768ed80dd42cec54f77b1f1456" hash)
53
53
assert_equal (${hash} "cccb77be" )
54
54
assert_contents_equal (${tmp} /cccb77be.hash cccb77be9609d2768ed80dd42cec54f77b1f1456 )
55
55
56
+ # check that legacy hashs are recognized
57
+ file (MAKE_DIRECTORY "${tmp} /cccb77be9609d2768ed80dd42cec54f77b1f1457" )
58
+ cpm_get_shortest_hash (${tmp} "cccb77be9609d2768ed80dd42cec54f77b1f1457" hash )
59
+ assert_equal (${hash} "cccb77be9609d2768ed80dd42cec54f77b1f1457" )
60
+
56
61
# 1. The old file should still exist, and have the same content
57
62
assert_contents_equal (${tmp} /cccb.hash cccb77ae9609d2768ed80dd42cec54f77b1f1455 )
58
63
assert_contents_equal (${tmp} /cccb77ae.hash cccb77ae9609d2768ed80dd42cec54f77b1f1456 )
You can’t perform that action at this time.
0 commit comments