Files
motion/test_builds.sh
Mr-DaveDev 804c28cb04 Default Webp to be included in builds
* Change default for Webp image types

* Guide update for webp

* Revise Webp defaults and add to testing
2017-12-16 11:39:32 -07:00

156 lines
4.1 KiB
Bash
Executable File

#!/bin/bash
SUMMARY=""
RESULT="OK"
STARS="*****************************"
##################################################################################################
OPTION=" --with-developer-flags"
RESULT_CONFIG="Failed"
RESULT_MAKE="Failed"
printf "\n\n$STARS Testing $OPTION $STARS\n\n"
if ./configure $OPTION; then
RESULT_CONFIG="OK"
if make; then
RESULT_MAKE="OK"
else
RESULT="FAIL"
fi
else
RESULT="FAIL"
fi
SUMMARY=$SUMMARY"\n Option(s): "$OPTION" Config: "$RESULT_CONFIG" make: "$RESULT_MAKE
##################################################################################################
OPTION=" --with-developer-flags --without-ffmpeg "
RESULT_CONFIG="Failed"
RESULT_MAKE="Failed"
printf "\n\n$STARS Testing $OPTION $STARS\n\n"
if ./configure $OPTION; then
RESULT_CONFIG="OK"
if make; then
RESULT_MAKE="OK"
else
RESULT="FAIL"
fi
else
RESULT="FAIL"
fi
SUMMARY=$SUMMARY"\n Option(s): "$OPTION" Config: "$RESULT_CONFIG" make: "$RESULT_MAKE
##################################################################################################
OPTION=" --with-developer-flags --without-mysql "
RESULT_CONFIG="Failed"
RESULT_MAKE="Failed"
printf "\n\n$STARS Testing $OPTION $STARS\n\n"
if ./configure $OPTION; then
RESULT_CONFIG="OK"
if make; then
RESULT_MAKE="OK"
else
RESULT="FAIL"
fi
else
RESULT="FAIL"
fi
SUMMARY=$SUMMARY"\n Option(s): "$OPTION" Config: "$RESULT_CONFIG" make: "$RESULT_MAKE
##################################################################################################
OPTION=" --with-developer-flags --without-sqlite3 "
RESULT_CONFIG="Failed"
RESULT_MAKE="Failed"
printf "\n\n$STARS Testing $OPTION $STARS\n\n"
if ./configure $OPTION; then
RESULT_CONFIG="OK"
if make; then
RESULT_MAKE="OK"
else
RESULT="FAIL"
fi
else
RESULT="FAIL"
fi
SUMMARY=$SUMMARY"\n Option(s): "$OPTION" Config: "$RESULT_CONFIG" make: "$RESULT_MAKE
##################################################################################################
OPTION=" --with-developer-flags --without-pgsql "
RESULT_CONFIG="Failed"
RESULT_MAKE="Failed"
printf "\n\n$STARS Testing $OPTION $STARS\n\n"
if ./configure $OPTION; then
RESULT_CONFIG="OK"
if make; then
RESULT_MAKE="OK"
else
RESULT="FAIL"
fi
else
RESULT="FAIL"
fi
SUMMARY=$SUMMARY"\n Option(s): "$OPTION" Config: "$RESULT_CONFIG" make: "$RESULT_MAKE
##################################################################################################
OPTION=" --with-developer-flags --without-v4l2 "
RESULT_CONFIG="Failed"
RESULT_MAKE="Failed"
printf "\n\n$STARS Testing $OPTION $STARS\n\n"
if ./configure $OPTION; then
RESULT_CONFIG="OK"
if make; then
RESULT_MAKE="OK"
else
RESULT="FAIL"
fi
else
RESULT="FAIL"
fi
SUMMARY=$SUMMARY"\n Option(s): "$OPTION" Config: "$RESULT_CONFIG" make: "$RESULT_MAKE
##################################################################################################
OPTION=" --with-developer-flags --without-webp "
RESULT_CONFIG="Failed"
RESULT_MAKE="Failed"
printf "\n\n$STARS Testing $OPTION $STARS\n\n"
if ./configure $OPTION; then
RESULT_CONFIG="OK"
if make; then
RESULT_MAKE="OK"
else
RESULT="FAIL"
fi
else
RESULT="FAIL"
fi
SUMMARY=$SUMMARY"\n Option(s): "$OPTION" Config: "$RESULT_CONFIG" make: "$RESULT_MAKE
##################################################################################################
OPTION=" --with-developer-flags --without-mysql --without-sqlite3 --without-pgsql "
RESULT_CONFIG="Failed"
RESULT_MAKE="Failed"
printf "\n\n$STARS Testing $OPTION $STARS\n\n"
if ./configure $OPTION; then
RESULT_CONFIG="OK"
if make; then
RESULT_MAKE="OK"
else
RESULT="FAIL"
fi
else
RESULT="FAIL"
fi
SUMMARY=$SUMMARY"\n Option(s): "$OPTION" Config: "$RESULT_CONFIG" make: "$RESULT_MAKE
##################################################################################################
printf "\n\n$STARS Test Build Results$STARS\n"
printf "$SUMMARY\n"
if test $RESULT = "FAIL"; then
printf " Test builds failed\n"
printf "\n\n$STARS$STARS\n"
exit 1
else
printf " Test builds OK\n"
printf "\n\n$STARS$STARS\n"
exit 0
fi