summaryrefslogtreecommitdiff
path: root/copy.sh
blob: 49de6e794d8a9625e36815498be6b25a1082857a (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
#!/bin/bash

patches_dir=$(cd $(dirname $0); pwd)
if [ -z "$1" ]; then
    echo "Please specify the uncompressed android-cts directory"
    exit 1
fi

tgt_cts_dir=$1

if [ ! -d "${tgt_cts_dir}" ]; then
    echo "The specify path ${tgt_cts_dir} is not a directory"
    exit 1
fi

if [ "Xandroid-cts" != "X$(basename ${tgt_cts_dir})" ]; then
    echo "The specified directory must be the uncompressed android-cts directory"
    exit 1
fi

tgt_cts_dir=$(cd ${tgt_cts_dir}; pwd)
cp -vf ${patches_dir}/android.core.tests.libcore.package.*  ${tgt_cts_dir}/repository/testcases
cp -vf ${patches_dir}/{app.xml,graphics.xml}  ${tgt_cts_dir}/repository/plans/
cp -vf ${patches_dir}/ddmlib-prebuilt.jar  ${tgt_cts_dir}/tools/

tgt_cts_parent=$(dirname ${tgt_cts_dir})
cp -uvf ${patches_dir}/linaro-changes.txt ${tgt_cts_parent}

cd ${tgt_cts_parent}
zip -r android-cts-aarch64-master-hacks.zip android-cts linaro-changes.txt