Files
android/libwvdrmengine/oemcrypto/test/fuzz_tests/build_oemcrypto_fuzztests
Kyle Zhang 11255b7426 Pick widevine oemcrypto-v18 change
No-Typo-Check: From a third party header file
Bug: 260918793
Test: unit tests
Test: atp v2/widevine-eng/drm_compliance
Change-Id: I36effd6a10a99bdb2399ab1f4a0fad026d607c70
2022-12-21 00:03:50 +00:00

28 lines
843 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
# CDM_DIR is used by several script, especially when there is some confusion
if [ -z "$CDM_DIR" ]; then
export CDM_DIR="$(readlink -e $(dirname $0)/../../..)"
fi
cd $CDM_DIR
export CXX=clang++
export CC=clang
export GYP_DEFINES="$GYP_DEFINES clang=1"
echo "CDM_DIR = $CDM_DIR"
export PYTHONPATH="$PYTHONPATH:$CDM_DIR/third_party"
# oemcrypto_opk_fuzztests.gypi has flags to instrument all the gyp targets
# with fuzzer flags.
python3 $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