]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
fixed the regression scripts so that we can run them one after another with one command
authorvijay_ganesh <vijay_ganesh@e59a4935-1847-0410-ae03-e826735625c1>
Tue, 22 Sep 2009 16:46:44 +0000 (16:46 +0000)
committervijay_ganesh <vijay_ganesh@e59a4935-1847-0410-ae03-e826735625c1>
Tue, 22 Sep 2009 16:46:44 +0000 (16:46 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@248 e59a4935-1847-0410-ae03-e826735625c1

scripts/run_bigarray_tests.pl
scripts/run_cvc_tests.pl
scripts/run_stp_tests.pl

index 4656ac89d93b32587f6477fcc03175f0fe8c4b64..9e814862d494140f6ebb1ef355f45878d4db435f 100755 (executable)
@@ -91,61 +91,6 @@ my @stpOptions = ();
 # State is either "own" or "stp", meaning that we're reading either
 # our own or stp's options.
 my $argState = "own";
-# for(my $i=0; $i <= $#ARGV; $i++) {
-#     if($argState eq "own") {
-#      if($ARGV[$i] eq "--") { $argState = "stp"; }
-#      elsif($ARGV[$i] eq "-h") { print($usageString, "\n"); exit 0; }
-#      elsif($ARGV[$i] eq "+rt") { $options{'rt'} = 1; }
-#      elsif($ARGV[$i] eq "-rt") { $options{'rt'} = 0; }
-#      elsif($ARGV[$i] eq "+proofs") { $options{'proofs'} = 1; }
-#      elsif($ARGV[$i] eq "-proofs") { $options{'proofs'} = 0; }
-#      elsif($ARGV[$i] eq "-v") { $options{'verbose'} = 1; }
-#      elsif($ARGV[$i] eq "-q") { $options{'verbose'} = 0; }
-#      elsif($ARGV[$i] eq "-lang") {
-#          if(++$i>$#ARGV) {
-#              print STDERR "Option -lang requires an argument.\n";
-#              print STDERR "Run run_tests -h for help\n";
-#              exit 1;
-#          }
-#          $options{'lang'} = $ARGV[$i];
-#      } elsif($ARGV[$i] eq "-l") {
-#          if(++$i>$#ARGV) {
-#              print STDERR "Option -l requires an argument.\n";
-#              print STDERR "Run run_tests -h for help\n";
-#              exit 1;
-#          }
-#          $options{'level'} = $ARGV[$i];
-#      } elsif($ARGV[$i] eq "-t") {
-#          if(++$i>$#ARGV) {
-#              print STDERR "Option -t requires an argument.\n";
-#              print STDERR "Run run_tests -h for help\n";
-#              exit 1;
-#          }
-#          $options{'time'} = $ARGV[$i];
-#      } elsif($ARGV[$i] eq "-vc") {
-#          if(++$i>$#ARGV) {
-#              print STDERR "Option -vc requires an argument.\n";
-#              print STDERR "Run run_tests -h for help\n";
-#              exit 1;
-#          }
-#          $options{'vc'} = $ARGV[$i];
-#      } elsif($ARGV[$i] eq "-pfc") {
-#          if(++$i>$#ARGV) {
-#              print STDERR "Option -pfc requires an argument.\n";
-#              print STDERR "Run run_tests -h for help\n";
-#              exit 1;
-#          }
-#          $options{'pfc'} = $ARGV[$i];
-#      } else {
-#          # This must be a testcase name
-#          push @testcases, $ARGV[$i];
-#      }
-#     } elsif($argState eq "stp") {
-#      push @stpOptions, $ARGV[$i];
-#     } else {
-#      die "BUG: Bad argState: $argState";
-#     }
-# }
 
 if($#stpOptions >= 0) {
     $options{'stpOptions'} = join(" ", map { "\"" . $_ . "\"" } @stpOptions);
@@ -534,4 +479,4 @@ if($testsProblems > 0 && $verbose) {
 # Delete temporary dir if there is one
 system("/bin/rm -rf $tmpdir");
 
-exit ($testsProblems > 0 ? 2 : 0);
+#exit ($testsProblems > 0 ? 2 : 0);
index e4769ebc7c383c99c922c67d5055b2f987d7f871..b5dea9bde138992befc82c933100d333b01fcf04 100755 (executable)
@@ -91,61 +91,6 @@ my @stpOptions = ();
 # State is either "own" or "stp", meaning that we're reading either
 # our own or stp's options.
 my $argState = "own";
-# for(my $i=0; $i <= $#ARGV; $i++) {
-#     if($argState eq "own") {
-#      if($ARGV[$i] eq "--") { $argState = "stp"; }
-#      elsif($ARGV[$i] eq "-h") { print($usageString, "\n"); exit 0; }
-#      elsif($ARGV[$i] eq "+rt") { $options{'rt'} = 1; }
-#      elsif($ARGV[$i] eq "-rt") { $options{'rt'} = 0; }
-#      elsif($ARGV[$i] eq "+proofs") { $options{'proofs'} = 1; }
-#      elsif($ARGV[$i] eq "-proofs") { $options{'proofs'} = 0; }
-#      elsif($ARGV[$i] eq "-v") { $options{'verbose'} = 1; }
-#      elsif($ARGV[$i] eq "-q") { $options{'verbose'} = 0; }
-#      elsif($ARGV[$i] eq "-lang") {
-#          if(++$i>$#ARGV) {
-#              print STDERR "Option -lang requires an argument.\n";
-#              print STDERR "Run run_tests -h for help\n";
-#              exit 1;
-#          }
-#          $options{'lang'} = $ARGV[$i];
-#      } elsif($ARGV[$i] eq "-l") {
-#          if(++$i>$#ARGV) {
-#              print STDERR "Option -l requires an argument.\n";
-#              print STDERR "Run run_tests -h for help\n";
-#              exit 1;
-#          }
-#          $options{'level'} = $ARGV[$i];
-#      } elsif($ARGV[$i] eq "-t") {
-#          if(++$i>$#ARGV) {
-#              print STDERR "Option -t requires an argument.\n";
-#              print STDERR "Run run_tests -h for help\n";
-#              exit 1;
-#          }
-#          $options{'time'} = $ARGV[$i];
-#      } elsif($ARGV[$i] eq "-vc") {
-#          if(++$i>$#ARGV) {
-#              print STDERR "Option -vc requires an argument.\n";
-#              print STDERR "Run run_tests -h for help\n";
-#              exit 1;
-#          }
-#          $options{'vc'} = $ARGV[$i];
-#      } elsif($ARGV[$i] eq "-pfc") {
-#          if(++$i>$#ARGV) {
-#              print STDERR "Option -pfc requires an argument.\n";
-#              print STDERR "Run run_tests -h for help\n";
-#              exit 1;
-#          }
-#          $options{'pfc'} = $ARGV[$i];
-#      } else {
-#          # This must be a testcase name
-#          push @testcases, $ARGV[$i];
-#      }
-#     } elsif($argState eq "stp") {
-#      push @stpOptions, $ARGV[$i];
-#     } else {
-#      die "BUG: Bad argState: $argState";
-#     }
-# }
 
 if($#stpOptions >= 0) {
     $options{'stpOptions'} = join(" ", map { "\"" . $_ . "\"" } @stpOptions);
@@ -534,4 +479,5 @@ if($testsProblems > 0 && $verbose) {
 # Delete temporary dir if there is one
 system("/bin/rm -rf $tmpdir");
 
-exit ($testsProblems > 0 ? 2 : 0);
+#exit ($testsProblems > 0 ? 2 : 0);
+
index 4aed013c1981947cbce73fd6b85267c38ed851fc..c7d8fd5cd4c788e261603ec50811b65c536b8f18 100755 (executable)
@@ -76,7 +76,7 @@ my %optionsDefault = ("level" => 4,
                      # when looking for info comments
                      "maxInfoLines" => 4,
                      # Runtime limit; 0 = no limit
-                     "time" => 180,
+                     "time" => 60,
                      # Additional command line options to stp
                      "stpOptions" => "-d");
 
@@ -91,61 +91,6 @@ my @stpOptions = ();
 # State is either "own" or "stp", meaning that we're reading either
 # our own or stp's options.
 my $argState = "own";
-# for(my $i=0; $i <= $#ARGV; $i++) {
-#     if($argState eq "own") {
-#      if($ARGV[$i] eq "--") { $argState = "stp"; }
-#      elsif($ARGV[$i] eq "-h") { print($usageString, "\n"); exit 0; }
-#      elsif($ARGV[$i] eq "+rt") { $options{'rt'} = 1; }
-#      elsif($ARGV[$i] eq "-rt") { $options{'rt'} = 0; }
-#      elsif($ARGV[$i] eq "+proofs") { $options{'proofs'} = 1; }
-#      elsif($ARGV[$i] eq "-proofs") { $options{'proofs'} = 0; }
-#      elsif($ARGV[$i] eq "-v") { $options{'verbose'} = 1; }
-#      elsif($ARGV[$i] eq "-q") { $options{'verbose'} = 0; }
-#      elsif($ARGV[$i] eq "-lang") {
-#          if(++$i>$#ARGV) {
-#              print STDERR "Option -lang requires an argument.\n";
-#              print STDERR "Run run_tests -h for help\n";
-#              exit 1;
-#          }
-#          $options{'lang'} = $ARGV[$i];
-#      } elsif($ARGV[$i] eq "-l") {
-#          if(++$i>$#ARGV) {
-#              print STDERR "Option -l requires an argument.\n";
-#              print STDERR "Run run_tests -h for help\n";
-#              exit 1;
-#          }
-#          $options{'level'} = $ARGV[$i];
-#      } elsif($ARGV[$i] eq "-t") {
-#          if(++$i>$#ARGV) {
-#              print STDERR "Option -t requires an argument.\n";
-#              print STDERR "Run run_tests -h for help\n";
-#              exit 1;
-#          }
-#          $options{'time'} = $ARGV[$i];
-#      } elsif($ARGV[$i] eq "-vc") {
-#          if(++$i>$#ARGV) {
-#              print STDERR "Option -vc requires an argument.\n";
-#              print STDERR "Run run_tests -h for help\n";
-#              exit 1;
-#          }
-#          $options{'vc'} = $ARGV[$i];
-#      } elsif($ARGV[$i] eq "-pfc") {
-#          if(++$i>$#ARGV) {
-#              print STDERR "Option -pfc requires an argument.\n";
-#              print STDERR "Run run_tests -h for help\n";
-#              exit 1;
-#          }
-#          $options{'pfc'} = $ARGV[$i];
-#      } else {
-#          # This must be a testcase name
-#          push @testcases, $ARGV[$i];
-#      }
-#     } elsif($argState eq "stp") {
-#      push @stpOptions, $ARGV[$i];
-#     } else {
-#      die "BUG: Bad argState: $argState";
-#     }
-# }
 
 if($#stpOptions >= 0) {
     $options{'stpOptions'} = join(" ", map { "\"" . $_ . "\"" } @stpOptions);
@@ -534,4 +479,4 @@ if($testsProblems > 0 && $verbose) {
 # Delete temporary dir if there is one
 system("/bin/rm -rf $tmpdir");
 
-exit ($testsProblems > 0 ? 2 : 0);
+#exit ($testsProblems > 0 ? 2 : 0);