blob: 5672fa110ece961028555ec073cdda378703afb2 [file] [log] [blame]
Renato Golin94cc1042016-04-26 11:02:23 +01001#!/usr/bin/env bash
2
3syntax="Syntax: $0 REL RC"
4
5if [[ $1 = '' ]]; then
6 echo $syntax
7 exit 1
8fi
9REL=$1
10shift
11if [[ $1 = 'final' ]]; then
12 RC="-final"
13else if [[ $1 != '' ]]; then
14 RC="-rc $1"
15else
16 echo "Syntax: $0 REL RC"
17 exit 1
18fi fi
19
20aarch64="`egrep '(AArch64|asimd)' /proc/cpuinfo`"
21armv7="`grep ARMv7 /proc/cpuinfo`"
22intel="`grep Intel /proc/cpuinfo`"
23
24if [[ $aarch64 = '' && $armv7 = '' && $intel = '' ]]; then
25 echo "This is neither of ARMv7, AArch64, Intel"
26 exit 1
27fi
28triple=armv7a-linux-gnueabihf
29if [[ $aarch64 != '' ]]; then
30 triple=aarch64-linux-gnu
31fi
32if [[ $intel != '' ]]; then
33 triple=x86_64-linux-gnu
34fi
35
36./test-release.sh -release $REL $RC -triple $triple -j8 -no-libs -no-test-suite