aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-03-14 00:20:04 +0800
committerGitHub <noreply@github.com>2018-03-14 00:20:04 +0800
commit7a066efd7e0f371cfaee69c1f6b5f0aed1bfd107 (patch)
tree50f45c789316024fa4e4850589307beb03574f97
parent8ad0fb3be3998cf509c6329f41428fcd8d0d7de5 (diff)
parentc032a7ded1371c67aac2a1721bf522760c4d41a4 (diff)
downloaddexon-solidity-7a066efd7e0f371cfaee69c1f6b5f0aed1bfd107.tar
dexon-solidity-7a066efd7e0f371cfaee69c1f6b5f0aed1bfd107.tar.gz
dexon-solidity-7a066efd7e0f371cfaee69c1f6b5f0aed1bfd107.tar.bz2
dexon-solidity-7a066efd7e0f371cfaee69c1f6b5f0aed1bfd107.tar.lz
dexon-solidity-7a066efd7e0f371cfaee69c1f6b5f0aed1bfd107.tar.xz
dexon-solidity-7a066efd7e0f371cfaee69c1f6b5f0aed1bfd107.tar.zst
dexon-solidity-7a066efd7e0f371cfaee69c1f6b5f0aed1bfd107.zip
Merge pull request #3719 from ethereum/soltestScript
Add soltest.sh script that invokes soltest with the correct --testpath.
-rwxr-xr-xscripts/soltest.sh43
1 files changed, 43 insertions, 0 deletions
diff --git a/scripts/soltest.sh b/scripts/soltest.sh
new file mode 100755
index 00000000..00f484a1
--- /dev/null
+++ b/scripts/soltest.sh
@@ -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}