forked from lightningnetwork/lnd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
travis+make: execute test groups in parallel
- Loading branch information
Showing
5 changed files
with
63 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# Let's work with absolute paths only, we run in the itest directory itself. | ||
WORKDIR=$(pwd)/lntest/itest | ||
|
||
TRANCHE=$1 | ||
NUM_TRANCHES=$2 | ||
|
||
# Shift the passed parameters by two, giving us all remaining testing flags in | ||
# the $@ special variable. | ||
shift | ||
shift | ||
|
||
# Windows insists on having the .exe suffix for an executable, we need to add | ||
# that here if necessary. | ||
EXEC="$WORKDIR"/itest.test"$EXEC_SUFFIX" | ||
LND_EXEC="$WORKDIR"/lnd-itest"$EXEC_SUFFIX" | ||
echo $EXEC -test.v "$@" -logoutput -goroutinedump -logdir=.logs-tranche$TRANCHE -lndexec=$LND_EXEC -splittranches=$NUM_TRANCHES -runtranche=$TRANCHE | ||
|
||
# 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-tranche$TRANCHE -lndexec=$LND_EXEC -splittranches=$NUM_TRANCHES -runtranche=$TRANCHE || exit 255 |