~ubuntu-branches/ubuntu/precise/verilator/precise

« back to all changes in this revision

Viewing changes to test_regress/t/t_lint_unused_bad.pl

  • Committer: Bazaar Package Importer
  • Author(s): أحمد المحمودي (Ahmed El-Mahmoudy)
  • Date: 2011-01-22 10:08:37 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110122100837-l1x2q9vm6m7gdrc8
Tags: 3.810-1
* New upstream release.
* Refreshed shebang.diff patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/perl
 
2
if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); die; }
 
3
# DESCRIPTION: Verilator: Verilog Test driver/expect definition
 
4
#
 
5
# Copyright 2008 by Wilson Snyder. This program is free software; you can
 
6
# redistribute it and/or modify it under the terms of either the GNU
 
7
# Lesser General Public License Version 3 or the Perl Artistic License
 
8
# Version 2.0.
 
9
 
 
10
compile (
 
11
    v_flags2 => ["--lint-only --bbox-sys -Wall -Wno-DECLFILENAME"],
 
12
    fails=>1,
 
13
    verilator_make_gcc => 0,
 
14
    make_top_shell => 0,
 
15
    make_main => 0,
 
16
    expect=>
 
17
'%Warning-UNUSED: t/t_lint_unused_bad.v:\d+: Bits of signal are not used: assunu1\[5:1\]
 
18
%Warning-UNUSED: Use .* to disable this message.
 
19
%Warning-UNDRIVEN: t/t_lint_unused_bad.v:\d+: Bits of signal are not driven: udrb2\[14:13,11\]
 
20
%Warning-UNUSED: t/t_lint_unused_bad.v:\d+: Signal is not driven, nor used: unu3
 
21
%Warning-UNUSED: t/t_lint_unused_bad.v:\d+: Bits of signal are not driven, nor used: mixed\[3\]
 
22
%Warning-UNUSED: t/t_lint_unused_bad.v:\d+: Bits of signal are not used: mixed\[2\]
 
23
%Warning-UNDRIVEN: t/t_lint_unused_bad.v:\d+: Bits of signal are not driven: mixed\[1\]
 
24
%Error: Exiting due to.*',
 
25
    ) if $Self->{v3};
 
26
 
 
27
ok(1);
 
28
1;
 
29