osrm-backend/scripts/stxxl_shared/1.4.1/test.sh
Patrick Niklaus f8dd965435 Squashed 'third_party/mason/' content from commit cf3561b
git-subtree-dir: third_party/mason
git-subtree-split: cf3561bf78cb146821dba3d95c308fc44db05f46
2016-12-15 10:31:15 +00:00

32 lines
686 B
Bash
Executable File

#!/usr/bin/env bash
set -e -u
set -o pipefail
failure=0
if [[ ! -d mason_packages/.link/include/stxxl ]]; then
echo "could not find expected include/stxxl"
failure=1
fi
if [[ ! -L mason_packages/.link/include/stxxl ]]; then
echo "include/stxxl is expected to be a symlink"
failure=1
fi
if [[ $(uname -s) == 'Darwin' ]]; then
if [[ ! -f mason_packages/.link/lib/libstxxl.dylib ]]; then
echo "libstxxl.dylib expected to be present"
failure=1
fi
elif [[ $(uname -s) == 'Linux' ]]; then
if [[ ! -f mason_packages/.link/lib/libstxxl.so ]]; then
echo "libstxxl.dylib expected to be present"
failure=1
fi
fi
exit $failure