Example:
$ tesh with_mutex_handling.tesh --cfg=model-check/reduction:none
Test suite from stdin
- remove the options from the tesh @ARGV before handling the .tesh
file;
- GetOptions() can't modify the locally-scoped (my) @ARGV, use the
global one instead.
sub get_options {
- # remove the tesh file from the ARGV used
- my @ARGV = @_;
- $tesh_file = pop @ARGV;
-
# temporary arrays for GetOption
my @cfg;
my $log; # ignored
'enable-coverage+' => \$enable_coverage,
);
+ $tesh_file = pop @ARGV;
+
if ($enable_coverage) {
print "Enable coverage\n";
}
return %opt;
}
-my %opts = get_options(@ARGV);
+my %opts = get_options();
##
## File parsing