mirror of
https://gitlab.freedesktop.org/emersion/libdisplay-info.git
synced 2024-12-27 21:59:22 +01:00
f70fa58441
This new test exercises all existing high-level API to make sure the output does not change unexpectedly. Unlike with edid-decode tests, these new print tests do not have an externally defined groundtruth. They are only to detect changes and exercise code paths. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
13 lines
209 B
Bash
Executable file
13 lines
209 B
Bash
Executable file
#!/bin/sh -eu
|
|
|
|
workdir="$(mktemp -d)"
|
|
cleanup() {
|
|
rm -rf "$workdir"
|
|
}
|
|
trap cleanup EXIT
|
|
|
|
edid="$1"
|
|
ref="${edid%.edid}.print"
|
|
"$DI_EDID_PRINT" <"$edid" >"$workdir/printout"
|
|
|
|
diff -u "$ref" "$workdir/printout"
|