Update run-parallel-tests.sh to support arguments
This commit is contained in:
parent
9dbf944412
commit
bc60ea3fa9
1 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ "$#" != 1 ]; then
|
if [ "$#" -lt 1 ]; then
|
||||||
echo "Usage: $0 <boost-unit-test-executable>" 1>&2
|
echo "Usage: $0 <boost-unit-test-executable> [arguments]" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -15,7 +15,7 @@ fi
|
||||||
|
|
||||||
if [ "$BOOST_VERSION" = "" -o "$BOOST_VERSION" -lt 105900 ]; then
|
if [ "$BOOST_VERSION" = "" -o "$BOOST_VERSION" -lt 105900 ]; then
|
||||||
echo "Boost version '$BOOST_VERSION' - executing tests serially"
|
echo "Boost version '$BOOST_VERSION' - executing tests serially"
|
||||||
"$1"
|
"$@"
|
||||||
else
|
else
|
||||||
"$1" --list_content 2>&1 \
|
"$1" --list_content 2>&1 \
|
||||||
| grep '\*$' \
|
| grep '\*$' \
|
||||||
|
|
@ -26,5 +26,5 @@ else
|
||||||
*) pre="$t"; ;;
|
*) pre="$t"; ;;
|
||||||
esac
|
esac
|
||||||
done \
|
done \
|
||||||
| parallel echo Running {}\; "$1" -t {}
|
| parallel echo Running {}\; "$@" -t {}
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue