VK-GL-CTS icon indicating copy to clipboard operation
VK-GL-CTS copied to clipboard

Does the flag --native-build-type Debug work properly?

Open gmmo opened this issue 2 years ago • 2 comments

I am building the VK-CTS for android using the following command:

python scripts/android/build_apk.py --sdk ~/Android/Sdk --ndk ~/Android/Sdk/ndk/26.1.10909125/ --native-build-type Debug

The reason is that I want to try to debug the code, but when I pass --native-build-type Debug and try to run one of the tests as below:

adb shell "am start -n com.drawelements.deqp/android.app.NativeActivity -e cmdLine 'deqp --deqp-case=dEQP-VK.draw.dynamic_rendering.partial_secondary_cmd_buff.implicit_sample_shading.sample_id_static_use --deqp-log-filename=/sdcard/vk_cts/test.qpa'"

the test.qpa result is corrupted as below. This is the entire result, it gets cut off.

#sessionInfo releaseName vulkan-cts-1.3.7.0-129-g4340e6e70bc62746e7cd03e8d03541e446f4f17f
#sessionInfo releaseId 0x4340e6e7
#sessionInfo targetName "Android"
#sessionInfo commandLineParameters "deqp --deqp-case=dEQP-VK.draw.dynamic_rendering.partial_secondary_cmd_buff.implicit_sample_shading.sample_id_static_use --deqp-log-filename=/sdcard/vk_cts/release.qpa"

#beginSession

#beginTestCaseResult dEQP-VK.draw.dynamic_rendering.partial_secondary_cmd_buff.implicit_sample_shading.sample_id_static_use
<?xml version="1.0" encoding="UTF-8"?>
<TestCaseResult Version="0.3.4" CasePath="dEQP-VK.draw.dynamic_rendering.partial_secondary_cmd_buff.implicit_sample_shading.sample_id_static_use" CaseType="SelfValidate">
 <Section Name="frag" Description="Program: frag

But when I build without the flag:

python scripts/android/build_apk.py --sdk ~/Android/Sdk --ndk ~/Android/Sdk/ndk/26.1.10909125/

the .qpa file looks correct.

Is this expected? How can build the source in debug?

thank you very much for your time. Gustavo.

gmmo avatar Oct 26 '23 21:10 gmmo

Is this expected?

not really

How can build the source in debug?

--native-build-type Debug is the correct way to build the CTS in debug mode

AlexGalazin-IMG avatar Nov 01 '23 17:11 AlexGalazin-IMG

Hi! Since this issue hasn’t had any activity since 2023 and no longer appears to be relevant to current development, I’m closing it for now. If it is still an issue or you have more details to add, please reopen it or open a new one.

lordalcol avatar Nov 28 '25 08:11 lordalcol