|
|
@ -6,7 +6,7 @@ export PYTHON_BUILD_CACHE_PATH= |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@test "package URL without checksum" { |
|
|
@test "package URL without checksum" { |
|
|
stub aria2c "-q -o * http://example.com/* : cp $FIXTURE_ROOT/\${4##*/} \$3" |
|
|
|
|
|
|
|
|
stub aria2c "-o * http://example.com/* : cp $FIXTURE_ROOT/\${3##*/} \$2" |
|
|
|
|
|
|
|
|
install_fixture definitions/without-checksum |
|
|
install_fixture definitions/without-checksum |
|
|
|
|
|
|
|
|
@ -19,7 +19,7 @@ export PYTHON_BUILD_CACHE_PATH= |
|
|
|
|
|
|
|
|
@test "package URL with valid checksum" { |
|
|
@test "package URL with valid checksum" { |
|
|
stub shasum true "echo ba988b1bb4250dee0b9dd3d4d722f9c64b2bacfc805d1b6eba7426bda72dd3c5" |
|
|
stub shasum true "echo ba988b1bb4250dee0b9dd3d4d722f9c64b2bacfc805d1b6eba7426bda72dd3c5" |
|
|
stub aria2c "-q -o * http://example.com/* : cp $FIXTURE_ROOT/\${4##*/} \$3" |
|
|
|
|
|
|
|
|
stub aria2c "-o * http://example.com/* : cp $FIXTURE_ROOT/\${3##*/} \$2" |
|
|
|
|
|
|
|
|
install_fixture definitions/with-checksum |
|
|
install_fixture definitions/with-checksum |
|
|
|
|
|
|
|
|
@ -33,7 +33,7 @@ export PYTHON_BUILD_CACHE_PATH= |
|
|
|
|
|
|
|
|
@test "package URL with invalid checksum" { |
|
|
@test "package URL with invalid checksum" { |
|
|
stub shasum true "echo ba988b1bb4250dee0b9dd3d4d722f9c64b2bacfc805d1b6eba7426bda72dd3c5" |
|
|
stub shasum true "echo ba988b1bb4250dee0b9dd3d4d722f9c64b2bacfc805d1b6eba7426bda72dd3c5" |
|
|
stub aria2c "-q -o * http://example.com/* : cp $FIXTURE_ROOT/\${4##*/} \$3" |
|
|
|
|
|
|
|
|
stub aria2c "-o * http://example.com/* : cp $FIXTURE_ROOT/\${3##*/} \$2" |
|
|
|
|
|
|
|
|
install_fixture definitions/with-invalid-checksum |
|
|
install_fixture definitions/with-invalid-checksum |
|
|
|
|
|
|
|
|
@ -47,7 +47,7 @@ export PYTHON_BUILD_CACHE_PATH= |
|
|
|
|
|
|
|
|
@test "package URL with checksum but no shasum support" { |
|
|
@test "package URL with checksum but no shasum support" { |
|
|
stub shasum false |
|
|
stub shasum false |
|
|
stub aria2c "-q -o * http://example.com/* : cp $FIXTURE_ROOT/\${4##*/} \$3" |
|
|
|
|
|
|
|
|
stub aria2c "-o * http://example.com/* : cp $FIXTURE_ROOT/\${3##*/} \$2" |
|
|
|
|
|
|
|
|
install_fixture definitions/with-checksum |
|
|
install_fixture definitions/with-checksum |
|
|
|
|
|
|
|
|
@ -61,7 +61,7 @@ export PYTHON_BUILD_CACHE_PATH= |
|
|
|
|
|
|
|
|
@test "package URL with valid md5 checksum" { |
|
|
@test "package URL with valid md5 checksum" { |
|
|
stub md5 true "echo 83e6d7725e20166024a1eb74cde80677" |
|
|
stub md5 true "echo 83e6d7725e20166024a1eb74cde80677" |
|
|
stub aria2c "-q -o * http://example.com/* : cp $FIXTURE_ROOT/\${4##*/} \$3" |
|
|
|
|
|
|
|
|
stub aria2c "-o * http://example.com/* : cp $FIXTURE_ROOT/\${3##*/} \$2" |
|
|
|
|
|
|
|
|
install_fixture definitions/with-md5-checksum |
|
|
install_fixture definitions/with-md5-checksum |
|
|
|
|
|
|
|
|
@ -75,7 +75,7 @@ export PYTHON_BUILD_CACHE_PATH= |
|
|
|
|
|
|
|
|
@test "package URL with md5 checksum but no md5 support" { |
|
|
@test "package URL with md5 checksum but no md5 support" { |
|
|
stub md5 false |
|
|
stub md5 false |
|
|
stub aria2c "-q -o * http://example.com/* : cp $FIXTURE_ROOT/\${4##*/} \$3" |
|
|
|
|
|
|
|
|
stub aria2c "-o * http://example.com/* : cp $FIXTURE_ROOT/\${3##*/} \$2" |
|
|
|
|
|
|
|
|
install_fixture definitions/with-md5-checksum |
|
|
install_fixture definitions/with-md5-checksum |
|
|
|
|
|
|
|
|
@ -89,7 +89,7 @@ export PYTHON_BUILD_CACHE_PATH= |
|
|
|
|
|
|
|
|
@test "package with invalid checksum" { |
|
|
@test "package with invalid checksum" { |
|
|
stub shasum true "echo invalid" |
|
|
stub shasum true "echo invalid" |
|
|
stub aria2c "-q -o * http://example.com/* : cp $FIXTURE_ROOT/\${4##*/} \$3" |
|
|
|
|
|
|
|
|
stub aria2c "-o * http://example.com/* : cp $FIXTURE_ROOT/\${3##*/} \$2" |
|
|
|
|
|
|
|
|
install_fixture definitions/with-checksum |
|
|
install_fixture definitions/with-checksum |
|
|
|
|
|
|
|
|
@ -126,7 +126,7 @@ DEF |
|
|
stub shasum true \ |
|
|
stub shasum true \ |
|
|
"echo invalid" \ |
|
|
"echo invalid" \ |
|
|
"echo ba988b1bb4250dee0b9dd3d4d722f9c64b2bacfc805d1b6eba7426bda72dd3c5" |
|
|
"echo ba988b1bb4250dee0b9dd3d4d722f9c64b2bacfc805d1b6eba7426bda72dd3c5" |
|
|
stub aria2c "-q -o * http://example.com/* : cp $FIXTURE_ROOT/\${4##*/} \$3" |
|
|
|
|
|
|
|
|
stub aria2c "-o * http://example.com/* : cp $FIXTURE_ROOT/\${3##*/} \$2" |
|
|
|
|
|
|
|
|
export -n PYTHON_BUILD_CACHE_PATH |
|
|
export -n PYTHON_BUILD_CACHE_PATH |
|
|
export PYTHON_BUILD_BUILD_PATH="${TMP}/build" |
|
|
export PYTHON_BUILD_BUILD_PATH="${TMP}/build" |
|
|
@ -145,7 +145,7 @@ DEF |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@test "package URL with checksum of unexpected length" { |
|
|
@test "package URL with checksum of unexpected length" { |
|
|
stub aria2c "-q -o * http://example.com/* : cp $FIXTURE_ROOT/\${4##*/} \$3" |
|
|
|
|
|
|
|
|
stub aria2c "-o * http://example.com/* : cp $FIXTURE_ROOT/\${3##*/} \$2" |
|
|
|
|
|
|
|
|
run_inline_definition <<DEF |
|
|
run_inline_definition <<DEF |
|
|
install_package "package-1.0.0" "http://example.com/packages/package-1.0.0.tar.gz#checksum_of_unexpected_length" copy |
|
|
install_package "package-1.0.0" "http://example.com/packages/package-1.0.0.tar.gz#checksum_of_unexpected_length" copy |
|
|
|