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
13make clean
14make google_x86_googletest_debug -j$JOB_COUNT
15./out/google_x86_googletest_debug/libchre $1
16