Skip to content

Commit

Permalink
Add github actions test for parallel runs.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielabdi-noaa committed Apr 28, 2024
1 parent f155810 commit d8bf9d1
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions tests/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,46 @@ allTests=( \
atmo/srtb-piso-amr/bubble \
)

allParTests=( \
backface/backface \
cavity/cavity \
cavity-amr/cavity \
convec/convec \
harg/harg \
laplace/laplace \
laplace-amr/laplace \
mix/mix \
pitzdaily/ke/pitzDaily \
pitzdaily/les/pitzDaily \
potential/potential \
atmo/acoustic-sphere/sphere \
atmo/advection-sphere/sphere \
atmo/ctbs/bubble \
atmo/dc/bubble \
atmo/advection-leveque/bubble \
atmo/lrtb/bubble \
atmo/srtb/bubble \
atmo/srtb-amr/bubble \
atmo/srtb-curved/bubble \
atmo/srtb-inclined/bubble \
atmo/srtb-piso/bubble \
atmo/srtb-piso-amr/bubble \
)

cd ..

export OMP_NUM_THREADS=1

# single process tests
for i in "${allTests[@]}"; do
echo "Running test case: $i"
./test.sh -s 10 -n 1 -c examples/$i
done


# two process tests
for i in "${allParTests[@]}"; do
echo "Running test case: $i"
./test.sh -s 10 -n 2 -c examples/$i
done

0 comments on commit d8bf9d1

Please sign in to comment.