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