aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEvan Benn <evanbenn@chromium.org>2022-11-14 16:02:47 +1100
committerAnastasia Klimchuk <aklm@chromium.org>2022-12-05 04:50:42 +0000
commit62ec7b7156e1b35da66f54f6d493b38a9e78f94c (patch)
tree6d4a90a16cb60170b8bef7c5708b444cf9c4edf6 /include
parent8274c6321ae2ff29bc9eb0de9dc32d289d3c2cc5 (diff)
downloadflashrom-62ec7b7156e1b35da66f54f6d493b38a9e78f94c.tar.gz
flashrom-62ec7b7156e1b35da66f54f6d493b38a9e78f94c.tar.bz2
flashrom-62ec7b7156e1b35da66f54f6d493b38a9e78f94c.zip
tests: Add selfcheck to unit tests
Add unit tests for programmer_table, flashchips, and board_matches structs. The tests are derived from the selfcheck function, checking that the required fields have been filled in. BUG=b:140595239 BRANCH=None TEST=meson test Change-Id: I41cd014d9bf909296b6c28e3e00548e6883ff41a Signed-off-by: Evan Benn <evanbenn@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/69620 Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/programmer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/programmer.h b/include/programmer.h
index 16448ea4..7bcef023 100644
--- a/include/programmer.h
+++ b/include/programmer.h
@@ -193,6 +193,7 @@ struct board_match {
};
extern const struct board_match board_matches[];
+extern const size_t board_matches_size;
struct board_info {
const char *vendor;