Skip to content

Commit

Permalink
added test for --test mode in the fwknop client
Browse files Browse the repository at this point in the history
  • Loading branch information
mrash committed Nov 23, 2011
1 parent 0015da4 commit 644b9e9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test-fwknop.pl
Expand Up @@ -329,6 +329,17 @@
'exec_err' => $YES, 'exec_err' => $YES,
'fatal' => $NO 'fatal' => $NO
}, },
{
'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', 'category' => 'preliminaries',
'subcategory' => 'client', 'subcategory' => 'client',
Expand Down Expand Up @@ -358,6 +369,7 @@
'exec_err' => $YES, 'exec_err' => $YES,
'fatal' => $NO 'fatal' => $NO
}, },

{ {
'category' => 'preliminaries', 'category' => 'preliminaries',
'subcategory' => 'server', 'subcategory' => 'server',
Expand Down

0 comments on commit 644b9e9

Please sign in to comment.