Skip to content

Commit

Permalink
Add successful test-case using dwt_59.mtx
Browse files Browse the repository at this point in the history
  • Loading branch information
byjtew committed Jul 5, 2023
1 parent c207405 commit 2fcca62
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions tests/smoke/smoketests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,19 @@ for BACKEND in ${BACKENDS[@]}; do
echo " This test employs the grb::Launcher in automatic mode. It uses"
echo " direct-mode file IO."
if [ -f ${INPUT_DIR}/west0497.mtx ] && [ "$BACKEND" != "bsp1d" ] && [ "$BACKEND" != "hybrid" ]; then
$runner ${TEST_BIN_DIR}/bfs_${BACKEND} ${INPUT_DIR}/west0497.mtx direct 0 0 497 &> ${TEST_OUT_DIR}/bfs_${BACKEND}_${P}_${T}.log
head -1 ${TEST_OUT_DIR}/bfs_${BACKEND}_${P}_${T}.log
grep 'Test OK' ${TEST_OUT_DIR}/bfs_${BACKEND}_${P}_${T}.log || echo "Test FAILED"
$runner ${TEST_BIN_DIR}/bfs_${BACKEND} ${INPUT_DIR}/west0497.mtx direct 0 0 497 &> ${TEST_OUT_DIR}/bfs_west0497_${BACKEND}_${P}_${T}.log
head -1 ${TEST_OUT_DIR}/bfs_west0497_${BACKEND}_${P}_${T}.log
grep 'Test OK' ${TEST_OUT_DIR}/bfs_west0497_${BACKEND}_${P}_${T}.log || echo "Test FAILED"
else
echo "Test DISABLED: west0497.mtx was not found. To enable, please provide ${INPUT_DIR}/west0497.mtx"
fi
if [ -f ${INPUT_DIR}/dwt_59.mtx ] && [ "$BACKEND" != "bsp1d" ] && [ "$BACKEND" != "hybrid" ]; then
$runner ${TEST_BIN_DIR}/bfs_${BACKEND} ${INPUT_DIR}/dwt_59.mtx direct 0 1 13 &> ${TEST_OUT_DIR}/bfs_dwt_59_${BACKEND}_${P}_${T}.log
head -1 ${TEST_OUT_DIR}/bfs_dwt_59_${BACKEND}_${P}_${T}.log
grep 'Test OK' ${TEST_OUT_DIR}/bfs_dwt_59_${BACKEND}_${P}_${T}.log || echo "Test FAILED"
else
echo "Test DISABLED: dwt_59.mtx was not found. To enable, please provide ${INPUT_DIR}/dwt_59.mtx"
fi

echo ">>> [x] [ ] Testing the BiCGstab algorithm for the 17361 x 17361 input"
echo " matrix gyro_m.mtx. This test verifies against a ground-"
Expand Down

0 comments on commit 2fcca62

Please sign in to comment.