We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
aria2c
1 parent b3ba8c8 commit 9feae21Copy full SHA for 9feae21
test/fetch.bats
@@ -19,6 +19,20 @@ setup() {
19
assert_output_contains "error: failed to download package-1.0.0.tar.gz"
20
}
21
22
+@test "using aria2c if available" {
23
+ stub aria2c "* -o * http://example.com/* : cp $FIXTURE_ROOT/\${4##*/} \$3"
24
+
25
+ install_fixture definitions/without-checksum
26
+ assert_success
27
+ assert_output <<OUT
28
+Downloading package-1.0.0.tar.gz...
29
+-> http://example.com/packages/package-1.0.0.tar.gz
30
+Installing package-1.0.0...
31
+Installed package-1.0.0 to ${TMP}/install
32
+OUT
33
+ unstub aria2c
34
+}
35
36
@test "fetching from git repository" {
37
stub git "clone --depth 1 --branch master http://example.com/packages/package.git package-dev : mkdir package-dev"
38
0 commit comments