From GridLAB-D Wiki
test - Core and module testing
Synopsis
- Core (in core/test.c)
static TESTLIST test_list[] = { // ... {"name", component_test, 0, next_ptr} };
- Component (in core/component.c)
int component_test(void) { // ... return SUCCESS; // or FAILED }
- Module (in module/test.cpp)
EXPORT int module_test (int argc, char *argv[]) { // ... return SUCCESS; // or FAILED }
Description
The user may provide a command option --test to enable the various test routines supported in GridLAB-D. The routines are made available to users by listing the core test routines in the test_list variable and/or exporting the module_test routine from modules the support self-tests.