OpenCores
URL https://opencores.org/ocsvn/socgen/socgen/trunk

Subversion Repositories socgen

[/] [socgen/] [trunk/] [tools/] [simulation/] [build_coverage] - Diff between revs 126 and 127

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 126 Rev 127
Line 93... Line 93...
 
 
 
 
 
 
my $home        =  cwd();
my $home        =  cwd();
my $prefix      = "${work_site}/${vendor}__${project}";
my $prefix      = "${work_site}/${vendor}__${project}";
my $library_path ;
my $sim_library_path ;
 
 
 
 
 
 
print "      Building Code Coverage and linting for  $work_site  $vendor $project    $component $version  \n" ;
print "      Building Code Coverage and linting for  $work_site  $vendor $project    $component $version  \n" ;
 
 
 
 
my $parser = XML::LibXML->new();
my $parser = XML::LibXML->new();
 
 
my $sogen_file     = $parser->parse_file(yp::lib::find_socgen("socgen:componentConfiguration",$vendor,$project,$component));
my $sogen_file     = $parser->parse_file(yp::lib::find_socgen("socgen:componentConfiguration",$vendor,$project,$component));
 
 
$library_path = $sogen_file->findnodes("//socgen:componentConfiguration/socgen:sim/socgen:library_path/text()")->to_literal;
$sim_library_path = $sogen_file->findnodes("//socgen:componentConfiguration/socgen:sim/socgen:library_path/text()")->to_literal;
 
 
 
 
 
 
 
 
 
 
Line 129... Line 129...
 
 
  foreach  my   $i_name ($sogen_file->findnodes("//socgen:testbench[socgen:variant/text() = '$variant']/socgen:code_coverage"))
  foreach  my   $i_name ($sogen_file->findnodes("//socgen:testbench[socgen:variant/text() = '$variant']/socgen:code_coverage"))
     {
     {
     print "          Code coverage directories  for    $project - $component  . ${version}.     -  $variant \n";
     print "          Code coverage directories  for    $project - $component  . ${version}.     -  $variant \n";
 
 
     my $path  = "${home}${work_site}/${vendor}__${project}${library_path}/cov";
     my $path  = "${home}${work_site}/${vendor}__${project}${sim_library_path}/cov";
     mkdir $path,0755             unless( -e $path );
     mkdir $path,0755             unless( -e $path );
     my $path  = "${home}${work_site}/${vendor}__${project}${library_path}/cov/${variant}";
     my $path  = "${home}${work_site}/${vendor}__${project}${sim_library_path}/cov/${variant}";
     mkdir $path,0755             unless( -e $path );
     mkdir $path,0755             unless( -e $path );
     my $outfile ="${home}${work_site}/${vendor}__${project}${library_path}/cov/${variant}/Makefile";
     my $outfile ="${home}${work_site}/${vendor}__${project}${sim_library_path}/cov/${variant}/Makefile";
     open MAKCOVFILE,">$outfile" or die "unable to open $outfile";
     open MAKCOVFILE,">$outfile" or die "unable to open $outfile";
 
 
     print MAKCOVFILE "SHELL=/bin/sh \n";
     print MAKCOVFILE "SHELL=/bin/sh \n";
     print MAKCOVFILE "MAKE=make \n";
     print MAKCOVFILE "MAKE=make \n";
     print MAKCOVFILE " \n";
     print MAKCOVFILE " \n";

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.