[ Merge of http://go/wvgerrit/153121 ] `run_oemcrypto_fuzz_tests` script was disabled while OPK was transitioning between v16 and v17. Now that OPK is v17, the fuzz tests can be re-enabled. Some targets could not be built due to a missing header file. `oemcrypto/ref/src/cppbor.cpp` was updated to include the missing header. Bug: 235414753 Bug: 229160033 Bug: 236317198 Test: run_oemcrypto_fuzz_tests Change-Id: Ieeebae1f6d84c5735a669d44ea45875675fdb5a3
25 lines
841 B
Bash
Executable File
25 lines
841 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Also, if you are fixing this script, it should probably be moved to the
|
|
# jenkins directory, so that it is next to all the other scripts that LUCI
|
|
# runs.
|
|
|
|
set -ex
|
|
|
|
export CXX=clang++
|
|
export CC=clang
|
|
export GYP_DEFINES="$GYP_DEFINES clang=1"
|
|
export PATH_TO_CDM_DIR=.
|
|
export PYTHONPATH="$PYTHONPATH:$PATH_TO_CDM_DIR/third_party"
|
|
|
|
python3 $PATH_TO_CDM_DIR/third_party/gyp/__init__.py --format=ninja \
|
|
--depth=$(pwd) oemcrypto/test/fuzz_tests/oemcrypto_fuzztests.gyp
|
|
ninja -C out/Default
|
|
# oemcrypto_opk_fuzztests.gypi has flags to instrument all the gyp targets
|
|
# with fuzzer flags.
|
|
python3 $PATH_TO_CDM_DIR/third_party/gyp/__init__.py --format=ninja \
|
|
--depth=$(pwd) \
|
|
--include=oemcrypto/test/fuzz_tests/oemcrypto_opk_fuzztests.gypi \
|
|
oemcrypto/test/fuzz_tests/oemcrypto_opk_fuzztests.gyp
|
|
ninja -C out/Default
|