Andrew Rossignol | c5ba98d | 2017-02-28 18:31:01 -0800 | [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. |
Andrew Rossignol | 879b224 | 2017-05-01 11:22:01 -0700 | [diff] [blame] | 7 | JOB_COUNT=$((`grep -c ^processor /proc/cpuinfo`)) |
| 8 | |
Andrew Rossignol | 0d1bf07 | 2017-11-02 16:20:22 -0700 | [diff] [blame] | 9 | # Export the variant Makefile. |
| 10 | export CHRE_VARIANT_MK_INCLUDES="$CHRE_VARIANT_MK_INCLUDES \ |
| 11 | variant/googletest/variant.mk" |
| 12 | |
Meng-hsuan Chung | ac91922 | 2020-03-18 06:54:50 -0700 | [diff] [blame] | 13 | make clean |
Andrew Rossignol | 879b224 | 2017-05-01 11:22:01 -0700 | [diff] [blame] | 14 | make google_x86_googletest_debug -j$JOB_COUNT |
| 15 | ./out/google_x86_googletest_debug/libchre $1 |