summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-01-23 21:54:05 (GMT)
committerSteven Knight <knight@baldmt.com>2002-01-23 21:54:05 (GMT)
commitcb0829ad927a55c4d79125e6ced5e975544a05a6 (patch)
treec29ac37bb286f200da768ac48fb0d5845ec510d6 /test
parent627e41f923a7db85b0d30ae1c6980c9fab2c642f (diff)
downloadSCons-cb0829ad927a55c4d79125e6ced5e975544a05a6.zip
SCons-cb0829ad927a55c4d79125e6ced5e975544a05a6.tar.gz
SCons-cb0829ad927a55c4d79125e6ced5e975544a05a6.tar.bz2
Strip $(-$) bracketed text from command lines.
Diffstat (limited to 'test')
-rw-r--r--test/CPPPATH.py15
-rw-r--r--test/LIBPATH.py12
2 files changed, 27 insertions, 0 deletions
diff --git a/test/CPPPATH.py b/test/CPPPATH.py
index af7bdd8..30439ad 100644
--- a/test/CPPPATH.py
+++ b/test/CPPPATH.py
@@ -161,4 +161,19 @@ test.fail_test(os.path.exists(test.workpath('variant', 'prog.c')))
test.up_to_date(arguments = args)
+# Change CPPPATH and make sure we don't rebuild because of it.
+test.write('SConstruct', """
+env = Environment(CPPPATH = ['include'])
+obj = env.Object(target='prog', source='subdir/prog.c')
+env.Program(target='prog', source=obj)
+SConscript('subdir/SConscript', "env")
+
+BuildDir('variant', 'subdir', 0)
+include = Dir('include')
+env = Environment(CPPPATH=[include])
+SConscript('variant/SConscript', "env")
+""")
+
+test.up_to_date(arguments = args)
+
test.pass_test()
diff --git a/test/LIBPATH.py b/test/LIBPATH.py
index 7d5a7cc..a373425 100644
--- a/test/LIBPATH.py
+++ b/test/LIBPATH.py
@@ -60,4 +60,16 @@ test.run(arguments = '.')
test.run(program = test.workpath('prog'),
stdout = "f1.c\nprog.c\n")
+test.up_to_date(arguments = '.')
+
+# Change LIBPATH and make sure we don't rebuild because of it.
+test.write('SConstruct', """
+env = Environment(LIBS = [ 'foo1' ],
+ LIBPATH = [ './libs', './lib2' ])
+env.Program(target = 'prog', source = 'prog.c')
+env.Library(target = './libs/foo1', source = 'f1.c')
+""")
+
+test.up_to_date(arguments = '.', stderr = None)
+
test.pass_test()