mirror of
https://gitlab.freedesktop.org/emersion/libdisplay-info.git
synced 2024-12-25 21:59:08 +01:00
65dbc3fbbf
This adds coverage for two untested code-paths: - Unset "Serial Number" - "Model year" instead of "Made in" This EDID blob comes from Digital/Panasonic/MEI96A2/7CA47BE65E1E [1] in the linuxhw EDID repository. [1]: https://github.com/linuxhw/EDID/blob/master/Digital/Panasonic/MEI96A2/7CA47BE65E1E Signed-off-by: Simon Ser <contact@emersion.fr>
26 lines
581 B
Meson
26 lines
581 B
Meson
ref_edid_decode = find_program('edid-decode', native: true, required: false)
|
|
if not ref_edid_decode.found()
|
|
test('edid-decode-not-found', find_program('false'))
|
|
subdir_done()
|
|
endif
|
|
|
|
test_harness = find_program('./edid-decode-check.sh', native: true)
|
|
|
|
test_cases = [
|
|
'dell-2408wfp-dp',
|
|
'hp-5dq99aa-hdmi',
|
|
'panasonic-mei96a2-dp',
|
|
]
|
|
|
|
foreach tc : test_cases
|
|
test(
|
|
tc,
|
|
test_harness,
|
|
args: [files('data/' + tc)],
|
|
env: [
|
|
'REF_EDID_DECODE=' + ref_edid_decode.full_path(),
|
|
'DI_EDID_DECODE=' + di_edid_decode.full_path(),
|
|
],
|
|
depends: [di_edid_decode],
|
|
)
|
|
endforeach
|