verilator/test_regress/t/t_flag_version.pl

46 lines
1.2 KiB
Perl
Raw Normal View History

#!/usr/bin/perl
if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); die; }
# DESCRIPTION: Verilator: Verilog Test driver/expect definition
#
# Copyright 2003-2009 by Wilson Snyder. This program is free software; you can
# redistribute it and/or modify it under the terms of either the GNU
# Lesser General Public License Version 3 or the Perl Artistic License
# Version 2.0.
scenarios(dist => 1);
2014-11-22 14:04:14 +00:00
foreach my $prog (
2019-06-30 21:38:41 +00:00
# See also t_flag_help.pl
2014-11-22 14:04:14 +00:00
"../bin/verilator",
"../bin/verilator_coverage",
2019-06-30 21:38:41 +00:00
#"../bin/verilator_difftree",
#"../bin/verilator_gantt",
#"../bin/verilator_profcfunc",
2014-11-22 14:04:14 +00:00
) {
2019-06-30 21:38:41 +00:00
run(fails => 0,
cmd => ["perl", $prog,
"--version"],
2019-07-01 01:53:01 +00:00
tee => $self->{verbose},
logfile => "$Self->{obj_dir}/t_help.log",
expect => qr/^Verilator/,
);
run(fails => 0,
cmd => ["perl", $prog,
"-V"],
tee => $self->{verbose},
logfile => "$Self->{obj_dir}/t_help.log",
expect => qr/^Verilator/,
);
run(fails => 0,
cmd => ["perl", $prog,
"-V"],
logfile => "$Self->{obj_dir}/t_help.log",
2019-06-30 21:38:41 +00:00
expect => qr/^Verilator/,
);
2014-11-22 14:04:14 +00:00
}
ok(1);
1;