mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
ef59dce92e
fa43626611 test_runner: Remove travis specific code (MarcoFalke) Pull request description: The tests are no longer run on travis, but in a docker, developer machines or a windows vm. The code was essentially dead for months now. Fix that by explicitly passing in `--ci` to the test runner on our docker and appveyor windows vm. Tree-SHA512: 5d48693c03e8eb27536658ccf9ba738fe93a72abd4b72c80caac084b5b2cdffa77a1031a671eeefe70b71d63500f55917803d4be54d01849722afdccb700a9e6
47 lines
1.1 KiB
Bash
Executable File
47 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# This script is executed inside the builder image
|
|
|
|
set -e
|
|
|
|
PASS_ARGS="$@"
|
|
|
|
source ./ci/matrix.sh
|
|
|
|
if [ "$RUN_INTEGRATIONTESTS" != "true" ]; then
|
|
echo "Skipping integration tests"
|
|
exit 0
|
|
fi
|
|
|
|
export LD_LIBRARY_PATH=$BUILD_DIR/depends/$HOST/lib
|
|
|
|
cd build-ci/dashcore-$BUILD_TARGET
|
|
|
|
set +e
|
|
./test/functional/test_runner.py --ci --coverage --quiet --failfast --nocleanup --tmpdir=$(pwd)/testdatadirs $PASS_ARGS
|
|
RESULT=$?
|
|
set -e
|
|
|
|
echo "Collecting logs..."
|
|
BASEDIR=$(ls testdatadirs)
|
|
if [ "$BASEDIR" != "" ]; then
|
|
mkdir testlogs
|
|
for d in $(ls testdatadirs/$BASEDIR | grep -v '^cache$'); do
|
|
mkdir testlogs/$d
|
|
./test/functional/combine_logs.py -c ./testdatadirs/$BASEDIR/$d > ./testlogs/$d/combined.log
|
|
./test/functional/combine_logs.py --html ./testdatadirs/$BASEDIR/$d > ./testlogs/$d/combined.html
|
|
cd testdatadirs/$BASEDIR/$d
|
|
LOGFILES="$(find . -name 'debug.log' -or -name "test_framework.log")"
|
|
cd ../../..
|
|
for f in $LOGFILES; do
|
|
d2="testlogs/$d/$(dirname $f)"
|
|
mkdir -p $d2
|
|
cp testdatadirs/$BASEDIR/$d/$f $d2/
|
|
done
|
|
done
|
|
fi
|
|
|
|
mv testlogs ../../
|
|
|
|
exit $RESULT
|