summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/CPPPATH.py3
-rw-r--r--test/F77PATH.py2
-rw-r--r--test/LIBPATH.py3
3 files changed, 5 insertions, 3 deletions
diff --git a/test/CPPPATH.py b/test/CPPPATH.py
index a2cae10..4a50c67 100644
--- a/test/CPPPATH.py
+++ b/test/CPPPATH.py
@@ -44,7 +44,8 @@ test = TestSCons.TestSCons()
test.subdir('include', 'subdir', ['subdir', 'include'], 'inc2')
test.write('SConstruct', """
-env = Environment(CPPPATH = ['include'])
+env = Environment(CPPPATH = ['$FOO'],
+ FOO='include')
obj = env.Object(target='foobar/prog', source='subdir/prog.c')
env.Program(target='prog', source=obj)
SConscript('subdir/SConscript', "env")
diff --git a/test/F77PATH.py b/test/F77PATH.py
index 3dcc280..49aeb9a 100644
--- a/test/F77PATH.py
+++ b/test/F77PATH.py
@@ -47,7 +47,7 @@ if not test.where_is('g77'):
test.subdir('include', 'subdir', ['subdir', 'include'], 'inc2')
test.write('SConstruct', """
-env = Environment(F77PATH = ['include'], LIBS = 'g2c')
+env = Environment(F77PATH = ['$FOO'], LIBS = 'g2c', FOO='include')
obj = env.Object(target='foobar/prog', source='subdir/prog.f')
env.Program(target='prog', source=obj)
SConscript('subdir/SConscript', "env")
diff --git a/test/LIBPATH.py b/test/LIBPATH.py
index 51b2998..f122519 100644
--- a/test/LIBPATH.py
+++ b/test/LIBPATH.py
@@ -47,7 +47,8 @@ prog2 = test.workpath(lib_ + 'shlib') + _dll
test.write('SConstruct', """
env1 = Environment(LIBS = [ 'foo1' ],
- LIBPATH = [ './lib1' ])
+ LIBPATH = [ '$FOO' ],
+ FOO='./lib1')
f1 = env1.Object('f1', 'f1.c')