[PATCH] D31477: [asan] Add support for running lit tests in the iOS Simulator
Kuba (Brecka) Mracek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 29 12:59:08 PDT 2017
kubamracek created this revision.
kubamracek added a project: Sanitizers.
Herald added subscribers: mgorny, srhines.
Hi, this patch adds a basic support for running the ASan lit test suite against an iOS Simulator. This is done by generating more lit.site.cfg configurations into subdirectories such as `IOSSimI386Config` and `IOSSimX86_64Config`. These test suites are not added into "check-all" or into "check-asan" (and I don't even plan to add them there), and they have to be run manually, plus you need to specify which device to use (you usually have plenty of simulators installed):
$ SANITIZER_IOSSIM_TEST_DEVICE_IDENTIFIER=BBE44C1C-8AAA-4000-8D06-91C89ED58172
$ ./bin/llvm-lit ./projects/compiler-rt/test/asan/IOSSimI386Config
There will be plenty of failing tests, but I'll work on those later.
Repository:
rL LLVM
https://reviews.llvm.org/D31477
Files:
cmake/Modules/AddCompilerRT.cmake
test/asan/CMakeLists.txt
test/asan/lit.cfg
test/asan/lit.site.cfg.in
test/sanitizer_common/ios_commands/iossim_env.py
test/sanitizer_common/ios_commands/iossim_run.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31477.93400.patch
Type: text/x-patch
Size: 6638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170329/e74b42a4/attachment.bin>
More information about the llvm-commits
mailing list