How do you guys run regression tests for LLVM in AOSP ? Is it possible at all (without hacking some scripts)?
For example: in standalone LLVM project running regression tests is very simple:
$: cd <path/where/your/llvm/was/built>
$: ninja check-all
But how to do it for AOSP ? I mean - in which directory should I run "ninja check-all" ?
I tried to run "ninja check-all" in "out/stage1" and in "out/stage2" but without any luck.
I've got next errors:
[2981/3235] Generating ScudoUnitTestsObjects.secondary_test.cpp.x86_64.o
FAILED: projects/compiler-rt/lib/scudo/standalone/tests/ScudoUnitTestsObjects.secondary_test.cpp.x86_64.o
cd /aosp/out/stage1/projects/compiler-rt/lib/scudo/standalone/tests && /aosp/out/stage1/./bin/clang -fdebug-prefix-map=/aosp= --gcc-toolchain=/aosp/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8 -B/aosp/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/bin -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -std=c++14 -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -fexperimental-new-pass-manager -Wall -std=c++14 -Wno-unused-parameter -Wno-unknown-warning-option -Wno-covered-switch-default -DGTEST_NO_LLVM_SUPPORT=1 -DGTEST_HAS_RTTI=0 -I/aosp/toolchain/llvm-project/llvm/utils/unittest/googletest/include -I/aosp/toolchain/llvm-project/llvm/utils/unittest/googletest -I/aosp/toolchain/llvm-project/compiler-rt/include -I/aosp/toolchain/llvm-project/compiler-rt/lib -I/aosp/toolchain/llvm-project/compiler-rt/lib/scudo/standalone -DGTEST_HAS_RTTI=0 -Wno-mismatched-new-delete -m64 -c -o ScudoUnitTestsObjects.secondary_test.cpp.x86_64.o /aosp/toolchain/llvm-project/compiler-rt/lib/scudo/standalone/tests/secondary_test.cpp
In file included from /aosp/toolchain/llvm-project/compiler-rt/lib/scudo/standalone/tests/secondary_test.cpp:11:
/aosp/toolchain/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:54:10: fatal error: 'limits' file not found
#include <limits>
Thank you