Permalink
Browse files

added test for --test mode in the fwknop client

  • Loading branch information...
1 parent 0015da4 commit 644b9e943214ed6ede762af72f395b73ea03faf0 @mrash committed Nov 23, 2011
Showing with 12 additions and 0 deletions.
  1. +12 −0 test/test-fwknop.pl
View
@@ -332,6 +332,17 @@
{
'category' => 'preliminaries',
'subcategory' => 'client',
+ 'detail' => '--test mode, packet not sent',
+ 'err_msg' => '--test mode, packet sent?',
+ 'function' => \&generic_exec,
+ 'positive_output_matches' => [qr/test\smode\senabled/],
+ 'cmdline' => "$default_client_args --test",
+ 'fatal' => $NO
+ },
+
+ {
+ 'category' => 'preliminaries',
+ 'subcategory' => 'client',
'detail' => 'expected code version',
'err_msg' => 'code version mis-match',
'function' => \&expected_code_version,
@@ -358,6 +369,7 @@
'exec_err' => $YES,
'fatal' => $NO
},
+
{
'category' => 'preliminaries',
'subcategory' => 'server',

0 comments on commit 644b9e9

Please sign in to comment.