Skip to content

Commit

Permalink
Validates DYAD_INSTALL_LIBDIR in run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ilumsden committed Oct 27, 2023
1 parent a9192dd commit f3ccb92
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/pydyad_spsc/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ if [ -z "${DYAD_INSTALL_LIBDIR}" ]; then
echo "DYAD_INSTALL_LIBDIR must be defined"
exit 1
fi
if [ ! -d "${DYAD_INSTALL_LIBDIR}" ]; then
echo "DYAD_INSTALL_LIBDIR ($DYAD_INSTALL_LIBDIR) does not exist"
exit 1
fi
if [ ! -f "${DYAD_INSTALL_LIBDIR}/dyad.so" ]; then
echo "Invalid contents in DYAD_INSTALL_LIBDIR ($DYAD_INSTALL_LIBDIR)"
exit 1
fi
if [ -z "${DYAD_PATH_CONSUMER}" ]; then
if [ -z "${DYAD_PATH}" ]; then
echo "Either DYAD_PATH_CONSUMER or DYAD_PATH must be defined"
Expand Down

0 comments on commit f3ccb92

Please sign in to comment.