diff --git a/tools/bin/tbrun b/tools/bin/tbrun index 89aac997..de6c3685 100755 --- a/tools/bin/tbrun +++ b/tools/bin/tbrun @@ -1,5 +1,5 @@ #!/usr/bin/perl -w -# $Id: tbrun 1066 2018-11-10 11:21:53Z mueller $ +# $Id: tbrun 1069 2018-11-16 17:11:30Z mueller $ # # Copyright 2016-2018 by Walter F.J. Mueller # @@ -14,6 +14,7 @@ # # Revision History: # Date Rev Version Comment +# 2018-11-16 1069 1.1.1 add --all # 2018-11-09 1066 1.1 add and use bailout; update exit code usage # 2017-04-15 875 1.0.1 add --help option # 2016-09-17 808 1.0 Initial version @@ -32,7 +33,7 @@ use Time::HiRes qw(gettimeofday); my %opts = (); -GetOptions(\%opts, "tag=s@", "exclude=s@", "mode=s", +GetOptions(\%opts, "tag=s@", "exclude=s@", "mode=s", "all", "jobs=i", "tee=s", "tmax=i", "dry", "trace", "nomake", "norun", "rlmon", "rbmon", "bwait=i", "swait=i", @@ -87,6 +88,11 @@ if (defined $opts{tee} && $opts{tee} ne '') { or bailout("failed to open for write '$opts{tee}': $!"); } +if ($opts{all}) { + bailout("-all not compatible with --tag options") if defined $opts{tag}; + $opts{tag} = ['.*'] +} + $opts{tag} = ['default'] unless defined $opts{tag}; $opts{mode} = 'bsim' unless defined $opts{mode}; diff --git a/tools/man/man1/tbrun.1 b/tools/man/man1/tbrun.1 index 6bb784a6..8ca265e1 100644 --- a/tools/man/man1/tbrun.1 +++ b/tools/man/man1/tbrun.1 @@ -1,11 +1,11 @@ .\" -*- nroff -*- -.\" $Id: tbrun.1 1065 2018-11-04 11:32:06Z mueller $ +.\" $Id: tbrun.1 1069 2018-11-16 17:11:30Z mueller $ .\" .\" Copyright 2016-2018 by Walter F.J. Mueller .\" .\" ------------------------------------------------------------------ . -.TH TBRUN 1 2018-11-03 "Retro Project" "Retro Project Manual" +.TH TBRUN 1 2018-11-16 "Retro Project" "Retro Project Manual" .\" ------------------------------------------------------------------ .SH NAME tbrun \- test bench driver @@ -69,6 +69,11 @@ separated list, a test which matches all the tags given is excluded. In effect, a test is rejected if it matches all tags in the \fItlist\fR of one of the specified \fB\-\-exclude\fP options. . +.\" -- --all ------------------------------------- +.IP \fB\-\-all\fR +is simply a shortcut for \fB\-\-tag=".*"\fR and selects all tags. Can be +combined with \fB\-\-exclude\fP but not with other \fB\-\-tag\P options. +. .\" -- --mode ------------------------------------ .IP \fB\-\-mode=\fImlist\fR determines the simulation engine and the type of simulation. Can be a