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

Petri Latvala petri.latvala at intel.com
Wed Feb 17 07:37:57 UTC 2021


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


-- 
Petri Latvala


More information about the igt-dev mailing list