• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2016 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15'''Module that contains the test DWARF language attribute test.'''
16
17from __future__ import absolute_import
18
19from harness.test_base_remote import TestBaseRemote
20
21
22class TestDWARFLang(TestBaseRemote):
23    '''Tests the DWARF language attribute is present in RenderScript kernels.'''
24
25    bundle_target = {
26        'java': 'JavaDebugWaitAttach',
27        'jni': 'JNIDebugWaitAttach',
28        'cpp': 'CppDebugWaitAttach'
29    }
30
31    def test_renderscript_kernel_frame_dwarf_language(self):
32        self.try_command('language renderscript status', [])
33        self.try_command('b simple_kernel', [])
34        self.try_command('process continue', [])
35
36        self.assert_lang_renderscript()
37