2008-09-23 14:02:31 +00:00
|
|
|
#!/usr/bin/perl
|
|
|
|
# DESCRIPTION: Verilator: Verilog Test driver bootstrapper
|
|
|
|
#
|
|
|
|
# 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 21:07:57 +00:00
|
|
|
# Lesser General Public License Version 3 or the Perl Artistic License
|
|
|
|
# Version 2.0.
|
2008-09-23 14:02:31 +00:00
|
|
|
|
|
|
|
# This is exec'ed by every test that is run standalone (called from the
|
|
|
|
# shell as ./t_test_name.pl)
|
|
|
|
|
|
|
|
use FindBin;
|
|
|
|
use Cwd qw(chdir);
|
|
|
|
|
|
|
|
my @args = @ARGV;
|
|
|
|
chdir("$FindBin::Bin/..");
|
2013-02-10 14:29:35 +00:00
|
|
|
$ENV{PWD} = Cwd::getcwd(); # Else chdir leaves the .. which confuses later commands
|
2008-09-23 14:02:31 +00:00
|
|
|
|
|
|
|
@args = map { s!.*test_regress/!!; $_; } @args;
|
|
|
|
|
|
|
|
exec("./driver.pl", @args);
|
|
|
|
die;
|