diff options
author | Evgenii Stepanov <eugenis@google.com> | 2021-01-06 16:03:15 -0800 |
---|---|---|
committer | Evgenii Stepanov <eugenis@google.com> | 2021-01-13 17:18:42 -0800 |
commit | 51741fb38ef27b94245f5f37f798e3f7a05ce01b (patch) | |
tree | 73228166301eeb4d236636cdff45f4accf0d8bbf /tests/libs/Android.bp | |
parent | b4fd07297606de111c10d0f9a000fdb1e2280387 (diff) | |
download | bionic-51741fb38ef27b94245f5f37f798e3f7a05ce01b.tar.gz |
Tests for memory tagging ELF notes.
Bug: b/135772972
Test: bionic-unit-tests
Change-Id: I9b151291d86ef10731eb97db6e68534d5372e06c
Diffstat (limited to 'tests/libs/Android.bp')
-rw-r--r-- | tests/libs/Android.bp | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/tests/libs/Android.bp b/tests/libs/Android.bp index 4b86faf7a..385d1209e 100644 --- a/tests/libs/Android.bp +++ b/tests/libs/Android.bp @@ -1579,3 +1579,85 @@ cc_test_library { defaults: ["bionic_testlib_defaults"], srcs: ["relocations.cpp"], } + +cc_defaults { + name: "bionic_targets_only", + enabled: false, + target: { + android: { + enabled: true, + }, + linux_bionic: { + enabled: true, + }, + }, +} + +cc_test { + name: "heap_tagging_sync_helper", + defaults: ["bionic_testlib_defaults", "bionic_targets_only"], + srcs: ["heap_tagging_helper.cpp"], + sanitize: { + memtag_heap: true, + diag: { + memtag_heap: true, + }, + }, +} + +cc_test { + name: "heap_tagging_async_helper", + defaults: ["bionic_testlib_defaults", "bionic_targets_only"], + srcs: ["heap_tagging_helper.cpp"], + sanitize: { + memtag_heap: true, + diag: { + memtag_heap: false, + }, + }, +} + +cc_test { + name: "heap_tagging_disabled_helper", + defaults: ["bionic_testlib_defaults", "bionic_targets_only"], + srcs: ["heap_tagging_helper.cpp"], + sanitize: { + memtag_heap: false, + }, +} + +cc_test { + name: "heap_tagging_static_sync_helper", + defaults: ["bionic_testlib_defaults", "bionic_targets_only"], + srcs: ["heap_tagging_helper.cpp"], + static_executable: true, + sanitize: { + memtag_heap: true, + diag: { + memtag_heap: true, + }, + }, +} + +cc_test { + name: "heap_tagging_static_async_helper", + defaults: ["bionic_testlib_defaults", "bionic_targets_only"], + srcs: ["heap_tagging_helper.cpp"], + static_executable: true, + sanitize: { + memtag_heap: true, + diag: { + memtag_heap: false, + }, + }, +} + +cc_test { + name: "heap_tagging_static_disabled_helper", + defaults: ["bionic_testlib_defaults", "bionic_targets_only"], + srcs: ["heap_tagging_helper.cpp"], + static_executable: true, + sanitize: { + memtag_heap: false, + }, +} |