@@ -484,12 +484,12 @@ test_add_cat_5MB() {
484
484
ADD_FLAGS=" $1 "
485
485
EXP_HASH=" $2 "
486
486
487
- test_expect_success " generate 5MB file using go- random" '
488
- random 5242880 41 >mountdir/bigfile
487
+ test_expect_success " generate 5MB file using random-data " '
488
+ random-data -size= 5242880 -seed= 41 >mountdir/bigfile
489
489
'
490
490
491
491
test_expect_success " sha1 of the file looks ok" '
492
- echo "11145620fb92eb5a49c9986b5c6844efda37e471660e " >sha1_expected &&
492
+ echo "11145b8c4bc8f87ea2fcfc3d55708b8cac2aadf12862 " >sha1_expected &&
493
493
multihash -a=sha1 -e=hex mountdir/bigfile >sha1_actual &&
494
494
test_cmp sha1_expected sha1_actual
495
495
'
@@ -594,12 +594,12 @@ test_add_cat_expensive() {
594
594
ADD_FLAGS=" $1 "
595
595
HASH=" $2 "
596
596
597
- test_expect_success EXPENSIVE " generate 100MB file using go- random" '
598
- random 104857600 42 >mountdir/bigfile
597
+ test_expect_success EXPENSIVE " generate 100MB file using random-data " '
598
+ random-data -size= 104857600 -seed= 42 >mountdir/bigfile
599
599
'
600
600
601
601
test_expect_success EXPENSIVE " sha1 of the file looks ok" '
602
- echo "1114885b197b01e0f7ff584458dc236cb9477d2e736d " >sha1_expected &&
602
+ echo "11141e8c04d7cd019cc0acf0311a8ca6cf2c18413c96 " >sha1_expected &&
603
603
multihash -a=sha1 -e=hex mountdir/bigfile >sha1_actual &&
604
604
test_cmp sha1_expected sha1_actual
605
605
'
@@ -623,7 +623,7 @@ test_add_cat_expensive() {
623
623
'
624
624
625
625
test_expect_success EXPENSIVE " ipfs cat output hashed looks good" '
626
- echo "1114885b197b01e0f7ff584458dc236cb9477d2e736d " >sha1_expected &&
626
+ echo "11141e8c04d7cd019cc0acf0311a8ca6cf2c18413c96 " >sha1_expected &&
627
627
test_cmp sha1_expected sha1_actual
628
628
'
629
629
@@ -902,42 +902,42 @@ test_expect_success "'ipfs add -rn' output looks good" '
902
902
test_cmp expected actual
903
903
'
904
904
905
- test_expect_success " go- random is installed" '
906
- type random
905
+ test_expect_success " random-data is installed" '
906
+ type random-data
907
907
'
908
908
909
- test_add_cat_5MB " " " QmSr7FqYkxYWGoSfy8ZiaMWQ5vosb18DQGCzjwEQnVHkTb "
909
+ test_add_cat_5MB " " " QmapAfmzmeWYTNztMQEhUXFcSGrsax22WRG7YN9xLdMeQq "
910
910
911
- test_add_cat_5MB --raw-leaves " QmbdLHCmdi48eM8T7D67oXjA1S2Puo8eMfngdHhdPukFd6 "
911
+ test_add_cat_5MB --raw-leaves " QmabWSFaPusmiZaaVZLhEUtHcj8CCvVeUfkBpKqAkKVMiS "
912
912
913
913
# note: the specified hash implies that internal nodes are stored
914
914
# using CidV1 and leaves are stored using raw blocks
915
- test_add_cat_5MB --cid-version=1 " bafybeigfnx3tka2rf5ovv2slb7ymrt4zbwa3ryeqibe6fipyt5vgsrli3u "
915
+ test_add_cat_5MB --cid-version=1 " bafybeifwdkm32fmukqwh3jofm6ma76bcqvn6opxstsnzmya7utboi4cb2m "
916
916
917
917
# note: the specified hash implies that internal nodes are stored
918
918
# using CidV1 and leaves are stored using CidV1 but using the legacy
919
919
# format (i.e. not raw)
920
- test_add_cat_5MB ' --cid-version=1 --raw-leaves=false' " bafybeieyifrgpjn3yengthr7qaj72ozm2aq3wm53srgeprc43w67qpvfqa "
920
+ test_add_cat_5MB ' --cid-version=1 --raw-leaves=false' " bafybeifq4unep5w4agr3nlynxidj2rymf6dzu6bf4ieqqildkboe5mdmne "
921
921
922
922
# note: --hash=blake2b-256 implies --cid-version=1 which implies --raw-leaves=true
923
923
# the specified hash represents the leaf nodes stored as raw leaves and
924
924
# encoded with the blake2b-256 hash function
925
- test_add_cat_5MB ' --hash=blake2b-256' " bafykbzacebnmjcl4sn37b3ehtibvf263oun2w6idghenrvlpehq5w5jqyvhjo "
925
+ test_add_cat_5MB ' --hash=blake2b-256' " bafykbzacebxcnlql4oc3mtscqn32aumqkqxxv3wt7dkyrphgh6lc2gckiq6bw "
926
926
927
927
# the specified hash represents the leaf nodes stored as protoful nodes and
928
928
# encoded with the blake2b-256 hash function
929
- test_add_cat_5MB ' --hash=blake2b-256 --raw-leaves=false' " bafykbzaceaxiiykzgpbhnzlecffqm3zbuvhujyvxe5scltksyafagkyw4rjn2 "
929
+ test_add_cat_5MB ' --hash=blake2b-256 --raw-leaves=false' " bafykbzacearibnoamkfmcagpfgk2sbgx65qftnsrh4ttd3g7ghooasfnyavme "
930
930
931
- test_add_cat_expensive " " " QmU9SWAPPmNEKZB8umYMmjYvN7VyHqABNvdA6GUi4MMEz3 "
931
+ test_add_cat_expensive " " " Qma1WZKC3jad7e3F7GEDvkFdhPLyMEhKszBF4nBUCBGh6c "
932
932
933
933
# note: the specified hash implies that internal nodes are stored
934
934
# using CidV1 and leaves are stored using raw blocks
935
- test_add_cat_expensive " --cid-version=1" " bafybeidkj5ecbhrqmzrcee2rw7qwsx24z3364qya3fnp2ktkg2tnsrewhi "
935
+ test_add_cat_expensive " --cid-version=1" " bafybeibdfw7nsmb3erhej2k6v4eopaswsf5yfv2ikweqa3qsc5no4jywqu "
936
936
937
937
# note: --hash=blake2b-256 implies --cid-version=1 which implies --raw-leaves=true
938
938
# the specified hash represents the leaf nodes stored as raw leaves and
939
939
# encoded with the blake2b-256 hash function
940
- test_add_cat_expensive ' --hash=blake2b-256' " bafykbzaceb26fnq5hz5iopzamcb4yqykya5x6a4nvzdmcyuu4rj2akzs3z7r6 "
940
+ test_add_cat_expensive ' --hash=blake2b-256' " bafykbzaceduy3thhmcf6ptfqzxberlvj7sgo4uokrvd6qwrhim6r3rgcb26qi "
941
941
942
942
test_add_named_pipe
943
943
0 commit comments