diff --git a/.circleci/soltest.sh b/.circleci/soltest.sh index dda335102..41f08db77 100755 --- a/.circleci/soltest.sh +++ b/.circleci/soltest.sh @@ -45,7 +45,15 @@ mkdir -p test_results # in case we run with ASAN enabled, we must increase stck size. ulimit -s 16384 -BOOST_TEST_ARGS="--color_output=no --show_progress=yes --logger=JUNIT,error,test_results/$EVM.xml" +get_logfile_basename() { + local filename="${EVM}" + test "${OPTIMIZE}" = "1" && filename="${filename}_opt" + test "${ABI_ENCODER_V2}" = "1" && filename="${filename}_abiv2" + + echo -ne "${filename}" +} + +BOOST_TEST_ARGS="--color_output=no --show_progress=yes --logger=JUNIT,error,test_results/`get_logfile_basename`.xml" SOLTEST_ARGS="--evm-version=$EVM --evmonepath /usr/lib/libevmone.so $flags" test "${OPTIMIZE}" = "1" && SOLTEST_ARGS="${SOLTEST_ARGS} --optimize" test "${ABI_ENCODER_V2}" = "1" && SOLTEST_ARGS="${SOLTEST_ARGS} --abiencoderv2 --optimize-yul"