itest: copy integration test framework from lnd

This commit is contained in:
Oliver Gugger 2021-11-23 14:51:02 +01:00
parent 2ca94d2949
commit 3fc65556c5
No known key found for this signature in database
GPG key ID: 8E4256593F177720
12 changed files with 3558 additions and 1 deletions

16
scripts/itest_part.sh Executable file
View file

@ -0,0 +1,16 @@
#!/bin/bash
# Let's work with absolute paths only, we run in the itest directory itself.
WORKDIR=$(pwd)/itest
# Windows insists on having the .exe suffix for an executable, we need to add
# that here if necessary.
EXEC="$WORKDIR"/itest.test
LITD_EXEC="$WORKDIR"/litd-itest
BTCD_EXEC="$WORKDIR"/btcd-itest
echo $EXEC -test.v "$@" -logoutput -goroutinedump -logdir=.logs -litdexec=$LITD_EXEC -btcdexec=$BTCD_EXEC
# Exit code 255 causes the parallel jobs to abort, so if one part fails the
# other is aborted too.
cd "$WORKDIR" || exit 255
$EXEC -test.v "$@" -logoutput -goroutinedump -logdir=.logs -litdexec=$LITD_EXEC -btcdexec=$BTCD_EXEC || exit 255