Changeset 1220

Show
Ignore:
Timestamp:
08/16/08 16:00:07 (4 months ago)
Author:
mbr
Message:

added --test-system-fwknop to the test suite so that the installed version of fwknop can be tested

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fwknop/trunk/test/fwknop_test.pl

    r1215 r1220  
    102102my $fwknop_conf_file    = '/etc/fwknop/fwknop.conf'; 
    103103my $cache_encrypted_spa_packet = ''; 
     104my $test_system_installed_fwknop = 0; 
    104105my $spa_packet_digest  = ''; 
    105106my $successful_tests   = 0; 
     
    174175    'test-include=s'    => \$test_include, 
    175176    'test-exclude=s'    => \$test_exclude, 
     177    'test-system-fwknop' => \$test_system_installed_fwknop, 
    176178    'help'              => \$help 
    177179); 
     
    29752977    } 
    29762978 
     2979    if ($test_system_installed_fwknop) { 
     2980        $fwknopCmd  = '/usr/bin/fwknop'; 
     2981        $fwknopdCmd = '/usr/sbin/fwknopd'; 
     2982        $knoptmCmd  = '/usr/sbin/knoptm'; 
     2983    } 
     2984 
    29772985    for my $prog ($fwknopCmd, $fwknopdCmd, $knoptmCmd) { 
    29782986        die "[*] $prog does not exist" unless -e $prog;