tests: Add kitkat build

* Simple test.
This commit is contained in:
Kyle Manna 2014-11-11 21:09:03 -08:00
parent 55e5d196d2
commit 8197ce17cf
1 changed files with 24 additions and 0 deletions

24
tests/build-kitkat.sh Executable file
View File

@ -0,0 +1,24 @@
#!/bin/bash
#
# Test script file that maps itself into a docker container and runs
#
set -ex
AOSP_BIN=${AOSP_BIN:-aosp}
if [ "$1" = "docker" ]; then
branch=android-4.4.4_r2.0.1
cpus=$(grep ^processor /proc/cpuinfo | wc -l)
repo init -u https://android.googlesource.com/platform/manifest -b $branch
repo sync -j $(($cpus * 2))
prebuilts/misc/linux-x86/ccache/ccache -M 10G
source build/envsetup.sh
lunch aosp_arm-eng
make -j $cpus
else
export AOSP_EXTRA_ARGS="-v $(readlink -f $0):/usr/local/bin/run.sh:ro"
$AOSP_BIN run.sh docker
fi