[test suite] added client -f firewall timeout tests
authorMichael Rash <mbr@cipherdyne.org>
Sun, 19 May 2013 19:29:20 +0000 (15:29 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Sun, 19 May 2013 19:29:20 +0000 (15:29 -0400)
test/tests/rijndael_hmac.pl

index 9c95ece..d9617d6 100644 (file)
     },
 
     {
+        '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',