6a4d3ba138
Host tools are in out/host/linux-x86/bin now instead of out/soong/host/linux-x86/bin. Bug: 204136549 Test: forrest Change-Id: I293accdde5ee4d1d21a471e12ba66e169f9410fc
28 lines
524 B
Bash
Executable file
28 lines
524 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
readonly UNAME="$(uname)"
|
|
case "$UNAME" in
|
|
Linux)
|
|
readonly OS='linux'
|
|
;;
|
|
Darwin)
|
|
readonly OS='darwin'
|
|
;;
|
|
*)
|
|
echo "Unsupported OS '$UNAME'"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
readonly ANDROID_TOP="$(cd $(dirname $0)/../../..; pwd)"
|
|
cd "$ANDROID_TOP"
|
|
|
|
export OUT_DIR="${OUT_DIR:-out}"
|
|
|
|
build/soong/soong_ui.bash --make-mode "${OUT_DIR}/host/${OS}-x86/bin/cuj_tests"
|
|
|
|
"${OUT_DIR}/host/${OS}-x86/bin/cuj_tests" || true
|
|
|
|
if [ -n "${DIST_DIR}" ]; then
|
|
cp -r "${OUT_DIR}/cuj_tests/logs" "${DIST_DIR}"
|
|
fi
|