mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-06-22 14:40:58 +03:00
tests: add a test for pkg-config files
Add a test that does some basic validation of the pkg-config files. Example run: ./tests/scripts/all.sh test_cmake_as_package <snip> ****************************************************************** * test_cmake_as_package: build: cmake 'as-package' build * Wed Sep 11 16:22:09 UTC 2024 ****************************************************************** cmake . make Built against Mbed TLS 3.6.1 testing package config file: mbedtls ... passed testing package config file: mbedx509 ... passed testing package config file: mbedcrypto ... passed make clean Signed-off-by: Bill Roberts <bill.roberts@arm.com>
This commit is contained in:
@ -108,10 +108,15 @@ component_test_cmake_as_package () {
|
||||
make neat
|
||||
|
||||
msg "build: cmake 'as-package' build"
|
||||
root_dir="$(pwd)"
|
||||
cd programs/test/cmake_package
|
||||
build_variant_dir="$(pwd)"
|
||||
cmake .
|
||||
make
|
||||
./cmake_package
|
||||
if [[ "$OSTYPE" == linux* ]]; then
|
||||
PKG_CONFIG_PATH="${build_variant_dir}/mbedtls/pkgconfig" ${root_dir}/tests/scripts/pkgconfig.sh
|
||||
fi
|
||||
}
|
||||
|
||||
support_test_cmake_as_package () {
|
||||
|
Reference in New Issue
Block a user