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

Subversion Repositories theia_gpu

[/] [theia_gpu/] [branches/] [beta_2.0/] [scripts/] [run_regressions.pl] - Diff between revs 223 and 229

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

Rev 223 Rev 229
Line 9... Line 9...
 
 
 
 
my $RegressionsDirectory                        = "../regressions/single_core/";
my $RegressionsDirectory                        = "../regressions/single_core/";
my $CompilerDir                                         = "../compiler/bin/";
my $CompilerDir                                         = "../compiler/bin/";
my $SimulatonResultFile                         = "test_result.log";
my $SimulatonResultFile                         = "test_result.log";
my $TestConfig                                          = undef;
 
my $Option_Quiet                                        = 1;
my $Option_Quiet                                        = 1;
#Set the debug option from the command line
my $TestConfig;
$Option_Quiet = 0 if (defined $ARGV[0] and $ARGV[0] == "-debug");
 
 
 
#Check to see if the necessary bash scripts are present and have
 
#the proper execution permissions
 
die "-E- '$CompilerDir/theia_compile' does not exists or does not have execute permissions\n"   if (not -e "$CompilerDir/theia_compile"         or not -x "$CompilerDir/theia_compile");
 
die "-E- '$CompilerDir/theia_vp_compile' does not exists or does not have execute permissions\n"        if (not -e "$CompilerDir/theia_vp_compile"      or not -x "$CompilerDir/theia_vp_compile");
 
die "-E- '$CompilerDir/theia_cp_compile' does not exists or does not have execute permissions\n"        if (not -e "$CompilerDir/theia_cp_compile"      or not -x "$CompilerDir/theia_cp_compile");
 
 
 
#Set the enviroment variable THEIA_PROJECT_FOLDER
#Set the enviroment variable THEIA_PROJECT_FOLDER
#this variable is used by the compiler wrapper bash
 
#scripts under $CompilerDir
 
my $tmp = `pwd`;
my $tmp = `pwd`;
chomp $tmp;
chomp $tmp;
$tmp .= "/../";
$tmp .= "/../";
$ENV{'THEIA_PROJECT_FOLDER'} = $tmp;
$ENV{'THEIA_PROJECT_FOLDER'} = $tmp;
print "THEIA_PROJECT_FOLDER = $ENV{'THEIA_PROJECT_FOLDER'}\n" if ($Option_Quiet == 0);
 
 
 
 
 
#find all the *.vp files
#find all the *.vp files
 
 
my @Tests =  <$RegressionsDirectory/*.vp>;
my @Tests =  <$RegressionsDirectory/*.vp>;
for my $Test (@Tests)
for my $Test (@Tests)
{
{
        print sprintf("Running test %-60s  ",$Test);
        print sprintf("Running test %-60s  ",$Test);
        #Compile the test
        #Compile the test
        print "\nCommand: $CompilerDir/theia_compile $Test\n" if ($Option_Quiet == 0);
        my $CompilationOutput = `$CompilerDir/theia_compile $Test`;
        my $CompilationOutput = `source $CompilerDir/theia_compile $Test`;
 
        if ($CompilationOutput =~ /ERROR/)
        if ($CompilationOutput =~ /ERROR/)
        {
        {
                print $CompilationOutput;
                print $CompilationOutput;
                print "ERROR: theia_compile failed!\n";
                print "ERROR: theia_compile failed!\n";
                `rm *.mem`;
                `rm *.mem`;

powered by: WebSVN 2.1.0

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