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