mesa-drm/tests/amdgpu
Luben Tuikov 7fdebb02ff tests/amdgpu: Proper format for "-l"
Proper format for command line option "-l",
listing the supported and unsupported tests:

1) Add an aligned column header.

2) Align all fields into columns.

3) Fixed length fields, come before the last
column, which is a variable length field.

4) Variable length field, which is the name of the
test, goes in the last column.

5) If a suite is disabled, do not iterate over its
tests, as they'd naturally be all disabled.

Now the output looks like this:
$sudo ./amdgpu_test -l
 What: ID:   Status: Name
Suite:  1:  ENABLED: Basic Tests
 Test:  1:  ENABLED: Query Info Test
 Test:  2:  ENABLED: Userptr Test
 Test:  3: DISABLED: bo eviction Test
 Test:  4:  ENABLED: Command submission Test (GFX)
 Test:  5:  ENABLED: Command submission Test (Compute)
 Test:  6:  ENABLED: Command submission Test (Multi-Fence)
 Test:  7:  ENABLED: Command submission Test (SDMA)
 Test:  8:  ENABLED: SW semaphore Test
 Test:  9: DISABLED: Sync dependency Test
 Test: 10: DISABLED: Dispatch Test (Compute)
 Test: 11: DISABLED: Dispatch Test (GFX)
 Test: 12: DISABLED: Draw Test
 Test: 13: DISABLED: GPU reset Test
Suite:  2:  ENABLED: BO Tests
 Test:  1:  ENABLED: Export/Import
 Test:  2: DISABLED: Metadata
 Test:  3:  ENABLED: CPU map/unmap
 Test:  4:  ENABLED: Memory alloc Test
 Test:  5:  ENABLED: Memory fail alloc Test
 Test:  6:  ENABLED: Find bo by CPU mapping
Suite:  3: DISABLED: CS Tests
Suite:  4: DISABLED: VCE Tests
Suite:  5:  ENABLED: VCN Tests
 Test:  1:  ENABLED: VCN DEC create
 Test:  2:  ENABLED: VCN DEC decode
 Test:  3:  ENABLED: VCN DEC destroy
 Test:  4:  ENABLED: VCN ENC create
 Test:  5:  ENABLED: VCN ENC decode
 Test:  6:  ENABLED: VCN ENC destroy
Suite:  6: DISABLED: UVD ENC Tests
Suite:  7: DISABLED: Deadlock Tests
Suite:  8:  ENABLED: VM Tests
 Test:  1:  ENABLED: resere vmid test
 Test:  2:  ENABLED: unaligned map
 Test:  3:  ENABLED: vm mapping test
Suite:  9: DISABLED: RAS Tests
Suite: 10:  ENABLED: SYNCOBJ TIMELINE Tests
 Test:  1:  ENABLED: syncobj timeline test
$_

Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
2020-01-07 14:38:36 -05:00
..
.editorconfig amdgpu: Symlink .editorconfig to tests/amdgpu 2018-01-18 10:12:37 +01:00
amdgpu_test.c tests/amdgpu: Proper format for "-l" 2020-01-07 14:38:36 -05:00
amdgpu_test.h tests/amdgpu: add gfx ring bad slow draw test 2019-12-09 15:46:53 -05:00
basic_tests.c tests/amdgpu: Fix various warnings 2020-01-07 14:38:36 -05:00
bo_tests.c test/amdgpu: don't free unused bo handle 2019-10-15 13:18:12 +02:00
cs_tests.c tests/amdgpu: Fix various warnings 2020-01-07 14:38:36 -05:00
deadlock_tests.c tests/amdgpu: add gfx ring bad slow draw test 2019-12-09 15:46:53 -05:00
decode_messages.h tests/amdgpu: implement vcn dec unit tests 2017-06-05 10:41:13 -04:00
frame.h tests/amdgpu: add uvd encode unit tests 2017-08-16 16:16:50 -04:00
meson.build amdgpu: remove json package dependence 2019-09-16 07:57:10 -05:00
ras_tests.c tests/amdgpu: Fix buffer overflow (v3) 2020-01-07 14:38:36 -05:00
syncobj_tests.c tests/amdgpu: Fix various warnings 2020-01-07 14:38:36 -05:00
uvd_enc_tests.c meson,configure: include config.h automatically 2018-03-20 18:19:26 +00:00
uve_ib.h tests/amdgpu: fix uvd enc data corruption issue 2017-10-06 09:40:06 -04:00
vce_ib.h tests/amdgpu: add vce mv tests support and sets 2018-04-06 09:35:14 -04:00
vce_tests.c amdgpu/tests: drop unused local vars 2019-04-17 18:18:10 +01:00
vcn_tests.c tests/amdgpu/vcn: add VCN2.0 decode support 2019-06-21 12:46:21 -04:00
vm_tests.c amdgpu: add VM test to exercise max/min address space 2018-12-05 14:41:17 +01:00