equal
deleted
inserted
replaced
12 my $mirabelle_home = $ENV{'MIRABELLE_HOME'}; |
12 my $mirabelle_home = $ENV{'MIRABELLE_HOME'}; |
13 my $mirabelle_logic = $ENV{'MIRABELLE_LOGIC'}; |
13 my $mirabelle_logic = $ENV{'MIRABELLE_LOGIC'}; |
14 my $mirabelle_theory = $ENV{'MIRABELLE_THEORY'}; |
14 my $mirabelle_theory = $ENV{'MIRABELLE_THEORY'}; |
15 my $output_path = $ENV{'MIRABELLE_OUTPUT_PATH'}; |
15 my $output_path = $ENV{'MIRABELLE_OUTPUT_PATH'}; |
16 my $timeout = $ENV{'MIRABELLE_TIMEOUT'}; |
16 my $timeout = $ENV{'MIRABELLE_TIMEOUT'}; |
|
17 my $be_quiet = $ENV{'MIRABELLE_QUIET'}; |
|
18 my $actions = $ENV{'MIRABELLE_ACTIONS'}; |
17 |
19 |
18 my $mirabelle_thy = $mirabelle_home . "/Mirabelle"; |
20 my $mirabelle_thy = $mirabelle_home . "/Mirabelle"; |
19 |
21 |
20 |
22 |
21 # arguments |
23 # arguments |
22 |
24 |
23 my $actions = $ARGV[0]; |
25 my $thy_file = $ARGV[0]; |
24 |
|
25 my $thy_file = $ARGV[1]; |
|
26 my $start_line = "0"; |
26 my $start_line = "0"; |
27 my $end_line = "~1"; |
27 my $end_line = "~1"; |
28 if ($thy_file =~ /^(.*)\[([0-9]+)\:(~?[0-9]+)\]$/) { |
28 if ($thy_file =~ /^(.*)\[([0-9]+)\:(~?[0-9]+)\]$/) { |
29 $thy_file = $1; |
29 $thy_file = $1; |
30 $start_line = $2; |
30 $start_line = $2; |
120 foreach $name (@action_names) { |
120 foreach $name (@action_names) { |
121 print LOG_FILE " $name\n"; |
121 print LOG_FILE " $name\n"; |
122 } |
122 } |
123 close(LOG_FILE); |
123 close(LOG_FILE); |
124 |
124 |
|
125 my $quiet = ""; |
|
126 if (defined $be_quiet and $be_quiet ne "") { |
|
127 $quiet = " > /dev/null 2>&1"; |
|
128 } |
|
129 |
|
130 print "Mirabelle: $thy_file\n" if ($quiet ne ""); |
|
131 |
125 my $result = system "\"$ENV{'ISABELLE_PROCESS'}\" " . |
132 my $result = system "\"$ENV{'ISABELLE_PROCESS'}\" " . |
126 "-e 'use \"$root_file\";' -q $mirabelle_logic" . "\n"; |
133 "-e 'use \"$root_file\";' -q $mirabelle_logic" . $quiet; |
127 |
134 |
128 |
135 print "Finished: $thy_file\n" if ($quiet ne ""); |
129 # produce report |
|
130 |
|
131 if ($result == 0) { |
|
132 system "perl -w \"$mirabelle_home/lib/scripts/report.pl\" \"$log_file\""; |
|
133 } |
|
134 |
136 |
135 |
137 |
136 # cleanup |
138 # cleanup |
137 |
139 |
138 unlink $root_file; |
140 unlink $root_file; |