diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 12:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 12:47:55 +0000 |
commit | 2aadc03ef15cb5ca5cc2af8a7c08e070742f0ac4 (patch) | |
tree | 033cc839730fda84ff08db877037977be94e5e3a /vendor/curl/ci/run.sh | |
parent | Initial commit. (diff) | |
download | cargo-2aadc03ef15cb5ca5cc2af8a7c08e070742f0ac4.tar.xz cargo-2aadc03ef15cb5ca5cc2af8a7c08e070742f0ac4.zip |
Adding upstream version 0.70.1+ds1.upstream/0.70.1+ds1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/curl/ci/run.sh')
-rwxr-xr-x | vendor/curl/ci/run.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/curl/ci/run.sh b/vendor/curl/ci/run.sh new file mode 100755 index 0000000..6c2dae3 --- /dev/null +++ b/vendor/curl/ci/run.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +set -ex + +cargo test --target $TARGET --no-run +# First test with no extra protocols enabled. +cargo test --target $TARGET --no-run --features static-curl +# Then with rustls TLS backend. +cargo test --target $TARGET --no-run --features rustls,static-curl +# Then with all extra protocols enabled. +cargo test --target $TARGET --no-run --features static-curl,protocol-ftp,ntlm +if [ -z "$NO_RUN" ]; then + cargo test --target $TARGET + cargo test --target $TARGET --features static-curl + cargo test --target $TARGET --features static-curl,protocol-ftp + + # Note that `-Clink-dead-code` is passed here to suppress `--gc-sections` to + # help confirm that we're compiling everything necessary for curl itself. + RUSTFLAGS=-Clink-dead-code \ + cargo run --manifest-path systest/Cargo.toml --target $TARGET + RUSTFLAGS=-Clink-dead-code \ + cargo run --manifest-path systest/Cargo.toml --target $TARGET --features curl-sys/static-curl,curl-sys/protocol-ftp + + cargo doc --no-deps --target $TARGET + cargo doc --no-deps -p curl-sys --target $TARGET +fi |