• Home
  • Raw
  • Download

Lines Matching full:coverage

1 // Test for direct coverage writing with dlopen.
3 // Test normal exit, coverage level 1.
4 // RUN: %clangxx_asan -fsanitize-coverage=func -DSHARED %s -shared -o %T/libcoverage_android_test_1…
5 // RUN: %clangxx_asan -fsanitize-coverage=func -DSO_DIR=\"%device\" %s -o %t
7 // RUN: adb shell rm -rf %device/coverage-android
8 // RUN: rm -rf %T/coverage-android
10 // RUN: adb shell mkdir -p %device/coverage-android/direct
11 // RUN: mkdir -p %T/coverage-android/direct
12 // RUN: %env_asan_opts=coverage=1:coverage_direct=1:coverage_dir=%device/coverage-android/direct:ve…
13 // RUN: adb pull %device/coverage-android/direct %T/coverage-android/direct
15 // RUN: cd %T/coverage-android/direct
20 // Test sudden death, coverage level 1.
21 // RUN: %clangxx_asan -fsanitize-coverage=func -DSHARED -DKILL %s -shared -o %T/libcoverage_android…
22 // RUN: %clangxx_asan -fsanitize-coverage=func -DSO_DIR=\"%device\" %s -o %t
24 // RUN: adb shell rm -rf %device/coverage-android-kill
25 // RUN: rm -rf %T/coverage-android-kill
27 // RUN: adb shell mkdir -p %device/coverage-android-kill/direct
28 // RUN: mkdir -p %T/coverage-android-kill/direct
29 // RUN: %env_asan_opts=coverage=1:coverage_direct=1:coverage_dir=%device/coverage-android-kill/dire…
30 // RUN: adb pull %device/coverage-android-kill/direct %T/coverage-android-kill/direct
32 // RUN: cd %T/coverage-android-kill/direct
37 // Test normal exit, coverage level 2.
38 // RUN: %clangxx_asan -fsanitize-coverage=bb -DSHARED %s -shared -o %T/libcoverage_android_test_1.s…
39 // RUN: %clangxx_asan -fsanitize-coverage=bb -DSO_DIR=\"%device\" %s -o %t
41 // RUN: adb shell rm -rf %device/coverage-android
42 // RUN: rm -rf %T/coverage-android
44 // RUN: adb shell mkdir -p %device/coverage-android/direct
45 // RUN: mkdir -p %T/coverage-android/direct
46 // RUN: %env_asan_opts=coverage=1:coverage_direct=1:coverage_dir=%device/coverage-android/direct:ve…
47 // RUN: adb pull %device/coverage-android/direct %T/coverage-android/direct
49 // RUN: cd %T/coverage-android/direct
54 // Test sudden death, coverage level 2.
55 // RUN: %clangxx_asan -fsanitize-coverage=bb -DSHARED -DKILL %s -shared -o %T/libcoverage_android_t…
56 // RUN: %clangxx_asan -fsanitize-coverage=bb -DSO_DIR=\"%device\" %s -o %t
58 // RUN: adb shell rm -rf %device/coverage-android-kill
59 // RUN: rm -rf %T/coverage-android-kill
61 // RUN: adb shell mkdir -p %device/coverage-android-kill/direct
62 // RUN: mkdir -p %T/coverage-android-kill/direct
63 // RUN: %env_asan_opts=coverage=1:coverage_direct=1:coverage_dir=%device/coverage-android-kill/dire…
64 // RUN: adb pull %device/coverage-android-kill/direct %T/coverage-android-kill/direct
66 // RUN: cd %T/coverage-android-kill/direct
71 // Test normal exit, coverage level 3.
72 // RUN: %clangxx_asan -fsanitize-coverage=edge -DSHARED %s -shared -o %T/libcoverage_android_test_1…
73 // RUN: %clangxx_asan -fsanitize-coverage=edge -DSO_DIR=\"%device\" %s -o %t
75 // RUN: adb shell rm -rf %device/coverage-android
76 // RUN: rm -rf %T/coverage-android
78 // RUN: adb shell mkdir -p %device/coverage-android/direct
79 // RUN: mkdir -p %T/coverage-android/direct
80 // RUN: %env_asan_opts=coverage=1:coverage_direct=1:coverage_dir=%device/coverage-android/direct:ve…
81 // RUN: adb pull %device/coverage-android/direct %T/coverage-android/direct
83 // RUN: cd %T/coverage-android/direct
88 // Test sudden death, coverage level 3.
89 // RUN: %clangxx_asan -fsanitize-coverage=edge -DSHARED -DKILL %s -shared -o %T/libcoverage_android…
90 // RUN: %clangxx_asan -fsanitize-coverage=edge -DSO_DIR=\"%device\" %s -o %t
92 // RUN: adb shell rm -rf %device/coverage-android-kill
93 // RUN: rm -rf %T/coverage-android-kill
95 // RUN: adb shell mkdir -p %device/coverage-android-kill/direct
96 // RUN: mkdir -p %T/coverage-android-kill/direct
97 // RUN: %env_asan_opts=coverage=1:coverage_direct=1:coverage_dir=%device/coverage-android-kill/dire…
98 // RUN: adb pull %device/coverage-android-kill/direct %T/coverage-android-kill/direct
100 // RUN: cd %T/coverage-android-kill/direct