Arthur Ishiguro | 6dc849e | 2020-06-03 13:10:32 -0700 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | # Quit if any command produces an error. | ||||
4 | set -e | ||||
5 | |||||
6 | # Build and run the CHRE unit test binary. | ||||
7 | JOB_COUNT=$((`grep -c ^processor /proc/cpuinfo`)) | ||||
8 | |||||
9 | # Export the variant Makefile. | ||||
10 | export CHRE_VARIANT_MK_INCLUDES="$CHRE_VARIANT_MK_INCLUDES \ | ||||
11 | variant/googletest/variant.mk" | ||||
12 | |||||
13 | export RUN_PAL_IMPL_TESTS=true | ||||
14 | |||||
15 | make clean | ||||
16 | make google_x86_googletest_debug -j$JOB_COUNT | ||||
17 | ./out/google_x86_googletest_debug/libchre $1 |