Debian Codegraph @

debian/rust-vendor/vcpkg/tests/vcpkgrs_target.sh

raw
1 #!/bin/bash
2 set -ex
3
4 SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5 cd $SCRIPTDIR
6
7 export VCPKG_ROOT=$SCRIPTDIR/../vcp
8 export VCPKGRS_TRIPLET=test-triplet
9 export VCPKG_DEFAULT_TRIPLET=test-triplet
10
11 cp $VCPKG_ROOT/triplets/x64-linux.cmake $VCPKG_ROOT/triplets/test-triplet.cmake
12 for port in harfbuzz ; do
13 # check that the port fails before it is installed
14 $VCPKG_ROOT/vcpkg remove --no-binarycaching $port || true
15 cargo clean --manifest-path $port/Cargo.toml
16 cargo run --manifest-path $port/Cargo.toml && exit 2
17 echo THIS FAILURE IS EXPECTED
18 echo This is to ensure that we are not spuriously succeeding because the libraries already exist somewhere on the build machine.
19 # disable binary caching because it breaks this build as of vcpkg 53e6588 (since vcpkg 52a9d9a)
20 $VCPKG_ROOT/vcpkg install --no-binarycaching $port
21 cargo run --manifest-path $port/Cargo.toml
22 done