#!/bin/bash # Copyright (C) 2018 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # Run Android Runtime APEX tests. SCRIPT_DIR=$(dirname $0) # Status of whole test script. exit_status=0 # Status of current test suite. test_status=0 function say { echo "$0: $*" } function die { echo "$0: $*" exit 1 } [[ -n "$ANDROID_PRODUCT_OUT" ]] \ || die "You need to source and lunch before you can use this script." [[ -n "$ANDROID_HOST_OUT" ]] \ || die "You need to source and lunch before you can use this script." if [ ! -e "$ANDROID_HOST_OUT/bin/debugfs" ] ; then say "Could not find debugfs, building now." make debugfs-host || die "Cannot build debugfs" fi # Fail early. set -e build_apex_p=true list_image_files_p=false print_image_tree_p=false function usage { cat <