1#!/bin/bash
2# VTS lab release script
3# Usage: <this script> prod|test
4# Caution: only used by a VTS lab release engineer
5rm out/host/linux-x86/vtslab/android-vtslab/testcases/tmp/ -rf
6. build/envsetup.sh
7lunch aosp_arm64
8make WifiUtil -j
9mkdir -p out/host/linux-x86/vtslab/android-vtslab/testcases/DATA/app
10cp out/target/product/generic_arm64/testcases/WifiUtil/ out/host/linux-x86/vtslab/android-vtslab/testcases/DATA/app/ -rf
11make vtslab -j
12
13if [ $# -eq 1 ]; then
14  ls -al out/host/linux-x86/vtslab/android-vtslab.zip
15  echo "To upload, please run:"
16  echo gsutil cp out/host/linux-x86/vtslab/android-vtslab.zip gs://vtslab-release/$1/android-vtslab-$(date +%F).zip
17fi
18