2008-04-09 15:56:40 +02:00
|
|
|
#!/usr/bin/perl
|
2008-09-23 16:02:31 +02:00
|
|
|
if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); die; }
|
2008-04-09 15:56:40 +02:00
|
|
|
# DESCRIPTION: Verilator: Verilog Test driver/expect definition
|
|
|
|
|
#
|
|
|
|
|
# Copyright 2008 by Wilson Snyder. This program is free software; you can
|
|
|
|
|
# redistribute it and/or modify it under the terms of either the GNU
|
2009-05-04 23:07:57 +02:00
|
|
|
# Lesser General Public License Version 3 or the Perl Artistic License
|
|
|
|
|
# Version 2.0.
|
2008-04-09 15:56:40 +02:00
|
|
|
|
2010-03-18 17:03:08 +01:00
|
|
|
$Self->skip("Verilator only test") if !$Self->{vlt};
|
|
|
|
|
|
2008-04-09 15:56:40 +02:00
|
|
|
compile (
|
2010-03-18 17:03:08 +01:00
|
|
|
fails=>1,
|
2008-04-09 15:56:40 +02:00
|
|
|
expect=>
|
2010-01-08 02:25:15 +01:00
|
|
|
'%Error-MODDUP: t/t_mod_dup_bad.v:\d+: Duplicate declaration of module: a
|
|
|
|
|
%Error-MODDUP: t/t_mod_dup_bad.v:\d+: ... Location of original declaration
|
2008-04-09 15:56:40 +02:00
|
|
|
.*
|
|
|
|
|
%Error: Exiting due to.*',
|
2010-03-18 17:03:08 +01:00
|
|
|
);
|
2008-04-09 15:56:40 +02:00
|
|
|
|
|
|
|
|
ok(1);
|
|
|
|
|
1;
|