Move ASan lit-tests under test/asan
authorAlexey Samsonov <samsonov@google.com>
Fri, 14 Feb 2014 14:06:10 +0000 (14:06 +0000)
committerAlexey Samsonov <samsonov@google.com>
Fri, 14 Feb 2014 14:06:10 +0000 (14:06 +0000)
llvm-svn: 201413

155 files changed:
compiler-rt/CMakeLists.txt
compiler-rt/lib/asan/CMakeLists.txt
compiler-rt/lib/asan/lit_tests/CMakeLists.txt [deleted file]
compiler-rt/test/CMakeLists.txt
compiler-rt/test/asan/CMakeLists.txt [new file with mode: 0644]
compiler-rt/test/asan/GenericConfig/lit.site.cfg.in [moved from compiler-rt/lib/asan/lit_tests/GenericConfig/lit.site.cfg.in with 82% similarity]
compiler-rt/test/asan/TestCases/Darwin/asan_gen_prefixes.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Darwin/asan_gen_prefixes.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Darwin/interface_symbols_darwin.c [moved from compiler-rt/lib/asan/lit_tests/TestCases/Darwin/interface_symbols_darwin.c with 96% similarity]
compiler-rt/test/asan/TestCases/Darwin/lit.local.cfg [moved from compiler-rt/lib/asan/lit_tests/TestCases/Darwin/lit.local.cfg with 100% similarity]
compiler-rt/test/asan/TestCases/Darwin/malloc_set_zone_name-mprotect.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Darwin/malloc_set_zone_name-mprotect.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Darwin/malloc_zone-protected.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Darwin/malloc_zone-protected.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Darwin/reexec-insert-libraries-env.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Darwin/reexec-insert-libraries-env.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Darwin/unset-insert-libraries-on-exec.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Darwin/unset-insert-libraries-on-exec.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Helpers/blacklist-extra.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Helpers/blacklist-extra.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Helpers/echo-env.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Helpers/echo-env.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Helpers/init-order-atexit-extra.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Helpers/init-order-atexit-extra.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Helpers/init-order-pthread-create-extra.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Helpers/init-order-pthread-create-extra.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Helpers/initialization-blacklist-extra.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Helpers/initialization-blacklist-extra.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Helpers/initialization-blacklist-extra2.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Helpers/initialization-blacklist-extra2.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Helpers/initialization-blacklist.txt [moved from compiler-rt/lib/asan/lit_tests/TestCases/Helpers/initialization-blacklist.txt with 100% similarity]
compiler-rt/test/asan/TestCases/Helpers/initialization-bug-extra.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Helpers/initialization-bug-extra.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Helpers/initialization-bug-extra2.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Helpers/initialization-bug-extra2.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Helpers/initialization-constexpr-extra.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Helpers/initialization-constexpr-extra.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Helpers/initialization-nobug-extra.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Helpers/initialization-nobug-extra.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Helpers/lit.local.cfg [moved from compiler-rt/lib/asan/lit_tests/TestCases/Helpers/lit.local.cfg with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/asan_prelink_test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/asan_prelink_test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/clone_test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/clone_test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/coverage.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/coverage.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/function-sections-are-bad.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/function-sections-are-bad.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/glob.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/glob.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/glob_test_root/aa [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/glob_test_root/aa with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/glob_test_root/ab [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/glob_test_root/ab with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/glob_test_root/ba [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/glob_test_root/ba with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/globals-gc-sections.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/globals-gc-sections.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/heap-overflow-large.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/heap-overflow-large.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/heavy_uar_test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/heavy_uar_test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/initialization-bug-any-order.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/initialization-bug-any-order.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/interception_failure_test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/interception_failure_test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/interception_malloc_test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/interception_malloc_test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/interception_readdir_r_test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/interception_readdir_r_test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/interception_test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/interception_test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/interface_symbols_linux.c [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/interface_symbols_linux.c with 96% similarity]
compiler-rt/test/asan/TestCases/Linux/lit.local.cfg [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/lit.local.cfg with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/malloc-in-qsort.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/malloc-in-qsort.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/malloc_delete_mismatch.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/malloc_delete_mismatch.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/overflow-in-qsort.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/overflow-in-qsort.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/preinit_test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/preinit_test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/ptrace.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/ptrace.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/rlimit_mmap_test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/rlimit_mmap_test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/shmctl.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/shmctl.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/stress_dtls.c [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/stress_dtls.c with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/swapcontext_test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/swapcontext_test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/syscalls.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/syscalls.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/tsd_dtor_leak.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/tsd_dtor_leak.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/uar_signals.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/uar_signals.cc with 100% similarity]
compiler-rt/test/asan/TestCases/Linux/unpoison_tls.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/Linux/unpoison_tls.cc with 100% similarity]
compiler-rt/test/asan/TestCases/SharedLibs/darwin-dummy-shared-lib-so.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/darwin-dummy-shared-lib-so.cc with 100% similarity]
compiler-rt/test/asan/TestCases/SharedLibs/dlclose-test-so.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/dlclose-test-so.cc with 100% similarity]
compiler-rt/test/asan/TestCases/SharedLibs/init-order-dlopen-so.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/init-order-dlopen-so.cc with 100% similarity]
compiler-rt/test/asan/TestCases/SharedLibs/lit.local.cfg [moved from compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/lit.local.cfg with 100% similarity]
compiler-rt/test/asan/TestCases/SharedLibs/shared-lib-test-so.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/shared-lib-test-so.cc with 100% similarity]
compiler-rt/test/asan/TestCases/SharedLibs/start-deactivated-so.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/start-deactivated-so.cc with 100% similarity]
compiler-rt/test/asan/TestCases/allocator_returns_null.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/allocator_returns_null.cc with 100% similarity]
compiler-rt/test/asan/TestCases/allow_user_segv.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/allow_user_segv.cc with 100% similarity]
compiler-rt/test/asan/TestCases/asan-symbolize-sanity-test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/asan-symbolize-sanity-test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/assign_large_valloc_to_global.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/assign_large_valloc_to_global.cc with 100% similarity]
compiler-rt/test/asan/TestCases/atexit_stats.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/atexit_stats.cc with 100% similarity]
compiler-rt/test/asan/TestCases/blacklist.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/blacklist.cc with 100% similarity]
compiler-rt/test/asan/TestCases/contiguous_container.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/contiguous_container.cc with 100% similarity]
compiler-rt/test/asan/TestCases/contiguous_container_crash.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/contiguous_container_crash.cc with 100% similarity]
compiler-rt/test/asan/TestCases/current_allocated_bytes.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/current_allocated_bytes.cc with 100% similarity]
compiler-rt/test/asan/TestCases/deep_call_stack.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/deep_call_stack.cc with 100% similarity]
compiler-rt/test/asan/TestCases/deep_stack_uaf.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/deep_stack_uaf.cc with 100% similarity]
compiler-rt/test/asan/TestCases/deep_tail_call.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/deep_tail_call.cc with 100% similarity]
compiler-rt/test/asan/TestCases/deep_thread_stack.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/deep_thread_stack.cc with 100% similarity]
compiler-rt/test/asan/TestCases/default_blacklist.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/default_blacklist.cc with 100% similarity]
compiler-rt/test/asan/TestCases/default_options.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/default_options.cc with 100% similarity]
compiler-rt/test/asan/TestCases/dlclose-test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/dlclose-test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/double-free.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/double-free.cc with 100% similarity]
compiler-rt/test/asan/TestCases/force_inline_opt0.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/force_inline_opt0.cc with 100% similarity]
compiler-rt/test/asan/TestCases/free_hook_realloc.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/free_hook_realloc.cc with 100% similarity]
compiler-rt/test/asan/TestCases/gc-test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/gc-test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/global-demangle.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/global-demangle.cc with 100% similarity]
compiler-rt/test/asan/TestCases/global-overflow.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/global-overflow.cc with 100% similarity]
compiler-rt/test/asan/TestCases/heap-overflow.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/heap-overflow.cc with 100% similarity]
compiler-rt/test/asan/TestCases/huge_negative_hea_oob.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/huge_negative_hea_oob.cc with 100% similarity]
compiler-rt/test/asan/TestCases/init-order-atexit.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/init-order-atexit.cc with 100% similarity]
compiler-rt/test/asan/TestCases/init-order-dlopen.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/init-order-dlopen.cc with 100% similarity]
compiler-rt/test/asan/TestCases/init-order-pthread-create.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/init-order-pthread-create.cc with 100% similarity]
compiler-rt/test/asan/TestCases/initialization-blacklist.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/initialization-blacklist.cc with 100% similarity]
compiler-rt/test/asan/TestCases/initialization-bug.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/initialization-bug.cc with 100% similarity]
compiler-rt/test/asan/TestCases/initialization-constexpr.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/initialization-constexpr.cc with 100% similarity]
compiler-rt/test/asan/TestCases/initialization-nobug.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/initialization-nobug.cc with 100% similarity]
compiler-rt/test/asan/TestCases/inline.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/inline.cc with 100% similarity]
compiler-rt/test/asan/TestCases/interface_test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/interface_test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/invalid-free.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/invalid-free.cc with 100% similarity]
compiler-rt/test/asan/TestCases/ioctl.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/ioctl.cc with 100% similarity]
compiler-rt/test/asan/TestCases/large_allocator_unpoisons_on_free.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/large_allocator_unpoisons_on_free.cc with 100% similarity]
compiler-rt/test/asan/TestCases/large_func_test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/large_func_test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/log-path_test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/log-path_test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/log_path_fork_test.cc.disabled [moved from compiler-rt/lib/asan/lit_tests/TestCases/log_path_fork_test.cc.disabled with 100% similarity]
compiler-rt/test/asan/TestCases/lsan_annotations.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/lsan_annotations.cc with 100% similarity]
compiler-rt/test/asan/TestCases/malloc_context_size.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/malloc_context_size.cc with 100% similarity]
compiler-rt/test/asan/TestCases/malloc_fill.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/malloc_fill.cc with 100% similarity]
compiler-rt/test/asan/TestCases/malloc_hook.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/malloc_hook.cc with 100% similarity]
compiler-rt/test/asan/TestCases/max_redzone.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/max_redzone.cc with 100% similarity]
compiler-rt/test/asan/TestCases/memcmp_strict_test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/memcmp_strict_test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/memcmp_test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/memcmp_test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/no_asan_gen_globals.c [moved from compiler-rt/lib/asan/lit_tests/TestCases/no_asan_gen_globals.c with 100% similarity]
compiler-rt/test/asan/TestCases/null_deref.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/null_deref.cc with 100% similarity]
compiler-rt/test/asan/TestCases/on_error_callback.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/on_error_callback.cc with 100% similarity]
compiler-rt/test/asan/TestCases/partial_right.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/partial_right.cc with 100% similarity]
compiler-rt/test/asan/TestCases/poison_partial.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/poison_partial.cc with 100% similarity]
compiler-rt/test/asan/TestCases/print-stack-trace.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/print-stack-trace.cc with 100% similarity]
compiler-rt/test/asan/TestCases/print_summary.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/print_summary.cc with 100% similarity]
compiler-rt/test/asan/TestCases/printf-1.c [moved from compiler-rt/lib/asan/lit_tests/TestCases/printf-1.c with 100% similarity]
compiler-rt/test/asan/TestCases/printf-2.c [moved from compiler-rt/lib/asan/lit_tests/TestCases/printf-2.c with 100% similarity]
compiler-rt/test/asan/TestCases/printf-3.c [moved from compiler-rt/lib/asan/lit_tests/TestCases/printf-3.c with 100% similarity]
compiler-rt/test/asan/TestCases/printf-4.c [moved from compiler-rt/lib/asan/lit_tests/TestCases/printf-4.c with 100% similarity]
compiler-rt/test/asan/TestCases/printf-5.c [moved from compiler-rt/lib/asan/lit_tests/TestCases/printf-5.c with 100% similarity]
compiler-rt/test/asan/TestCases/readv.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/readv.cc with 100% similarity]
compiler-rt/test/asan/TestCases/sanity_check_pure_c.c [moved from compiler-rt/lib/asan/lit_tests/TestCases/sanity_check_pure_c.c with 100% similarity]
compiler-rt/test/asan/TestCases/shared-lib-test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/shared-lib-test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/sleep_before_dying.c [moved from compiler-rt/lib/asan/lit_tests/TestCases/sleep_before_dying.c with 100% similarity]
compiler-rt/test/asan/TestCases/stack-buffer-overflow-with-position.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/stack-buffer-overflow-with-position.cc with 100% similarity]
compiler-rt/test/asan/TestCases/stack-frame-demangle.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/stack-frame-demangle.cc with 100% similarity]
compiler-rt/test/asan/TestCases/stack-oob-frames.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/stack-oob-frames.cc with 100% similarity]
compiler-rt/test/asan/TestCases/stack-overflow.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/stack-overflow.cc with 100% similarity]
compiler-rt/test/asan/TestCases/stack-use-after-return.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/stack-use-after-return.cc with 100% similarity]
compiler-rt/test/asan/TestCases/start-deactivated.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/start-deactivated.cc with 100% similarity]
compiler-rt/test/asan/TestCases/strdup_oob_test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/strdup_oob_test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/strerror_r_test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/strerror_r_test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/strip_path_prefix.c [moved from compiler-rt/lib/asan/lit_tests/TestCases/strip_path_prefix.c with 100% similarity]
compiler-rt/test/asan/TestCases/strncpy-overflow.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/strncpy-overflow.cc with 100% similarity]
compiler-rt/test/asan/TestCases/throw_call_test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/throw_call_test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/throw_catch.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/throw_catch.cc with 100% similarity]
compiler-rt/test/asan/TestCases/throw_invoke_test.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/throw_invoke_test.cc with 100% similarity]
compiler-rt/test/asan/TestCases/time_interceptor.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/time_interceptor.cc with 100% similarity]
compiler-rt/test/asan/TestCases/uar_and_exceptions.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/uar_and_exceptions.cc with 100% similarity]
compiler-rt/test/asan/TestCases/unaligned_loads_and_stores.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/unaligned_loads_and_stores.cc with 100% similarity]
compiler-rt/test/asan/TestCases/use-after-free-right.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/use-after-free-right.cc with 100% similarity]
compiler-rt/test/asan/TestCases/use-after-free.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/use-after-free.cc with 100% similarity]
compiler-rt/test/asan/TestCases/use-after-poison.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/use-after-poison.cc with 100% similarity]
compiler-rt/test/asan/TestCases/use-after-scope-dtor-order.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/use-after-scope-dtor-order.cc with 100% similarity]
compiler-rt/test/asan/TestCases/use-after-scope-inlined.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/use-after-scope-inlined.cc with 100% similarity]
compiler-rt/test/asan/TestCases/use-after-scope-nobug.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/use-after-scope-nobug.cc with 100% similarity]
compiler-rt/test/asan/TestCases/use-after-scope-temp.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/use-after-scope-temp.cc with 100% similarity]
compiler-rt/test/asan/TestCases/use-after-scope.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/use-after-scope.cc with 100% similarity]
compiler-rt/test/asan/TestCases/wait.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/wait.cc with 100% similarity]
compiler-rt/test/asan/TestCases/waitid.cc [moved from compiler-rt/lib/asan/lit_tests/TestCases/waitid.cc with 100% similarity]
compiler-rt/test/asan/Unit/lit.site.cfg.in [moved from compiler-rt/lib/asan/lit_tests/Unit/lit.site.cfg.in with 86% similarity]
compiler-rt/test/asan/android_commands/android_common.py [moved from compiler-rt/lib/asan/lit_tests/android_commands/android_common.py with 100% similarity]
compiler-rt/test/asan/android_commands/android_compile.py [moved from compiler-rt/lib/asan/lit_tests/android_commands/android_compile.py with 100% similarity]
compiler-rt/test/asan/android_commands/android_run.py [moved from compiler-rt/lib/asan/lit_tests/android_commands/android_run.py with 100% similarity]
compiler-rt/test/asan/lit.cfg [moved from compiler-rt/lib/asan/lit_tests/lit.cfg with 64% similarity]

index 3bbcf0a..b13c93f 100644 (file)
@@ -231,6 +231,7 @@ endif()
 # support only subset of these (e.g. TSan works on x86_64 only).
 filter_available_targets(SANITIZER_COMMON_SUPPORTED_ARCH
   x86_64 i386 powerpc64 arm)
+filter_available_targets(ASAN_SUPPORTED_ARCH x86_64 i386 powerpc64)
 filter_available_targets(DFSAN_SUPPORTED_ARCH x86_64)
 filter_available_targets(LSAN_SUPPORTED_ARCH x86_64)
 filter_available_targets(MSAN_SUPPORTED_ARCH x86_64)
@@ -259,6 +260,6 @@ endif()
 add_subdirectory(lib)
 
 if(LLVM_INCLUDE_TESTS)
-  add_subdirectory(test)
   add_subdirectory(unittests)
 endif()
+add_subdirectory(test)
index 52eb8ef..6b19407 100644 (file)
@@ -46,10 +46,6 @@ if(ANDROID)
     ASAN_LOW_MEMORY=1)
 endif()
 
-# Architectures supported by ASan.
-filter_available_targets(ASAN_SUPPORTED_ARCH
-  x86_64 i386 powerpc64)
-
 # Compile ASan sources into an object library.
 if(APPLE)
   foreach(os ${SANITIZER_COMMON_SUPPORTED_DARWIN_OS})
@@ -145,5 +141,3 @@ add_custom_target(asan_runtime_libraries
 if(LLVM_INCLUDE_TESTS)
   add_subdirectory(tests)
 endif()
-
-add_subdirectory(lit_tests)
diff --git a/compiler-rt/lib/asan/lit_tests/CMakeLists.txt b/compiler-rt/lib/asan/lit_tests/CMakeLists.txt
deleted file mode 100644 (file)
index 223052a..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-set(ASAN_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/..)
-set(ASAN_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/..)
-
-if(COMPILER_RT_CAN_EXECUTE_TESTS)
-  set(ASAN_TESTSUITES)
-
-  if(CAN_TARGET_arm_android)
-    # This is only true if we are cross-compiling.
-    # Build all tests with host compiler and use host tools.
-    set(ASAN_TEST_TARGET_CC ${CMAKE_C_COMPILER})
-    get_filename_component(ASAN_TEST_LLVM_TOOLS_DIR ${CMAKE_C_COMPILER} PATH)
-    set(ASAN_TEST_CONFIG_SUFFIX "-arm-android")
-    set(ASAN_TEST_BITS "32")
-    get_target_flags_for_arch(arm_android ASAN_TEST_TARGET_CFLAGS)
-    configure_lit_site_cfg(
-      ${CMAKE_CURRENT_SOURCE_DIR}/GenericConfig/lit.site.cfg.in
-      ${CMAKE_CURRENT_BINARY_DIR}/ARMAndroidConfig/lit.site.cfg
-      )
-    list(APPEND ASAN_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/ARMAndroidConfig)
-  endif()
-  
-  if(CAN_TARGET_x86_64 OR CAN_TARGET_powerpc64)
-    set(ASAN_TEST_CONFIG_SUFFIX "64")
-    set(ASAN_TEST_BITS "64")
-    set(ASAN_TEST_TARGET_CFLAGS ${TARGET_64_BIT_CFLAGS})
-    configure_lit_site_cfg(
-      ${CMAKE_CURRENT_SOURCE_DIR}/GenericConfig/lit.site.cfg.in
-      ${CMAKE_CURRENT_BINARY_DIR}/64bitConfig/lit.site.cfg
-      )
-    list(APPEND ASAN_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/64bitConfig)
-  endif()
-  
-  if(CAN_TARGET_i386)
-    set(ASAN_TEST_CONFIG_SUFFIX "32")
-    set(ASAN_TEST_BITS "32")
-    set(ASAN_TEST_TARGET_CFLAGS ${TARGET_32_BIT_CFLAGS})
-    configure_lit_site_cfg(
-      ${CMAKE_CURRENT_SOURCE_DIR}/GenericConfig/lit.site.cfg.in
-      ${CMAKE_CURRENT_BINARY_DIR}/32bitConfig/lit.site.cfg
-      )
-    list(APPEND ASAN_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/32bitConfig)
-  endif()
-  
-  configure_lit_site_cfg(
-    ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.in
-    ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg
-    )
-  
-  # Run ASan tests only if we're sure we may produce working binaries.
-  set(ASAN_TEST_DEPS
-    ${SANITIZER_COMMON_LIT_TEST_DEPS}
-    asan_runtime_libraries)
-  set(ASAN_TEST_PARAMS
-    asan_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg)
-  # FIXME: support unit test in the android test runner
-  if(LLVM_INCLUDE_TESTS AND NOT CAN_TARGET_arm_android)
-    list(APPEND ASAN_TEST_DEPS AsanUnitTests)
-    list(APPEND ASAN_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/Unit)
-  endif()
-  add_lit_testsuite(check-asan "Running the AddressSanitizer tests"
-    ${ASAN_TESTSUITES}
-    PARAMS ${ASAN_TEST_PARAMS}
-    DEPENDS ${ASAN_TEST_DEPS})
-  set_target_properties(check-asan PROPERTIES FOLDER "ASan tests")
-endif()
index 4b8401e..590c2d3 100644 (file)
@@ -9,6 +9,9 @@ configure_lit_site_cfg(
 # Run sanitizer tests only if we're sure that clang would produce
 # working binaries.
 if(COMPILER_RT_CAN_EXECUTE_TESTS)
+  if(ASAN_SUPPORTED_ARCH)
+    add_subdirectory(asan)
+  endif()
   if(DFSAN_SUPPORTED_ARCH)
     add_subdirectory(dfsan)
   endif()
diff --git a/compiler-rt/test/asan/CMakeLists.txt b/compiler-rt/test/asan/CMakeLists.txt
new file mode 100644 (file)
index 0000000..c47d048
--- /dev/null
@@ -0,0 +1,64 @@
+set(ASAN_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
+
+set(ASAN_TESTSUITES)
+
+if(CAN_TARGET_arm_android)
+  # This is only true if we are cross-compiling.
+  # Build all tests with host compiler and use host tools.
+  set(ASAN_TEST_TARGET_CC ${CMAKE_C_COMPILER})
+  get_filename_component(ASAN_TEST_LLVM_TOOLS_DIR ${CMAKE_C_COMPILER} PATH)
+  set(ASAN_TEST_CONFIG_SUFFIX "-arm-android")
+  set(ASAN_TEST_BITS "32")
+  get_target_flags_for_arch(arm_android ASAN_TEST_TARGET_CFLAGS)
+  configure_lit_site_cfg(
+    ${CMAKE_CURRENT_SOURCE_DIR}/GenericConfig/lit.site.cfg.in
+    ${CMAKE_CURRENT_BINARY_DIR}/ARMAndroidConfig/lit.site.cfg
+    )
+  list(APPEND ASAN_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/ARMAndroidConfig)
+endif()
+
+if(CAN_TARGET_x86_64 OR CAN_TARGET_powerpc64)
+  set(ASAN_TEST_CONFIG_SUFFIX "64")
+  set(ASAN_TEST_BITS "64")
+  set(ASAN_TEST_TARGET_CFLAGS ${TARGET_64_BIT_CFLAGS})
+  configure_lit_site_cfg(
+    ${CMAKE_CURRENT_SOURCE_DIR}/GenericConfig/lit.site.cfg.in
+    ${CMAKE_CURRENT_BINARY_DIR}/64bitConfig/lit.site.cfg
+    )
+  list(APPEND ASAN_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/64bitConfig)
+endif()
+
+if(CAN_TARGET_i386)
+  set(ASAN_TEST_CONFIG_SUFFIX "32")
+  set(ASAN_TEST_BITS "32")
+  set(ASAN_TEST_TARGET_CFLAGS ${TARGET_32_BIT_CFLAGS})
+  configure_lit_site_cfg(
+    ${CMAKE_CURRENT_SOURCE_DIR}/GenericConfig/lit.site.cfg.in
+    ${CMAKE_CURRENT_BINARY_DIR}/32bitConfig/lit.site.cfg
+    )
+  list(APPEND ASAN_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/32bitConfig)
+endif()
+
+if(LLVM_INCLUDE_TESTS)
+configure_lit_site_cfg(
+  ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.in
+  ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg
+  )
+endif()
+
+# Run ASan tests only if we're sure we may produce working binaries.
+set(ASAN_TEST_DEPS
+  ${SANITIZER_COMMON_LIT_TEST_DEPS}
+  asan_runtime_libraries)
+set(ASAN_TEST_PARAMS
+  asan_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg)
+# FIXME: support unit test in the android test runner
+if(LLVM_INCLUDE_TESTS AND NOT CAN_TARGET_arm_android)
+  list(APPEND ASAN_TEST_DEPS AsanUnitTests)
+  list(APPEND ASAN_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/Unit)
+endif()
+add_lit_testsuite(check-asan "Running the AddressSanitizer tests"
+  ${ASAN_TESTSUITES}
+  PARAMS ${ASAN_TEST_PARAMS}
+  DEPENDS ${ASAN_TEST_DEPS})
+set_target_properties(check-asan PROPERTIES FOLDER "ASan tests")
@@ -3,7 +3,7 @@
 
 # Tool-specific config options.
 config.name_suffix = "@ASAN_TEST_CONFIG_SUFFIX@"
-config.asan_source_dir = "@ASAN_SOURCE_DIR@"
+config.asan_lit_source_dir = "@ASAN_LIT_SOURCE_DIR@"
 config.target_cflags = "@ASAN_TEST_TARGET_CFLAGS@"
 config.clang = "@ASAN_TEST_TARGET_CC@"
 config.llvm_tools_dir = "@ASAN_TEST_LLVM_TOOLS_DIR@"
@@ -14,4 +14,4 @@ config.android = "@CAN_TARGET_arm_android@"
 lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured")
 
 # Load tool-specific config that would do the real work.
-lit_config.load_config(config, "@ASAN_SOURCE_DIR@/lit_tests/lit.cfg")
+lit_config.load_config(config, "@ASAN_LIT_SOURCE_DIR@/lit.cfg")
@@ -15,7 +15,7 @@
 // RUN:   | grep -v "__asan_default_options" \
 // RUN:   | grep -v "__asan_on_error" > %t.symbols
 
-// RUN: cat %p/../../../asan_interface_internal.h \
+// RUN: cat %p/../../../../lib/asan/asan_interface_internal.h \
 // RUN:    | sed "s/\/\/.*//" | sed "s/typedef.*//" \
 // RUN:    | grep -v "OPTIONAL" \
 // RUN:    | grep "__asan_.*(" | sed "s/.* __asan_/__asan_/;s/(.*//" \
@@ -8,7 +8,7 @@
 // RUN:    | grep -v "__asan_default_options" \
 // RUN:    | grep -v "__asan_stack_" \
 // RUN:    | grep -v "__asan_on_error" > %t.symbols
-// RUN: cat %p/../../../asan_interface_internal.h \
+// RUN: cat %p/../../../../lib/asan/asan_interface_internal.h \
 // RUN:    | sed "s/\/\/.*//" | sed "s/typedef.*//" \
 // RUN:    | grep -v "OPTIONAL" \
 // RUN:    | grep "__asan_.*(" | sed "s/.* __asan_/__asan_/;s/(.*//" \
@@ -9,7 +9,8 @@ config.name = 'AddressSanitizer-Unit'
 
 # Setup test source and exec root. For unit tests, we define
 # it as build directory with ASan unit tests.
-config.test_exec_root = "@ASAN_BINARY_DIR@/tests"
+# FIXME: De-hardcode this path.
+config.test_exec_root = "@COMPILER_RT_BINARY_DIR@/lib/asan/tests"
 config.test_source_root = config.test_exec_root
 
 # Enable leak detection in ASan unit tests on x86_64-linux.
similarity index 64%
rename from compiler-rt/lib/asan/lit_tests/lit.cfg
rename to compiler-rt/test/asan/lit.cfg
index de18cd6..4fa796b 100644 (file)
@@ -2,8 +2,6 @@
 
 import os
 
-import lit.util
-
 def get_required_attr(config, attr_name):
   attr_value = getattr(config, attr_name, None)
   if not attr_value:
@@ -19,38 +17,6 @@ config.name = 'AddressSanitizer' + config.name_suffix
 # Setup source root.
 config.test_source_root = os.path.dirname(__file__)
 
-def DisplayNoConfigMessage():
-  lit_config.fatal("No site specific configuration available! " +
-                   "Try running your test from the build tree or running " +
-                   "make check-asan")
-
-# Figure out LLVM source root.
-llvm_src_root = getattr(config, 'llvm_src_root', None)
-if llvm_src_root is None:
-  # We probably haven't loaded the site-specific configuration: the user
-  # is likely trying to run a test file directly, and the site configuration
-  # wasn't created by the build system.
-  asan_site_cfg = lit_config.params.get('asan_site_config', None)
-  if (asan_site_cfg) and (os.path.exists(asan_site_cfg)):
-    lit_config.load_config(config, asan_site_cfg)
-    raise SystemExit
-
-  # Try to guess the location of site-specific configuration using llvm-config
-  # util that can point where the build tree is.
-  llvm_config = lit.util.which("llvm-config", config.environment["PATH"])
-  if not llvm_config:
-    DisplayNoConfigMessage()
-
-  # Find out the presumed location of generated site config.
-  llvm_obj_root = lit.util.capture(["llvm-config", "--obj-root"]).strip()
-  asan_site_cfg = os.path.join(llvm_obj_root, "projects", "compiler-rt",
-                               "lib", "asan", "lit_tests", "lit.site.cfg")
-  if (not asan_site_cfg) or (not os.path.exists(asan_site_cfg)):
-    DisplayNoConfigMessage()
-
-  lit_config.load_config(config, asan_site_cfg)
-  raise SystemExit
-
 # Setup default compiler flags used with -fsanitize=address option.
 # FIXME: Review the set of required flags and check if it can be reduced.
 target_cflags = " " + config.target_cflags
@@ -62,9 +28,10 @@ clang_asan_cflags = (" -fsanitize=address"
                    + target_cflags)
 clang_asan_cxxflags = " --driver-mode=g++" + clang_asan_cflags
 
+asan_lit_source_dir = get_required_attr(config, "asan_lit_source_dir")
 if config.android == "TRUE":
   config.available_features.add('android')
-  clang_wrapper = os.path.join(config.asan_source_dir, "lit_tests",
+  clang_wrapper = os.path.join(asan_lit_source_dir,
                                "android_commands", "android_compile.py") + " "
 else:
   clang_wrapper = ""
@@ -79,8 +46,10 @@ config.substitutions.append( ("%clangxx_asan ", (" " + clang_wrapper + config.cl
                                                 clang_asan_cxxflags + " ")) )
 
 
+# FIXME: De-hardcode this path.
+asan_source_dir = os.path.join(
+  get_required_attr(config, "compiler_rt_src_root"), "lib", "asan")
 # Setup path to asan_symbolize.py script.
-asan_source_dir = get_required_attr(config, "asan_source_dir")
 asan_symbolize = os.path.join(asan_source_dir, "scripts", "asan_symbolize.py")
 if not os.path.exists(asan_symbolize):
   lit_config.fatal("Can't find script on path %r" % asan_symbolize)