Basic testing framework.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | TEST_LINE_LEN | = | 72 | |
integer, | public, | parameter | :: | TEST_NAME_LEN | = | 32 | |
integer, | public, | parameter | :: | TEST_STATE_UNKNOWN | = | 0 | |
integer, | public, | parameter | :: | TEST_STATE_RUNNING | = | 1 | |
integer, | public, | parameter | :: | TEST_STATE_PASSED | = | 2 | |
integer, | public, | parameter | :: | TEST_STATE_FAILED | = | 3 | |
logical, | public, | parameter | :: | TEST_PASSED | = | .true. | |
logical, | public, | parameter | :: | TEST_FAILED | = | .false. |
Generic dummy type generator.
Generates dummy beat data type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(beat_type), | intent(out) | :: | beat |
Beat type. |
Generates dummy log data type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(log_type), | intent(out) | :: | log |
Log type. |
||
character(len=*), | intent(in), | optional | :: | timestamp |
Log timestamp (ISO 8601). |
Generates dummy sensor node data type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(node_type), | intent(out) | :: | node |
Node type. |
||
character(len=*), | intent(in), | optional | :: | id |
Node id. |
|
character(len=*), | intent(in), | optional | :: | name |
Node name. |
Generates dummy observation data type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(observ_type), | intent(out) | :: | observ |
Observation type. |
||
character(len=*), | intent(in), | optional | :: | id |
Observation id. |
|
character(len=*), | intent(in), | optional | :: | node_id |
Node id. |
|
character(len=*), | intent(in), | optional | :: | sensor_id |
Sensor id. |
|
character(len=*), | intent(in), | optional | :: | target_id |
Target id. |
|
character(len=*), | intent(in), | optional | :: | name |
Observation name. |
|
character(len=*), | intent(in), | optional | :: | timestamp |
Observation and request timestamp (ISO 8601). |
|
integer, | intent(in), | optional | :: | nrequests |
Number of requests. |
|
real(kind=r8), | intent(in), | optional | :: | response_value |
Response value. |
Generates dummy request data type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(request_type), | intent(out) | :: | request |
Request type. |
||
character(len=*), | intent(in), | optional | :: | name |
Request name. |
|
character(len=*), | intent(in), | optional | :: | timestamp |
Request timestamp (ISO 8601). |
|
integer, | intent(in), | optional | :: | nresponses |
Number of responses. |
|
character(len=*), | intent(in), | optional | :: | response_name |
Response name. |
|
real(kind=r8), | intent(in), | optional | :: | response_value |
Response value. |
Generates dummy sensor data type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(sensor_type), | intent(out) | :: | sensor |
Sensor type. |
||
character(len=*), | intent(in), | optional | :: | node_id |
Node id. |
|
character(len=*), | intent(in), | optional | :: | id |
Sensor id. |
|
character(len=*), | intent(in), | optional | :: | name |
Sensor name. |
Generates dummy target data type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(target_type), | intent(out) | :: | target |
Target type. |
||
character(len=*), | intent(in), | optional | :: | id |
Target id. |
|
character(len=*), | intent(in), | optional | :: | name |
Target name. |
Logical test function that either returns TEST_PASSED
or
TEST_FAILED
.
Test type.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=TEST_NAME_LEN), | public | :: | name | = | 'N/A' |
Test name. |
|
procedure(dm_test_callback), | public, | pointer, nopass | :: | proc | => | null() |
Test procedure. |
Returns .true.
and outputs a debug message if environment variable
of name env_var
is set to 1.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | env_var |
Name of the environment variable. |
Generates dummy beat data type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(beat_type), | intent(out) | :: | beat |
Beat type. |
Generates dummy log data type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(log_type), | intent(out) | :: | log |
Log type. |
||
character(len=*), | intent(in), | optional | :: | timestamp |
Log timestamp (ISO 8601). |
Generates dummy sensor node data type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(node_type), | intent(out) | :: | node |
Node type. |
||
character(len=*), | intent(in), | optional | :: | id |
Node id. |
|
character(len=*), | intent(in), | optional | :: | name |
Node name. |
Generates dummy observation data type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(observ_type), | intent(out) | :: | observ |
Observation type. |
||
character(len=*), | intent(in), | optional | :: | id |
Observation id. |
|
character(len=*), | intent(in), | optional | :: | node_id |
Node id. |
|
character(len=*), | intent(in), | optional | :: | sensor_id |
Sensor id. |
|
character(len=*), | intent(in), | optional | :: | target_id |
Target id. |
|
character(len=*), | intent(in), | optional | :: | name |
Observation name. |
|
character(len=*), | intent(in), | optional | :: | timestamp |
Observation and request timestamp (ISO 8601). |
|
integer, | intent(in), | optional | :: | nrequests |
Number of requests. |
|
real(kind=r8), | intent(in), | optional | :: | response_value |
Response value. |
Generates dummy request data type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(request_type), | intent(out) | :: | request |
Request type. |
||
character(len=*), | intent(in), | optional | :: | name |
Request name. |
|
character(len=*), | intent(in), | optional | :: | timestamp |
Request timestamp (ISO 8601). |
|
integer, | intent(in), | optional | :: | nresponses |
Number of responses. |
|
character(len=*), | intent(in), | optional | :: | response_name |
Response name. |
|
real(kind=r8), | intent(in), | optional | :: | response_value |
Response value. |
Generates dummy sensor data type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(sensor_type), | intent(out) | :: | sensor |
Sensor type. |
||
character(len=*), | intent(in), | optional | :: | node_id |
Node id. |
|
character(len=*), | intent(in), | optional | :: | id |
Sensor id. |
|
character(len=*), | intent(in), | optional | :: | name |
Sensor name. |
Generates dummy target data type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(target_type), | intent(out) | :: | target |
Target type. |
||
character(len=*), | intent(in), | optional | :: | id |
Target id. |
|
character(len=*), | intent(in), | optional | :: | name |
Target name. |
Runs all tests in given array tests
, returns test states in array
stats
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name |
Test name. |
||
type(test_type), | intent(inout) | :: | tests(:) |
Test types. |
||
logical, | intent(out) | :: | stats(:) |
|
||
logical, | intent(in), | optional | :: | no_color |