FC Updates from BitShares and myself #21
1 changed files with 19 additions and 7 deletions
|
|
@ -5,7 +5,19 @@ if [ "$#" != 1 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"$1" --list_content 2>&1 \
|
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 '\*$' \
|
| grep '\*$' \
|
||||||
| sed 's=\*$==;s=^ =/=' \
|
| sed 's=\*$==;s=^ =/=' \
|
||||||
| while read t; do
|
| while read t; do
|
||||||
|
|
@ -15,4 +27,4 @@ fi
|
||||||
esac
|
esac
|
||||||
done \
|
done \
|
||||||
| parallel echo Running {}\; "$1" -t {}
|
| parallel echo Running {}\; "$1" -t {}
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue