Skip to content

Commit 9feae21

Browse files
committed
Add a test for aria2c
1 parent b3ba8c8 commit 9feae21

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: test/fetch.bats

+14
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,20 @@ setup() {
1919
assert_output_contains "error: failed to download package-1.0.0.tar.gz"
2020
}
2121

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+
2236
@test "fetching from git repository" {
2337
stub git "clone --depth 1 --branch master http://example.com/packages/package.git package-dev : mkdir package-dev"
2438

0 commit comments

Comments
 (0)