diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 18:31:44 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 18:31:44 +0000 |
commit | c23a457e72abe608715ac76f076f47dc42af07a5 (patch) | |
tree | 2772049aaf84b5c9d0ed12ec8d86812f7a7904b6 /vendor/vcpkg/tests | |
parent | Releasing progress-linux version 1.73.0+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-c23a457e72abe608715ac76f076f47dc42af07a5.tar.xz rustc-c23a457e72abe608715ac76f076f47dc42af07a5.zip |
Merging upstream version 1.74.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/vcpkg/tests')
-rw-r--r-- | vendor/vcpkg/tests/README.md | 5 | ||||
-rw-r--r-- | vendor/vcpkg/tests/run.sh | 20 | ||||
-rw-r--r-- | vendor/vcpkg/tests/vcpkgrs_target.sh | 22 |
3 files changed, 47 insertions, 0 deletions
diff --git a/vendor/vcpkg/tests/README.md b/vendor/vcpkg/tests/README.md new file mode 100644 index 000000000..56a73b1a3 --- /dev/null +++ b/vendor/vcpkg/tests/README.md @@ -0,0 +1,5 @@ +# individual library tests
+
+These tests should have the same name as the vcpkg port. They are intended to use to verify that building/linking/running is possible on each platform.
+
+The systests are intended to test that the current version of the vcpkg build helper will work with published versions of the most common -sys crates.
\ No newline at end of file diff --git a/vendor/vcpkg/tests/run.sh b/vendor/vcpkg/tests/run.sh new file mode 100644 index 000000000..b9dcdb369 --- /dev/null +++ b/vendor/vcpkg/tests/run.sh @@ -0,0 +1,20 @@ +#!/bin/bash
+set -ex
+
+SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+cd $SCRIPTDIR
+
+export VCPKG_ROOT=$SCRIPTDIR/../vcp
+
+source ../setup_vcp.sh
+
+for port in harfbuzz ; do
+ # check that the port fails before it is installed
+ $VCPKG_ROOT/vcpkg remove $port || true
+ cargo clean --manifest-path $port/Cargo.toml
+ cargo run --manifest-path $port/Cargo.toml && exit 2
+ echo THIS FAILURE IS EXPECTED
+ echo This is to ensure that we are not spuriously succeeding because the libraries already exist somewhere on the build machine.
+ $VCPKG_ROOT/vcpkg install $port
+ cargo run --manifest-path $port/Cargo.toml
+done
diff --git a/vendor/vcpkg/tests/vcpkgrs_target.sh b/vendor/vcpkg/tests/vcpkgrs_target.sh new file mode 100644 index 000000000..ba46fbf35 --- /dev/null +++ b/vendor/vcpkg/tests/vcpkgrs_target.sh @@ -0,0 +1,22 @@ +#!/bin/bash
+set -ex
+
+SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+cd $SCRIPTDIR
+
+export VCPKG_ROOT=$SCRIPTDIR/../vcp
+export VCPKGRS_TRIPLET=test-triplet
+export VCPKG_DEFAULT_TRIPLET=test-triplet
+
+cp $VCPKG_ROOT/triplets/x64-linux.cmake $VCPKG_ROOT/triplets/test-triplet.cmake
+for port in harfbuzz ; do
+ # check that the port fails before it is installed
+ $VCPKG_ROOT/vcpkg remove --no-binarycaching $port || true
+ cargo clean --manifest-path $port/Cargo.toml
+ cargo run --manifest-path $port/Cargo.toml && exit 2
+ echo THIS FAILURE IS EXPECTED
+ echo This is to ensure that we are not spuriously succeeding because the libraries already exist somewhere on the build machine.
+ # disable binary caching because it breaks this build as of vcpkg 53e6588 (since vcpkg 52a9d9a)
+ $VCPKG_ROOT/vcpkg install --no-binarycaching $port
+ cargo run --manifest-path $port/Cargo.toml
+done
|