/usr/share/doc/libshogun-dev/examples/check.sh is in libshogun-dev 3.1.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #!/usr/bin/env bash
rm -f error.log
test -n "$LIBRARY_PATH" && LIBRARY_PATH="LIBRARY_PATH=${LIBRARY_PATH}"
test -n "$LIB_PATH" && LIB_PATH="LIB_PATH=${LIB_PATH}"
test -n "$INC_PATH" && INC_PATH="INC_PATH=${INC_PATH}"
test -n "$LIBS" && LIBS="LIBS=${LIBS}"
test -n "$INCLUDES" && INCLUDES="INCLUDES=${INCLUDES}"
test -n "$CC" && CC="CC=${CC}"
test -z "$MAKE" && MAKE="make"
for e in `$MAKE print_targets | grep -v ^$MAKE`
do
echo -n "running $e .."
if $MAKE "$e" "$CC" "$LIBRARY_PATH" "$LIB_PATH" "$INC_PATH" "$LIBS" "$INCLUDES" >/dev/null 2>&1 && "./$e" >/dev/null 2>&1
then
echo " OK"
else
echo " ERROR"
echo "================================================================================" >>error.log
echo "error in $MAKE $e $CC $LIBRARY_PATH $LIB_PATH $INC_PATH $LIBS $INCLUDES" >>error.log
echo "error in ./$e" >>error.log 2>&1
echo "================================================================================" >>error.log
$MAKE "$e" "$CC" "$LIBRARY_PATH" "$LIB_PATH" "$INC_PATH" "$LIBS" "$INCLUDES" >>error.log 2>&1 && $GDB $GDBOPTS "./$e" >>error.log
echo "================================================================================" >>error.log
echo >>error.log
echo >>error.log
fi
done
if test -f error.log
then
cat error.log
exit 1
fi
exit 0
|