run_regress --perl

#!/usr/bin/perl
print "TESTLIST File Name: @ARGV ";
my $testlist = $ARGV[0];

open(RD_FILE, "$testlist");
@all_cases = <RD_FILE>;


##TODO add your command
my $qsub_cmd = " "
my $run_cmd;
my $case_name;

foreach $case (@all_cases) {
##remove blank line
if(!($case =~ /^[s.*]$/)) {
chomp($case);

##remove seed for case name
$case_name = $case;

if($case_name =~ /(w*)(s*)seed=/){
$case_name = $1;
}

$run_cmd = $qsub_cmd." $case_name"." make test=$case";
print "Run command: $run_cmd ";
system($run_cmd);
}


}

--
原文地址:https://www.cnblogs.com/freeic/p/9205099.html