[igt-dev] [PATCH i-g-t v3 1/2] amdgpu/basic: move amdgpu_query_info_test to its own file

Martin Peres martin.peres at mupuf.org
Wed Feb 17 11:43:31 UTC 2021


On 17/02/2021 09:37, Petri Latvala wrote:
> On Tue, Feb 16, 2021 at 10:25:56PM +0200, Martin Peres wrote:
>> This will soon be followed by more amd_query_info tests, and the basic
>> file is already big-enough.
>>
>> v2:
>>   - add test and subtest descriptions (Arek)
>>   - add the new file to autotools (Petri)
>>
>> Cc: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
>> Signed-off-by: Martin Peres <martin.peres at mupuf.org>
>> ---
>>   tests/Makefile.sources   |  1 +
>>   tests/amdgpu/amd_basic.c | 17 ---------
>>   tests/amdgpu/amd_info.c  | 74 ++++++++++++++++++++++++++++++++++++++++
>>   tests/amdgpu/meson.build |  1 +
>>   4 files changed, 76 insertions(+), 17 deletions(-)
>>   create mode 100644 tests/amdgpu/amd_info.c
> 
> Fails to link with autotools:
> 
> https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/7354371
> 
> /usr/bin/ld: amdgpu/amd_info.o: in function `query_firmware_version_test':
> /builds/gfx-ci/igt-ci-tags/tests/amdgpu/amd_info.c:39: undefined reference to `amdgpu_query_gpu_info'
> /usr/bin/ld: /builds/gfx-ci/igt-ci-tags/tests/amdgpu/amd_info.c:42: undefined reference to `amdgpu_query_firmware_version'
> /usr/bin/ld: amdgpu/amd_info.o: in function `query_timestamp_test':
> /builds/gfx-ci/igt-ci-tags/tests/amdgpu/amd_info.c:58: undefined reference to `amdgpu_query_gpu_info'
> /usr/bin/ld: /builds/gfx-ci/igt-ci-tags/tests/amdgpu/amd_info.c:72: undefined reference to `amdgpu_query_info'
> /usr/bin/ld: /builds/gfx-ci/igt-ci-tags/tests/amdgpu/amd_info.c:77: undefined reference to `amdgpu_query_info'
> /usr/bin/ld: amdgpu/amd_info.o: in function `__real_main118':
> /builds/gfx-ci/igt-ci-tags/tests/amdgpu/amd_info.c:150: undefined reference to `amdgpu_device_deinitialize'
> /usr/bin/ld: /builds/gfx-ci/igt-ci-tags/tests/amdgpu/amd_info.c:128: undefined reference to `amdgpu_device_initialize'
> collect2: error: ld returned 1 exit status
> make[3]: *** [Makefile:3204: amdgpu/amd_info] Error 1
> make[3]: Leaving directory '/builds/gfx-ci/igt-ci-tags/tests'
> make[2]: *** [Makefile:5190: all-recursive] Error 1
> make[2]: Leaving directory '/builds/gfx-ci/igt-ci-tags/tests'
> make[1]: *** [Makefile:515: all-recursive] Error 1
> make[1]: Leaving directory '/builds/gfx-ci/igt-ci-tags'
> make: *** [Makefile:447: all] Error 2
> 
> 

RRRrrr, I tried to make this work without being to compile it, as 
autoconf 2.71 broke backwards compatibility, and simple fixes would not 
make it work.

However, Petri suggested I fork the project in gitlab, and let the 
pipelines to prove it works at least on Debian. I am glad to report this 
is now done, and we are ready for v4...

Let's hope it will work. Thanks for the feedback!

Martin


More information about the igt-dev mailing list