Skip to content

Commit

Permalink
[CI] Run regression tests for different parallelizations in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmlnkn committed Apr 6, 2024
1 parent 3a85777 commit 03adc44
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,6 @@ jobs:
- name: Regression Tests
run: |
export RATARMOUNT_CMD=/usr/local/bin/ratarmount
bash tests/runtests.sh
PARALLELIZATION=1 bash tests/runtests.sh &
PARALLELIZATION=2 bash tests/runtests.sh &
PARALLELIZATION=0 bash tests/runtests.sh &
5 changes: 4 additions & 1 deletion tests/runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ RATARMOUNT_CMD="$RATARMOUNT_CMD --index-minimum-file-count 0"
export RATARMOUNT_CMD
echo "RATARMOUNT_CMD: $RATARMOUNT_CMD"

if [[ -z "$PARALLELIZATIONS" ]]; then
PARALLELIZATIONS="1 2 0"
fi

# MAC does not have mountpoint check!
if ! command -v mountpoint &>/dev/null; then
Expand Down Expand Up @@ -1890,7 +1893,7 @@ pytestedTests+=(
)


for parallelization in 1 2 0; do
for parallelization in $PARALLELIZATIONS; do

echo "== Testing with -P $parallelization =="
export parallelization
Expand Down

0 comments on commit 03adc44

Please sign in to comment.