diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-10-25 16:21:35 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-10-25 16:21:35 +0000 |
commit | b3ec3848290654274712ea475401ba98eb99a6f0 (patch) | |
tree | 39de1870da01e8c2fb113c14ba988ddd3340dafb /t | |
parent | 365bdf04751c0fa9835c9772f9c4e7f7fdbeb525 (diff) | |
download | perl-b3ec3848290654274712ea475401ba98eb99a6f0.tar.gz |
Getting fancier...
p4raw-id: //depot/perl@12649
Diffstat (limited to 't')
-rwxr-xr-x | t/TEST | 23 |
1 files changed, 17 insertions, 6 deletions
@@ -316,14 +316,25 @@ SHRDLU ### in the 't' directory since most (>=80%) of the tests succeeded. SHRDLU use Config; - if ($Config{ldlibpthname}) { + if (my $p = $Config{ldlibpthname}) { warn <<SHRDLU; ### You may have to set your dynamic library search path, - ### $Config{ldlibpthname}, to point to the build directory - ### before running the harness-- depending on your shell style: - ### setenv $Config{ldlibpthname} `pwd`:\${?$Config{ldlibpthname}}; cd t; ./perl harness - ### $Config{ldlibpthname}=`pwd`:\$$Config{ldlibpthname}; export $Config{ldlibpthname}; cd t; ./perl harness - ### export $Config{ldlibpthname}=`pwd`:\$$Config{ldlibpthname}; cd t; ./perl harness + ### $p, to point to the build directory: +SHRDLU + if (exists $ENV{$p}) { + warn <<SHRDLU; + ### setenv $p `pwd`:\$$p; cd t; ./perl harness + ### $p=`pwd`:\$$p; export $p; cd t; ./perl harness + ### export $p=`pwd`:\$$p; cd t; ./perl harness +SHRDLU + } else { + warn <<SHRDLU; + ### setenv $p `pwd`; cd t; ./perl harness + ### $p=`pwd`; export $p; cd t; ./perl harness + ### export $p=`pwd`; cd t; ./perl harness +SHRDLU + } + warn <<SHRDLU; ### for csh-style shells, like tcsh; or for traditional/modern ### Bourne-style shells, like bash, ksh, and zsh, respectively. SHRDLU |