mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-02-04 21:52:33 +00:00
tests: abuild-fetch test http://
This commit is contained in:
parent
42a45c9cbc
commit
77c21fab30
@ -51,6 +51,10 @@ teardown() {
|
||||
[ $status -ne 0 ]
|
||||
}
|
||||
|
||||
@test "abuild-fetch: that --insecure is passed for http://" {
|
||||
$ABUILD_FETCH -d "$tmpdir" http://example.com/non-existing | grep insecure
|
||||
}
|
||||
|
||||
@test "abuild-fetch: test wget fallback" {
|
||||
rm "$bindir"/curl
|
||||
PATH="$bindir" $ABUILD_FETCH -d "$tmpdir" https://example.com/non-existing
|
||||
@ -63,6 +67,11 @@ teardown() {
|
||||
[ $status -ne 0 ]
|
||||
}
|
||||
|
||||
@test "abuild-fetch: test that --no-check-certificate is passed to wget fallback with http://" {
|
||||
rm "$bindir"/curl
|
||||
PATH="$bindir" $ABUILD_FETCH -d "$tmpdir" http://example.com/non-existing | grep no-check-certificate
|
||||
}
|
||||
|
||||
@test "abuild-fetch: test locking" {
|
||||
fifo="$tmpdir"/fifo
|
||||
mkfifo $fifo
|
||||
|
Loading…
Reference in New Issue
Block a user