From adf175f6376adba9ae428bc2ad49655fcb59eba9 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Wed, 27 Apr 2022 18:03:39 -0500 Subject: [PATCH] Instrospect examples build products. --- .ci/azp-macos-extra.yml | 47 +++++++++++++++++++---------------------- .ci/b2_example.sh | 14 ++++++++++++ 2 files changed, 36 insertions(+), 25 deletions(-) create mode 100755 .ci/b2_example.sh diff --git a/.ci/azp-macos-extra.yml b/.ci/azp-macos-extra.yml index 0bb91513d..e75527b5e 100644 --- a/.ci/azp-macos-extra.yml +++ b/.ci/azp-macos-extra.yml @@ -1,26 +1,23 @@ steps: -- bash: | - set -e - uname -a - sudo xcode-select -switch ${XCODE_APP} - which clang++ - displayName: Install -- bash: | - set -e - CXX_PATH=`which ${CXX}` - echo "using ${TEST_TOOLSET} : : ${CXX_PATH} ;" > ${HOME}/user-config.jam - ./bootstrap.sh ${TOOLSET} - ./b2 --prefix=$HOME/temp/.b2 install ${TEST_TOOLSET} - rm ./b2 - export PATH=$HOME/temp/.b2/bin:$PATH - cd $HOME - touch build.jam - b2 -v - b2 -n --debug-configuration - displayName: Bootstrap -- bash: set -e ; pushd example/hello ; $HOME/temp/.b2/bin/b2 -d+2 ${B2_ARGS} ; popd - displayName: "example/hello" -- bash: set -e ; pushd example/libraries ; $HOME/temp/.b2/bin/b2 -d+2 ${B2_ARGS} ; popd - displayName: "example/libraries" -- bash: set -e ; pushd example/make ; $HOME/temp/.b2/bin/b2 -d+2 ${B2_ARGS} ; popd - displayName: "example/make" + - bash: | + set -e + uname -a + sudo xcode-select -switch ${XCODE_APP} + which clang++ + displayName: Install + - bash: | + set -e + CXX_PATH=`which ${CXX}` + echo "using ${TEST_TOOLSET} : : ${CXX_PATH} ;" > ${HOME}/user-config.jam + ./bootstrap.sh ${TOOLSET} + ./b2 --prefix=$HOME/temp/.b2 install ${TEST_TOOLSET} + rm ./b2 + export PATH=$HOME/temp/.b2/bin:$PATH + cd $HOME + touch build.jam + b2 -v + b2 -n --debug-configuration + displayName: Bootstrap + - { bash: "./.ci/b2_example.sh example/hello", displayName: "example/hello" } + - { bash: "./.ci/b2_example.sh example/libraries", displayName: "example/libraries" } + - { bash: "./.ci/b2_example.sh example/make", displayName: "example/make" } diff --git a/.ci/b2_example.sh b/.ci/b2_example.sh new file mode 100755 index 000000000..621919745 --- /dev/null +++ b/.ci/b2_example.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +pushd $1 +$HOME/temp/.b2/bin/b2 -d+2 ${B2_ARGS} +find . -executable -type f -o -name "*.o" -o -name "*.a" -o -name "*.so" -o -name "*.dylib" -exec file '{}' '+' +popd + +# Use, modification, and distribution are +# subject to the Boost Software License, Version 1.0. (See accompanying +# file LICENSE.txt) +# +# Copyright Rene Rivera 2022.