1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
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',
'amazon-fire-tv-48',
'apple-xdr-dp',
'ayaneo-wxga',
'cta-timings',
'cta-timings',
'cta-vfpdb',
'custom-uncommon-cta-vesa',
'cvt',
'dell-2408wfp-dp',
'goldstar-37lg5000',
'goldstar-e2441',
'goldstar-ite6604-hdmi',
'hisense-55u8k',
'hitachi-55r6+',
'hp-5dq99aa-hdmi',
'jdi-lpm135m467-edp',
'lenovo-t27p10',
'msi-mag321curv-dp',
'panasonic-mei96a2-dp',
'philips-4k-2023',
'philips-ftv-2017',
'philips-ftv-490',
'qemu',
'samsung-odyssey-g60sd',
'samsung-q800t-hdmi2.0',
'samsung-qn900b-8k',
'samsung-s27a950d-dp',
'sun-gh19ps-dvi',
'tcl-smart-tv-5655',
'viewsonic-vp2768-dp',
'vizio-d40fj09',
]
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
subproject('v4l-utils', required: false)
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
|