1#!/usr/bin/env perl 2# DESCRIPTION: Verilator: Verilog Test driver bootstrapper 3# 4# Copyright 2008 by Wilson Snyder. This program is free software; you 5# can redistribute it and/or modify it under the terms of either the GNU 6# Lesser General Public License Version 3 or the Perl Artistic License 7# Version 2.0. 8# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0 9 10# This is exec'ed by every test that is run standalone (called from the 11# shell as ./t_test_name.pl) 12 13use FindBin; 14use Cwd qw(chdir); 15 16my @args = @ARGV; 17chdir("$FindBin::Bin/.."); 18$ENV{PWD} = Cwd::getcwd(); # Else chdir leaves the .. which confuses later commands 19 20@args = map { s!.*test_regress/!!; $_; } @args; 21 22exec("./driver.pl", @args); 23die "$!, in exec"; 24