mirror of
https://gitlab.freedesktop.org/emersion/libdisplay-info.git
synced 2024-12-26 21:59:15 +01:00
a53f18446d
Contains a HDMI Forum vendor-specific data block. Signed-off-by: Simon Ser <contact@emersion.fr>
74 lines
1.5 KiB
Meson
74 lines
1.5 KiB
Meson
test_harness = find_program('./edid-decode-check.sh', native: true)
|
|
|
|
di_edid_print = executable(
|
|
'di-edid-print',
|
|
'di-edid-print.c',
|
|
dependencies: di_dep,
|
|
install: false,
|
|
)
|
|
|
|
print_harness = find_program('./edid-print-check.sh', native: true)
|
|
|
|
test_cases = [
|
|
'acer-p1276',
|
|
'apple-xdr-dp',
|
|
'ayaneo-wxga',
|
|
'custom-uncommon-cta-vesa',
|
|
'dell-2408wfp-dp',
|
|
'dell-g3223q',
|
|
'goldstar-e2441',
|
|
'goldstar-ite6604-hdmi',
|
|
'hp-5dq99aa-hdmi',
|
|
'msi-mag321curv-dp',
|
|
'panasonic-mei96a2-dp',
|
|
'qemu',
|
|
'samsung-s27a950d-dp',
|
|
'sun-gh19ps-dvi',
|
|
'viewsonic-vp2768-dp',
|
|
'cvt',
|
|
'philips-ftv-490',
|
|
'samsung-q800t-hdmi2.0',
|
|
'cta-timings',
|
|
'hitachi-55r6+',
|
|
]
|
|
|
|
test_env = [
|
|
'DI_EDID_DECODE=' + di_edid_decode.full_path(),
|
|
'DI_EDID_PRINT=' + di_edid_print.full_path(),
|
|
]
|
|
|
|
foreach tc : test_cases
|
|
test(
|
|
'decode-' + tc,
|
|
test_harness,
|
|
args: [files('data/' + tc + '.edid')],
|
|
env: test_env,
|
|
depends: [di_edid_decode],
|
|
)
|
|
test(
|
|
'print-' + tc,
|
|
print_harness,
|
|
args: [files('data/' + tc + '.edid')],
|
|
env: test_env,
|
|
depends: [di_edid_print],
|
|
)
|
|
endforeach
|
|
|
|
test_gen = find_program('./edid-decode-diff.sh', native: true)
|
|
|
|
gen_targets = []
|
|
foreach tc : test_cases
|
|
gen_targets += files('data/' + tc + '.edid')
|
|
endforeach
|
|
|
|
ref_edid_decode = find_program('edid-decode', native: true, required: false)
|
|
if ref_edid_decode.found()
|
|
test_env += 'REF_EDID_DECODE=' + ref_edid_decode.full_path()
|
|
|
|
run_target(
|
|
'gen-test-data',
|
|
command: [test_gen] + gen_targets,
|
|
depends: [di_edid_decode, di_edid_print],
|
|
env: test_env,
|
|
)
|
|
endif
|