File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 3
3
load test_helper
4
4
export RUBY_BUILD_SKIP_MIRROR=1
5
5
export RUBY_BUILD_CACHE_PATH=
6
+ export RUBY_BUILD_ARIA2_OPTS=
6
7
7
8
setup () {
8
9
ensure_not_found_in_path aria2c
@@ -19,6 +20,20 @@ setup() {
19
20
assert_output_contains " error: failed to download package-1.0.0.tar.gz"
20
21
}
21
22
23
+ @test " using aria2c if available" {
24
+ stub aria2c " * -o * http://example.com/* : cp $FIXTURE_ROOT /\$ {4##*/} \$ 3"
25
+
26
+ install_fixture definitions/without-checksum
27
+ assert_success
28
+ assert_output << OUT
29
+ Downloading package-1.0.0.tar.gz...
30
+ -> http://example.com/packages/package-1.0.0.tar.gz
31
+ Installing package-1.0.0...
32
+ Installed package-1.0.0 to ${TMP} /install
33
+ OUT
34
+ unstub aria2c
35
+ }
36
+
22
37
@test " fetching from git repository" {
23
38
stub git " clone --depth 1 --branch master http://example.com/packages/package.git package-dev : mkdir package-dev"
24
39
You can’t perform that action at this time.
0 commit comments