Tests: Add common use_libvpi for multiple simulators

This commit is contained in:
Wilson Snyder 2021-02-03 18:59:27 -05:00
parent fe0a42eaa8
commit 828fa80afa
17 changed files with 10 additions and 20 deletions

View File

@ -1219,7 +1219,7 @@ sub execute {
@{$param{iv_run_flags}},
@{$param{all_run_flags}},
);
if ($param{iv_pli}) {
if ($param{use_libvpi}) {
# don't enter command line on $stop, include vpi
unshift @cmd, "vvp -n -m $self->{obj_dir}/libvpi.so";
}
@ -1233,7 +1233,7 @@ sub execute {
}
elsif ($param{ms}) {
my @pli_opt=();
if ($param{ms_pli}) {
if ($param{use_libvpi}) {
unshift @pli_opt, "-pli $self->{obj_dir}/libvpi.so";
}
$self->_run(logfile=>"$self->{obj_dir}/ms_sim.log",

View File

@ -37,7 +37,6 @@ if ($Self->{vlt_all}) {
execute(
check_finished => 1,
expect_filename => $Self->{golden_filename},
ms_pli => 0
);
ok(1);

View File

@ -36,7 +36,6 @@ if ($Self->{vlt_all}) {
execute(
check_finished => 1,
ms_pli => 0
);
ok(1);

View File

@ -37,7 +37,6 @@ if ($Self->{vlt_all}) {
execute(
check_finished => 1,
expect_filename => $Self->{golden_filename},
ms_pli => 0
);
ok(1);

View File

@ -36,7 +36,6 @@ if ($Self->{vlt_all}) {
execute(
check_finished => 1,
ms_pli => 0
);
ok(1);

View File

@ -37,7 +37,6 @@ if ($Self->{vlt_all}) {
execute(
check_finished => 1,
expect_filename => $Self->{golden_filename},
ms_pli => 0
);
ok(1);

View File

@ -36,7 +36,6 @@ if ($Self->{vlt_all}) {
execute(
check_finished => 1,
ms_pli => 0
);
ok(1);

View File

@ -29,7 +29,6 @@ compile(
execute(
check_finished => 1,
ms_pli => 0
);
ok(1);

View File

@ -37,7 +37,6 @@ if ($Self->{vlt_all}) {
execute(
check_finished => 1,
expect_filename => $Self->{golden_filename},
ms_pli => 0
);
ok(1);

View File

@ -23,7 +23,7 @@ compile(
);
execute(
iv_pli => 1,
use_libvpi => 1,
check_finished => 1
);

View File

@ -29,7 +29,7 @@ compile(
);
execute(
iv_pli => 1,
use_libvpi => 1,
check_finished => 1
);

View File

@ -23,7 +23,7 @@ compile(
);
execute(
iv_pli => 1,
use_libvpi => 1,
check_finished => 1
);

View File

@ -23,7 +23,7 @@ compile(
);
execute(
iv_pli => 1,
use_libvpi => 1,
check_finished => 1
);

View File

@ -23,7 +23,7 @@ compile(
);
execute(
iv_pli => 1,
use_libvpi => 1,
check_finished => 1
);

View File

@ -21,8 +21,7 @@ compile(
);
execute(
iv_pli => 1,
ms_pli => 1,
use_libvpi => 1,
check_finished => 1,
all_run_flags => ['+PLUS +INT=1234 +STRSTR']
);

View File

@ -21,7 +21,7 @@ compile(
);
execute(
iv_pli => 1,
use_libvpi => 1,
check_finished => 1,
all_run_flags => ['+PLUS +INT=1234 +STRSTR']
);

View File

@ -21,8 +21,7 @@ compile(
);
execute(
iv_pli => 1,
ms_pli => 1,
use_libvpi => 1,
check_finished => 1,
all_run_flags => ['+PLUS +INT=1234 +STRSTR']
);