1aec496f48e2c523423cb0b6bf7c7a394a80a8699Dan Albert#!/bin/bash 2aec496f48e2c523423cb0b6bf7c7a394a80a8699Dan Albert 3aec496f48e2c523423cb0b6bf7c7a394a80a8699Dan Albert# This file should reside in test/, but it seems that if there is already one 4aec496f48e2c523423cb0b6bf7c7a394a80a8699Dan Albert# lit.site.cfg in the test/ directory it is impossible to tell LIT to use 5aec496f48e2c523423cb0b6bf7c7a394a80a8699Dan Albert# another. This will need to be fixed upstream before this can get a proper 6aec496f48e2c523423cb0b6bf7c7a394a80a8699Dan Albert# home. The downside of this is that there isn't a way to run a subset of the 7aec496f48e2c523423cb0b6bf7c7a394a80a8699Dan Albert# libc++ tests against the NDK. 8aec496f48e2c523423cb0b6bf7c7a394a80a8699Dan Albertif [ -z "$ANDROID_PRODUCT_OUT" ]; then 9aec496f48e2c523423cb0b6bf7c7a394a80a8699Dan Albert >&2 echo "Error: ANDROID_PRODUCT_OUT is not set. Have you run lunch?" 10aec496f48e2c523423cb0b6bf7c7a394a80a8699Dan Albert exit 1 11aec496f48e2c523423cb0b6bf7c7a394a80a8699Dan Albertfi 12aec496f48e2c523423cb0b6bf7c7a394a80a8699Dan Albert 13aec496f48e2c523423cb0b6bf7c7a394a80a8699Dan Albertif [ ! -f $ANDROID_PRODUCT_OUT/system/lib/libc++_ndk.so ]; then 14aec496f48e2c523423cb0b6bf7c7a394a80a8699Dan Albert >&2 echo "Error: libc++_ndk.so has not been built for this target." 15aec496f48e2c523423cb0b6bf7c7a394a80a8699Dan Albert exit 1 16aec496f48e2c523423cb0b6bf7c7a394a80a8699Dan Albertfi 17aec496f48e2c523423cb0b6bf7c7a394a80a8699Dan Albert 18aec496f48e2c523423cb0b6bf7c7a394a80a8699Dan Albertadb push $ANDROID_PRODUCT_OUT/system/lib/libc++_ndk.so /data/local/tmp 19aec496f48e2c523423cb0b6bf7c7a394a80a8699Dan Albertlit -sv $* . 20