Home | History | Annotate | Download | only in llvm-libc++
      1 #!/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.
      8 if [ -z "$ANDROID_PRODUCT_OUT" ]; then
      9   >&2 echo "Error: ANDROID_PRODUCT_OUT is not set. Have you run lunch?"
     10   exit 1
     11 fi
     12 
     13 if [ ! -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
     16 fi
     17 
     18 adb push $ANDROID_PRODUCT_OUT/system/lib/libc++_ndk.so /data/local/tmp
     19 lit -sv $* .
     20