Created
September 13, 2019 15:41
-
-
Save androm3da/7c830d3cc9f8457b9097cb16a03d6442 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
set -euo pipefail | |
test_suite=$(readlink -f ${1-../test-suite/}) | |
PATH=/prj/dsp/qdsp6/release/internal/HEXAGON/branch-8.4lnx/latest/Tools/bin:$PATH | |
qemu=~bcain/src/hexagon-clang/qemu.sh | |
Q6_ARCH=v65 | |
opt=O0 | |
flavor=qemu_${Q6_ARCH}_84latest_${opt} | |
run_build() { | |
mkdir obj_${flavor}_test-suite | |
cd obj_${flavor}_test-suite | |
cmake -GNinja \ | |
-DCMAKE_C_COMPILER=hexagon-linux-clang \ | |
-DCMAKE_CXX_COMPILER=hexagon-linux-clang++ \ | |
-C${test_suite}/cmake/caches/${opt}.cmake \ | |
-DTEST_SUITE_EXTRA_C_FLAGS="-m${Q6_ARCH}" \ | |
-DTEST_SUITE_EXTRA_CXX_FLAGS="-m${Q6_ARCH}" \ | |
-DTEST_SUITE_EXTRA_EXE_LINKER_FLAGS="-m${Q6_ARCH}" \ | |
-DARCH:STRING=Hexagon \ | |
-DTEST_SUITE_CXX_ABI_LIBNAME:STRING=libc++abi \ | |
-DBENCHMARK_USE_LIBCXX:BOOL=ON \ | |
-DTEST_SUITE_USER_MODE_EMULATION:BOOL=ON \ | |
-DTEST_SUITE_RUN_UNDER:STRING=${qemu} \ | |
-DTEST_SUITE_LIT_FLAGS:STRING="-v" \ | |
-DFP_TOLERANCE:STRING="1.5" \ | |
-DFP_ABSTOLERANCE:STRING="1.5" \ | |
${test_suite} | |
ninja | |
#lit -v -j 1 -o results.json . | |
ninja check | |
} | |
# check that we are already in a venv with lit installed | |
which lit | |
stamp=$(date +"%Y_%b%d_%H%M") | |
run_build 2>&1 | tee ${flavor}_test_suite_${stamp}.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment