2008-03-18 20:26:37 +00:00
|
|
|
#!/usr/bin/perl
|
2008-09-23 14:02:31 +00:00
|
|
|
if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); die; }
|
2008-03-18 20:26:37 +00:00
|
|
|
# DESCRIPTION: Verilator: Verilog Test driver/expect definition
|
|
|
|
#
|
2009-05-04 21:07:57 +00:00
|
|
|
# Copyright 2003-2009 by Wilson Snyder. This program is free software; you can
|
2008-03-18 20:26:37 +00:00
|
|
|
# redistribute it and/or modify it under the terms of either the GNU
|
2009-05-04 21:07:57 +00:00
|
|
|
# Lesser General Public License Version 3 or the Perl Artistic License
|
|
|
|
# Version 2.0.
|
2008-03-18 20:26:37 +00:00
|
|
|
|
2018-05-08 00:42:28 +00:00
|
|
|
scenarios(dist => 1);
|
2010-03-18 16:03:08 +00:00
|
|
|
|
2014-11-22 14:04:14 +00:00
|
|
|
foreach my $prog (
|
|
|
|
"../bin/verilator",
|
2014-11-24 02:06:10 +00:00
|
|
|
"../bin/verilator_coverage",
|
2014-11-22 14:04:14 +00:00
|
|
|
"../bin/verilator_difftree",
|
2018-07-23 00:54:28 +00:00
|
|
|
"../bin/verilator_gantt",
|
2014-11-22 14:04:14 +00:00
|
|
|
"../bin/verilator_profcfunc",
|
|
|
|
) {
|
2018-05-08 00:42:28 +00:00
|
|
|
run(fails => 1,
|
|
|
|
cmd => ["perl",$prog,
|
|
|
|
"--help"],
|
|
|
|
logfile => "$Self->{obj_dir}/t_help.log",
|
|
|
|
tee => 0,
|
2017-09-23 12:50:39 +00:00
|
|
|
);
|
2019-05-08 02:34:09 +00:00
|
|
|
file_grep("$Self->{obj_dir}/t_help.log", qr/DISTRIBUTION/i);
|
2014-11-22 14:04:14 +00:00
|
|
|
}
|
2008-03-18 20:26:37 +00:00
|
|
|
|
|
|
|
ok(1);
|
|
|
|
1;
|