summaryrefslogtreecommitdiff
path: root/simpleperf/scripts/test/cpp_app_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'simpleperf/scripts/test/cpp_app_test.py')
-rw-r--r--simpleperf/scripts/test/cpp_app_test.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/simpleperf/scripts/test/cpp_app_test.py b/simpleperf/scripts/test/cpp_app_test.py
index 86667d39..0939cce8 100644
--- a/simpleperf/scripts/test/cpp_app_test.py
+++ b/simpleperf/scripts/test/cpp_app_test.py
@@ -15,6 +15,7 @@
# limitations under the License.
import os
+import unittest
from simpleperf_utils import remove
from . app_test import TestExampleBase
@@ -75,6 +76,21 @@ class TestExampleCpp(TestExampleBase):
'--add_disassembly', '--binary_filter', "libnative-lib.so"])
+class TestExampleCppProfileableApk(TestExampleCpp):
+ """ Test profiling a profileable released apk."""
+ @classmethod
+ def setUpClass(cls):
+ if TestHelper.android_version >= 10:
+ cls.prepare("SimpleperfExampleCpp",
+ "simpleperf.example.cpp",
+ ".MainActivity", apk_name='app-release.apk')
+
+ def setUp(self):
+ if TestHelper().android_version < 10:
+ raise unittest.SkipTest("Profileable apk isn't supported on Android < Q.")
+ super().setUp()
+
+
class TestExampleCppRoot(TestExampleBase):
@classmethod
def setUpClass(cls):