From 837b550238aa671a591ccf282dddeab29cadb206 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 04:49:42 +0200 Subject: Merging upstream version 1.71.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/vcpkg/tests/README.md | 5 +++++ vendor/vcpkg/tests/run.sh | 20 ++++++++++++++++++++ vendor/vcpkg/tests/vcpkgrs_target.sh | 22 ++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 vendor/vcpkg/tests/README.md create mode 100644 vendor/vcpkg/tests/run.sh create mode 100644 vendor/vcpkg/tests/vcpkgrs_target.sh (limited to 'vendor/vcpkg/tests') 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 -- cgit v1.2.3