Author: spadkins
Date: Fri Oct 27 11:34:55 2006
New Revision: 7986

Modified:
   p5ee/trunk/App-Options/t/app.conf
   p5ee/trunk/App-Options/t/main.t

Log:
add support for ENV{XYZ} vars in app.conf and continuation chars

Modified: p5ee/trunk/App-Options/t/app.conf
==============================================================================
--- p5ee/trunk/App-Options/t/app.conf   (original)
+++ p5ee/trunk/App-Options/t/app.conf   Fri Oct 27 11:34:55 2006
@@ -2,6 +2,11 @@
 var = value
 #prefix = /usr/local
 envtest = xy$ENV{ZZ}y
+ENV{LD_LIBRARY_PATH} = /usr/local/foo/lib
+continuation =  hel\
+           lo, \   
+              world\
+     !
 [junk]
 var1 = some other junk
 var5 = it better not be this

Modified: p5ee/trunk/App-Options/t/main.t
==============================================================================
--- p5ee/trunk/App-Options/t/main.t     (original)
+++ p5ee/trunk/App-Options/t/main.t     Fri Oct 27 11:34:55 2006
@@ -57,6 +57,8 @@
 is($App::options{var11}, "value11", "default env var works");
 is($App::options{var12}, "value12", "specified env var works");
 is($App::options{var10}, "value10", "specified secondary env var works");
+is($ENV{LD_LIBRARY_PATH}, "/usr/local/foo/lib", "set environment variables 
[$ENV{LD_LIBRARY_PATH}]");
+is($App::options{continuation}, "hello, world!", "line continuation characters 
(\\) [$App::options{continuation}]");
 
 #open(FILE2, "< $dir/file.txt");
 #$file_txt = join("", <FILE2>);

Reply via email to