mirror of
https://github.com/wfjm/w11.git
synced 2026-01-13 23:47:36 +00:00
tbrun: add --all option
This commit is contained in:
parent
285acce699
commit
40f7cad0af
@ -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 <W.F.J.Mueller@gsi.de>
|
||||
#
|
||||
@ -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};
|
||||
|
||||
|
||||
@ -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 <W.F.J.Mueller@gsi.de>
|
||||
.\"
|
||||
.\" ------------------------------------------------------------------
|
||||
.
|
||||
.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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user