From 8197ce17cf024894c0f24e0136f74fb7d322f757 Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Tue, 11 Nov 2014 21:09:03 -0800 Subject: [PATCH] tests: Add kitkat build * Simple test. --- tests/build-kitkat.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 tests/build-kitkat.sh diff --git a/tests/build-kitkat.sh b/tests/build-kitkat.sh new file mode 100755 index 0000000..fe33903 --- /dev/null +++ b/tests/build-kitkat.sh @@ -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