aboutsummaryrefslogtreecommitdiff
path: root/pull-buildtest
blob: 0cbd17336e53c0708f2c1a3f19a595dcb6378a2a (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
#!/bin/sh -e
#
# Copyright (C) 2014 Linaro Limited
# Author: Peter Maydell <peter.maydell@linaro.org>
# This work is licensed under the terms of the GNU GPL version 2 or later.

# warning: some hard coded paths here

# build-and-test part of a pull request

echo "Doing build and test cycle..."

JFLAG=-j$(nproc)

# Force no colours, and plain quotes
export GCC_COLORS=
# This causes a qapi escape-too-big test to spuriously fail,
# so don't do it.
#export LANG=C

# test one build from clean, at least:
make --output-sync -C build/alldbg clean
make --output-sync -C build/all $JFLAG
make --output-sync -C build/alldbg $JFLAG
# Now done on a different host using mxe cross toolchain
#make --output-sync -C build/w32-new $JFLAG
#make --output-sync -C build/w64-new $JFLAG
make --output-sync -C build/clang $JFLAG
make --output-sync -C build/tci $JFLAG
make --output-sync -C build/notcg $JFLAG
make --output-sync -C build/all-linux-static $JFLAG
make --output-sync -C build/all check V=1 $JFLAG
make --output-sync -C build/alldbg check V=1 $JFLAG
make --output-sync -C build/clang check V=1 $JFLAG
# tci doesn't pass tests...
#make --output-sync -C build/tci check $JFLAG
make --output-sync -C build/notcg check $JFLAG
make --output-sync -C build/all-linux-static check V=1 $JFLAG
make --output-sync -C ~/linaro/linux-user-test-0.3/ test
echo "OK DONE x86"