Changeset 621

Show
Ignore:
Timestamp:
07/12/07 15:40:52 (1 year ago)
Author:
kindlund
Message:

integration testing

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • honeyclient/branches/exp/jpuchalski-active_content/bin/FlashTest.pl

    r614 r621  
    2929  print "\t$_\n"; 
    3030} 
     31 
     32use Data::Dumper; 
     33$Data::Dumper::Terse = 0; 
     34$Data::Dumper::Indent = 1; 
     35print Dumper(\%urls) . "\n"; 
  • honeyclient/branches/exp/jpuchalski-active_content/lib/HoneyClient/Agent/Driver/ActiveContent/Flash.pm

    r611 r621  
    9090use HoneyClient::Util::Config qw(getVar); 
    9191use Log::Log4perl qw(:easy); 
    92 use Filesys::CygwinPaths qw(:all); 
    9392 
    9493# Include the Global Configuration Processing Library 
     
    196195sub extract { 
    197196  my %args = @_; 
    198   my $filename
     197  my $filename = $args{'file'}->filename
    199198   
    200199  # Chop any trailing slash off the base URL 
     
    202201  $base_url =~ s/\/$//; 
    203202 
    204   # Call flasm in OS-dependent way and capture the output in an array. 
    205   if ($^O =~ m/linux/i) { 
    206     $filename = $args{'file'}->filename; 
    207   }  
    208203  # Must encode all backslashes with double backslashes, since  
    209204  # backtick commands don't like single backslashes. 
    210   elsif ($^O =~ m/win/i || $ENV{'OS'} =~ m/win/i) { 
    211     my $filename = (fullwin32path($args{'file'}->filename) =~ s/\\/\\\\/g); 
     205  if ($^O =~ m/win/i || $ENV{'OS'} =~ m/win/i) { 
     206    require Filesys::CygwinPaths; 
     207    $filename = Filesys::CygwinPaths::fullwin32path($filename); 
     208    $filename =~ s/\\/\\\\/g; 
    212209  } 
    213210 
     
    298295          $instr =~ s/^\s+//; 
    299296          ($var, $val) = split(/, /, $instr); 
     297          $val =~ s/\s+$//; 
    300298          $LOG->debug("Value of the URL is $val"); 
    301299          $val =~ s/'//g;