12 Commits

Author SHA1 Message Date
Sukru Senli
4beb1d5d69 adapt to new ubus socket path 2021-05-11 15:05:26 +02:00
Matija Amidzic
532f490086 Fix nr_tests option to work correctly
Adjust tests to work with the new nr_tests logic.
Run format-check.

Signed-off-by: Matija Amidzic <matija.amidzic@sartura.hr>
2018-06-04 10:13:44 +02:00
Matija Amidzic
297c5945dc Interval option now supports decimal number
Changed the way interval option is parsed. Now there is a guard against
negative and too large values.
Some tests needed to be updated to work with this changes.
Added parser tests for negative value and decimal value.

Signed-off-by: Matija Amidzic <matija.amidzic@sartura.hr>
2018-03-26 16:37:51 +02:00
Matija Amidzic
e74f1684bf Implemented string_regex matching option
imonitor can now use regular expressions (POSIX ERE flavour) to match
the pattern to the test output.
Corresponding tests and readme updates are also included in this commit.

Signed-off-by: Matija Amidzic <matija.amidzic@sartura.hr>
2018-03-26 14:46:52 +02:00
Matija Amidzic
387afe6b4a Improve monitor tests to be more robust
Signed-off-by: Matija Amidzic <matija.amidzic@sartura.hr>
2018-03-23 12:31:24 +01:00
Matija Amidzic
28c28702cc Change internal handling of match options
Reworked how string_match and string_not_match options are handled
internally. Also added beginning of support for regex matching.

Signed-off-by: Matija Amidzic <matija.amidzic@sartura.hr>
2018-03-23 10:19:31 +01:00
Matija Amidzic
844f2937d1 Rearrange #include locations
Signed-off-by: Matija Amidzic <matija.amidzic@sartura.hr>
2018-03-23 10:16:19 +01:00
Matija Amidzic
e3a5d16ad1 Rename a test config file
Signed-off-by: Matija Amidzic <matija.amidzic@sartura.hr>
2018-03-23 09:56:45 +01:00
Hrvoje Varga
3f7f773f5b implement string_not_match
Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>
2018-03-19 14:25:04 +01:00
Hrvoje Varga
2cf5f51f2c test that a process is running after the execute is called
Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>
2018-03-16 10:01:17 +01:00
Hrvoje Varga
4f30881102 format the code using project code style
Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>
2018-03-15 15:40:50 +01:00
Hrvoje Varga
ae88e8ac1f initial implementation
Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>
2018-03-06 08:36:39 +01:00