From 72ab0bf5d5b046d28004fea523a03ec6c1f50800 Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Sun, 19 May 2013 15:29:20 -0400 Subject: [PATCH] [test suite] added client -f firewall timeout tests --- test/tests/rijndael_hmac.pl | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/test/tests/rijndael_hmac.pl b/test/tests/rijndael_hmac.pl index 9c95ecef..d9617d6a 100644 --- a/test/tests/rijndael_hmac.pl +++ b/test/tests/rijndael_hmac.pl @@ -143,7 +143,31 @@ }, { + 'category' => 'Rijndael+HMAC', + 'subcategory' => 'client+server', + 'detail' => '-f client timeout', + 'function' => \&spa_cycle, + 'cmdline' => "$default_client_hmac_args -f 2", + 'fwknopd_cmdline' => "LD_LIBRARY_PATH=$lib_dir $valgrind_str " . + "$fwknopdCmd -c $cf{'def'} -a $cf{'hmac_access'} " . + "-d $default_digest_file -p $default_pid_file $intf_str", + 'fw_rule_created' => $NEW_RULE_REQUIRED, + 'fw_rule_removed' => $NEW_RULE_REMOVED, + 'key_file' => $cf{'rc_hmac_b64_key'}, + 'fatal' => $NO + }, + { + 'category' => 'Rijndael+HMAC', + 'subcategory' => 'client+server', + 'detail' => '-f -1 client timeout err', + 'function' => \&generic_exec, + 'cmdline' => qq|$default_client_hmac_args -f "-2"|, + 'positive_output_matches' => [qr/timeout\smust\sbe\swithin/], + 'exec_err' => $YES, + 'fatal' => $NO + }, + { 'category' => 'Rijndael+HMAC', 'subcategory' => 'client->server compatibility', 'detail' => 'Cygwin Windows 2008',