Colin Cross | d0be210 | 2019-11-26 16:16:57 -0800 | [diff] [blame] | 1 | #!/bin/bash -e |
| 2 | |
| 3 | readonly UNAME="$(uname)" |
| 4 | case "$UNAME" in |
| 5 | Linux) |
| 6 | readonly OS='linux' |
| 7 | ;; |
| 8 | Darwin) |
| 9 | readonly OS='darwin' |
| 10 | ;; |
| 11 | *) |
| 12 | echo "Unsupported OS '$UNAME'" |
| 13 | exit 1 |
| 14 | ;; |
| 15 | esac |
| 16 | |
| 17 | readonly ANDROID_TOP="$(cd $(dirname $0)/../../..; pwd)" |
| 18 | cd "$ANDROID_TOP" |
| 19 | |
| 20 | export OUT_DIR="${OUT_DIR:-out}" |
Colin Cross | d0be210 | 2019-11-26 16:16:57 -0800 | [diff] [blame] | 21 | |
Colin Cross | 6a4d3ba | 2021-11-05 14:07:48 -0700 | [diff] [blame] | 22 | build/soong/soong_ui.bash --make-mode "${OUT_DIR}/host/${OS}-x86/bin/cuj_tests" |
Colin Cross | d0be210 | 2019-11-26 16:16:57 -0800 | [diff] [blame] | 23 | |
Colin Cross | 6a4d3ba | 2021-11-05 14:07:48 -0700 | [diff] [blame] | 24 | "${OUT_DIR}/host/${OS}-x86/bin/cuj_tests" || true |
Colin Cross | d0be210 | 2019-11-26 16:16:57 -0800 | [diff] [blame] | 25 | |
| 26 | if [ -n "${DIST_DIR}" ]; then |
| 27 | cp -r "${OUT_DIR}/cuj_tests/logs" "${DIST_DIR}" |
| 28 | fi |