#!/bin/bash if [[ "x$1" = "x-h" || "x$1" = "x--help" ]]; then echo -e "\tGIT_URL:\t which ODP git repo to use, default: ${GIT_URL}" echo -e "\tGIT_BRANCH:\t which branch to checkout and test, default: ${GIT_BRANCH}" exit 0 fi failed_builds="" successful_builds="" count_failed(){ running_build="${*}" $* retcode=$? if [[ $retcode -ne 0 ]] then failed_builds="${failed_builds}\n${LOGFILE_BASENAME}" else successful_builds="${successful_builds}\n${LOGFILE_BASENAME}" fi } ROOT_DIR=$(readlink -f $(dirname $0)) LOGFILE_BASENAME=log-amd64 count_failed ./build.sh -q export M32_ON_64=1 LOGFILE_BASENAME=log-amd64_32 count_failed ./build.sh -q unset M32_ON_64 export ARCH=arm LOGFILE_BASENAME=log-arm count_failed ./build.sh -q export ARCH=arm64 LOGFILE_BASENAME=log-arm64 count_failed ./build.sh -q unset ARCH echo echo -e "successful builds: ${successful_builds}" echo echo -e "failed builds: ${failed_builds}" if [[ -z ${failed_builds} ]]; then exit 0 else exit 1 fi ## vim: set sw=4 sts=4 et foldmethod=syntax : ##