summaryrefslogtreecommitdiff
path: root/t/TestInit.pm
blob: a2a074e13fba59d2c58a0f1e8fe2a769c16a6d72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This is a replacement for the old BEGIN preamble which heads (or
# should head) up every core test program to prep it for running.  
# Now instead of:
#
# BEGIN {
#   chdir 't' if -d 't';
#   @INC = '../lib';
# }
#
# t/TEST will use -MTestInit.  It also doesn't hurt if you "use TestInit"
# (not require) in the test scripts.
#
# PS this is not POD because this should be a very minimalist module in
# case of funaemental perl breakage.

package TestInit;

chdir 't' if -d 't';
@INC = '../lib';
$0 =~ s/\.dp$//; # for the test.deparse make target
1;