mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #3719 from ethereum/soltestScript
Add soltest.sh script that invokes soltest with the correct --testpath.
This commit is contained in:
commit
7a066efd7e
43
scripts/soltest.sh
Executable file
43
scripts/soltest.sh
Executable file
@ -0,0 +1,43 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
REPO_ROOT="$(dirname "$0")"/..
|
||||||
|
USE_DEBUGGER=0
|
||||||
|
DEBUGGER="gdb --args"
|
||||||
|
BOOST_OPTIONS=
|
||||||
|
SOLTEST_OPTIONS=
|
||||||
|
|
||||||
|
while [ $# -gt 0 ]
|
||||||
|
do
|
||||||
|
case "$1" in
|
||||||
|
--debugger)
|
||||||
|
shift
|
||||||
|
DEBUGGER="$1"
|
||||||
|
USE_DEBUGGER=1
|
||||||
|
;;
|
||||||
|
--debug)
|
||||||
|
USE_DEBUGGER=1
|
||||||
|
;;
|
||||||
|
--boost-options)
|
||||||
|
shift
|
||||||
|
BOOST_OPTIONS="${BOOST_OPTIONS} $1"
|
||||||
|
;;
|
||||||
|
-t)
|
||||||
|
shift
|
||||||
|
BOOST_OPTIONS="${BOOST_OPTIONS} -t $1"
|
||||||
|
;;
|
||||||
|
--show-progress | -p)
|
||||||
|
BOOST_OPTIONS="${BOOST_OPTIONS} $1"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
SOLTEST_OPTIONS="${SOLTEST_OPTIONS} $1"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
if [ "$USE_DEBUGGER" -ne "0" ]; then
|
||||||
|
DEBUG_PREFIX=${DEBUGGER}
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec ${DEBUG_PREFIX} ${REPO_ROOT}/build/test/soltest ${BOOST_OPTIONS} -- --testpath ${REPO_ROOT}/test ${SOLTEST_OPTIONS}
|
Loading…
Reference in New Issue
Block a user