blob: fa71ab7e8bfeb58c620b294a5b126dbec8dffb51 (
plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
|
#!/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 : ##
|