Skip to content

Commit

Permalink
fixe test
Browse files Browse the repository at this point in the history
  • Loading branch information
wistaria committed Mar 11, 2023
1 parent 5791c5d commit 4ae18b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fibonacci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ for p in cxx python julia; do
echo "test: ${p}/${d}"
rm -rf ${TEST_DIR}
mkdir -p ${TEST_DIR}
(cd ${TEST_DIR} && cmake "${SCRIPT_DIR}/${p}/${d}" >/dev/null)
(cd ${TEST_DIR} && make -j all >/dev/null)
(cd ${TEST_DIR} && cmake "${SCRIPT_DIR}/${p}/${d}" >/dev/null) || exit 127
(cd ${TEST_DIR} && make -j all >/dev/null) || exit 127
if [ -f "${TEST_DIR}/CTestTestfile.cmake" ]; then
(cd ${TEST_DIR} && ctest >/dev/null)
(cd ${TEST_DIR} && ctest >/dev/null) || exit 127
fi
rm -rf ${SCRIPT_DIR}/${p}/${d}/__pycache__ ${SCRIPT_DIR}/${p}/${d}/.pytest_cache
fi
Expand Down

0 comments on commit 4ae18b5

Please sign in to comment.