Loading test/fetch.bats +15 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ load test_helper export RUBY_BUILD_SKIP_MIRROR=1 export RUBY_BUILD_CACHE_PATH= export RUBY_BUILD_ARIA2_OPTS= setup() { ensure_not_found_in_path aria2c Loading @@ -19,6 +20,20 @@ setup() { assert_output_contains "error: failed to download package-1.0.0.tar.gz" } @test "using aria2c if available" { stub aria2c "* -o * http://example.com/* : cp $FIXTURE_ROOT/\${4##*/} \$3" install_fixture definitions/without-checksum assert_success assert_output <<OUT Downloading package-1.0.0.tar.gz... -> http://example.com/packages/package-1.0.0.tar.gz Installing package-1.0.0... Installed package-1.0.0 to ${TMP}/install OUT unstub aria2c } @test "fetching from git repository" { stub git "clone --depth 1 --branch master http://example.com/packages/package.git package-dev : mkdir package-dev" Loading Loading
test/fetch.bats +15 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ load test_helper export RUBY_BUILD_SKIP_MIRROR=1 export RUBY_BUILD_CACHE_PATH= export RUBY_BUILD_ARIA2_OPTS= setup() { ensure_not_found_in_path aria2c Loading @@ -19,6 +20,20 @@ setup() { assert_output_contains "error: failed to download package-1.0.0.tar.gz" } @test "using aria2c if available" { stub aria2c "* -o * http://example.com/* : cp $FIXTURE_ROOT/\${4##*/} \$3" install_fixture definitions/without-checksum assert_success assert_output <<OUT Downloading package-1.0.0.tar.gz... -> http://example.com/packages/package-1.0.0.tar.gz Installing package-1.0.0... Installed package-1.0.0 to ${TMP}/install OUT unstub aria2c } @test "fetching from git repository" { stub git "clone --depth 1 --branch master http://example.com/packages/package.git package-dev : mkdir package-dev" Loading