1
0
mirror of https://github.com/simh/simh.git synced 2026-05-02 22:22:48 +00:00

SCP: Add support for optional device unit tests

Some simulators and/or devices may want to provide specific testing
activities outside of full simulator execution which often will require
external, potentially complicated setup.
This commit is contained in:
Mark Pizzolato
2022-05-12 13:14:01 -07:00
parent 9da8f3ca52
commit 8628baf18b
3 changed files with 61 additions and 2 deletions

View File

@@ -522,6 +522,8 @@ struct DEVICE {
const char *(*description)(DEVICE *dptr); /* Device Description */
BRKTYPTAB *brk_types; /* Breakpoint types */
void *type_ctx; /* Device Type/Library Context */
t_stat (*unit_test)(DEVICE *dptr, const char *cptr);
/* Device Unit Test Routine */
};
/* Device flags */