aboutsummaryrefslogtreecommitdiff
path: root/run_pal_impl_tests.sh
blob: 4b0daedb7e7af6820a5fa9dc17af769e5098a977 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

# Quit if any command produces an error.
set -e

# Build and run the CHRE unit test binary.
JOB_COUNT=$((`grep -c ^processor /proc/cpuinfo`))

# Export the variant Makefile.
export CHRE_VARIANT_MK_INCLUDES="$CHRE_VARIANT_MK_INCLUDES \
  variant/googletest/variant.mk"

export RUN_PAL_IMPL_TESTS=true

make clean
make google_x86_googletest_debug -j$JOB_COUNT
./out/google_x86_googletest_debug/libchre $1