blob: 384719dc12fed9f20f4b50055307750c1b0335b1 [file] [log] [blame]
Andrew Rossignolc5ba98d2017-02-28 18:31:01 -08001#!/bin/bash
2
3# Quit if any command produces an error.
4set -e
5
6# Build and run the CHRE unit test binary.
Andrew Rossignol879b2242017-05-01 11:22:01 -07007JOB_COUNT=$((`grep -c ^processor /proc/cpuinfo`))
8
Andrew Rossignol0d1bf072017-11-02 16:20:22 -07009# Export the variant Makefile.
10export CHRE_VARIANT_MK_INCLUDES="$CHRE_VARIANT_MK_INCLUDES \
11 variant/googletest/variant.mk"
12
Meng-hsuan Chungac919222020-03-18 06:54:50 -070013make clean
Andrew Rossignol879b2242017-05-01 11:22:01 -070014make google_x86_googletest_debug -j$JOB_COUNT
15./out/google_x86_googletest_debug/libchre $1