• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3# dir with prebuilts in it
4# contains subdirs named 19.1.0, 20.0.0, etc.
5PREBUILT_DIR=~/android/ndk-master/prebuilts/renderscript/host/linux-x86/
6# aosp dir
7AOSP_DIR=~/android/aosp
8# throwaway dir
9TMP=/tmp/bad
10
11mkdir -p $TMP
12
13# for each dir with pattern #.#.#
14for version in $PREBUILT_DIR/*.*.*; do
15  echo $(basename $version)
16  for unittest in $AOSP_DIR/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/*.rs ; do
17    echo $(basename $unittest)
18    txtfile=$(basename $version | tr '.' '_').txt
19    ($version/bin/llvm-rs-cc $unittest -o $TMP -p $TMP -I $version/include/ -I $version/clang-include/ 1> /dev/null 2> /dev/null) && (echo $(basename $unittest) | sed 's/...$//') >> $txtfile
20  done
21done
22