Created
September 13, 2019 15:39
-
-
Save androm3da/bfeb433842977e9b41cb536d21ef0d29 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 | |
# Run the llvm test-suite on target (v60) | |
set -euo pipefail | |
Q6_ARCH=v60 | |
test_suite=$(readlink -f ${1}) | |
PATH=/prj/dsp/qdsp6/release/internal/HEXAGON/branch-8.3lnx/latest/Tools/bin:$PATH | |
flavor=target_${Q6_ARCH}_83latest | |
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/O0.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_REMOTE_CLIENT:STRING=ssh \ | |
-DTEST_SUITE_REMOTE_HOST:STRING=aus-dragon820-05 \ | |
-DTEST_SUITE_LIT_FLAGS:STRING="-vj4" \ | |
-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 |
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 | |
# Run the llvm test-suite on target (v60) | |
set -euo pipefail | |
Q6_ARCH=v60 | |
test_suite=$(readlink -f ${1}) | |
PATH=/prj/dsp/qdsp6/release/internal/HEXAGON/branch-8.3lnx/latest/Tools/bin:$PATH | |
flavor=target_${Q6_ARCH}_83latest | |
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/O0.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_REMOTE_CLIENT:STRING=ssh \ | |
-DTEST_SUITE_REMOTE_HOST:STRING=aus-dragon820-05 \ | |
-DTEST_SUITE_LIT_FLAGS:STRING="-vj4" \ | |
-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