diff options
author | sebres <serg.brester@sebres.de> | 2015-07-17 21:05:50 +0200 |
---|---|---|
committer | sebres <serg.brester@sebres.de> | 2015-12-29 12:49:30 +0100 |
commit | cf3cf27fa3c57c6a43448e23faa2b37c553395ee (patch) | |
tree | 8a5e2aef21b14ec7188c6e3caab32c75c4623cfa /bin | |
parent | 6faffe3201ee34d98c36c985a35f2c3810a40aec (diff) | |
download | fail2ban-cf3cf27fa3c57c6a43448e23faa2b37c553395ee.tar.gz |
- filtering of test cases extended for method additionally to class (matches method only not whole class for regexp matched method name);
- new options for "fail2ban-testcases" introduced: "-g" or "--no-gamin" and "-m" or "--memory-db", both are true also if "-f" or "--fast" specified,
for example: `fail2ban-testcases -ngm` will runs faster (because no network, no gamin, memory database)
but will use the same default sleep intervals as in production (in comparison to -nf);
- seekToTime rewritten, accuracy increased by seekToTime, extended for all FileFilter (PyInotify, Gamin also), test cases extended etc.
- common performance optimized and code reviewed;
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/fail2ban-testcases | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/fail2ban-testcases b/bin/fail2ban-testcases index 28af8265..22a44a8b 100755 --- a/bin/fail2ban-testcases +++ b/bin/fail2ban-testcases @@ -58,6 +58,12 @@ def get_opt_parser(): Option('-n', "--no-network", action="store_true", dest="no_network", help="Do not run tests that require the network"), + Option('-g', "--no-gamin", action="store_true", + dest="no_gamin", + help="Do not run tests that require the gamin"), + Option('-m', "--memory-db", action="store_true", + dest="memory_db", + help="Run database tests using memory instead of file"), Option('-f', "--fast", action="store_true", dest="fast", help="Try to increase speed of the tests, decreasing of wait intervals, memory database"), |