--list-content doesnt work properly until boost-1.59
This commit is contained in:
parent
afcb1e3543
commit
b0f4e55aee
1 changed files with 19 additions and 7 deletions
|
|
@ -5,14 +5,26 @@ if [ "$#" != 1 ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
"$1" --list_content 2>&1 \
|
||||
| grep '\*$' \
|
||||
| sed 's=\*$==;s=^ =/=' \
|
||||
| while read t; do
|
||||
CACHE="$( find . -name CMakeCache.txt )"
|
||||
if [ "$CACHE" != "" ]; then
|
||||
BOOST_INC="$( grep Boost_INCLUDE_DIR:PATH "$CACHE" | cut -d= -f 2 )"
|
||||
if [ "$BOOST_INC" != "" ]; then
|
||||
BOOST_VERSION="$( grep '^#define *BOOST_VERSION ' "$BOOST_INC/boost/version.hpp" | sed 's=^.* ==' )"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$BOOST_VERSION" = "" -o "$BOOST_VERSION" -lt 105900 ]; then
|
||||
echo "Boost version '$BOOST_VERSION' - executing tests serially"
|
||||
"$1"
|
||||
else
|
||||
"$1" --list_content 2>&1 \
|
||||
| grep '\*$' \
|
||||
| sed 's=\*$==;s=^ =/=' \
|
||||
| while read t; do
|
||||
case "$t" in
|
||||
/*) echo "$pre$t"; ;;
|
||||
*) pre="$t"; ;;
|
||||
esac
|
||||
done \
|
||||
| parallel echo Running {}\; "$1" -t {}
|
||||
|
||||
done \
|
||||
| parallel echo Running {}\; "$1" -t {}
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue