85_vhier.t

来自「Verilog Parser in Perl」· T 代码 · 共 33 行

T
33
字号
#!/usr/bin/perl -w# DESCRIPTION: Perl ExtUtils: Type 'make test' to test this package## Copyright 2000-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 or the Perl Artistic License.use IO::File;use strict;use Test;BEGIN { plan tests => 10 }BEGIN { require "t/test_utils.pl"; }print "Checking vhier...\n";vhier ("t/85_vhier_cells.out",	    "--cells");vhier ("t/85_vhier_inpfiles.out",   "--input-files");vhier ("t/85_vhier_resolvefiles.out","--resolve-files");vhier ("t/85_vhier_modfiles.out",   "--module-files");vhier ("t/85_vhier_topmodule.out",  "--module-files --top-module v_hier_sub");sub vhier {    my $checkname = shift;    my $flags = shift;    my $out = "test_dir/vhier.v";    run_system ("${PERL} vhier ${flags} --nomissing -y verilog v_hier_top.v -o $out");    ok(-r $out);    #run_system ("/bin/cp $out $checkname");    ok(files_identical ($checkname, $out));}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?