diff options
author | William Blevins <wblevins001@gmail.com> | 2015-09-23 13:37:51 (GMT) |
---|---|---|
committer | William Blevins <wblevins001@gmail.com> | 2015-09-23 13:37:51 (GMT) |
commit | 0179419a4beb70434d930d418dbbcfa7cd628afb (patch) | |
tree | acbc8c898090bde23ff3ffae45d54bb752498e6f | |
parent | a60fae3f33db50836fb56225b71db6333da9e5cf (diff) | |
download | SCons-0179419a4beb70434d930d418dbbcfa7cd628afb.zip SCons-0179419a4beb70434d930d418dbbcfa7cd628afb.tar.gz SCons-0179419a4beb70434d930d418dbbcfa7cd628afb.tar.bz2 |
Added test to verify InstallVersionLib available from DefaultEnvironment.
-rw-r--r-- | test/LINK/VersionedLib.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/LINK/VersionedLib.py b/test/LINK/VersionedLib.py index 599c8aa..3f4a912 100644 --- a/test/LINK/VersionedLib.py +++ b/test/LINK/VersionedLib.py @@ -228,6 +228,12 @@ env.Program('testapp1.c', LIBS = mylib, LIBPATH='.') env.Program('testapp2.c', LIBS = ['test'], LIBPATH='.')
instnode = env.InstallVersionedLib("#/installtest",mylib)
env.Default(instnode)
+
+# Extra test to ensure that InstallVersionedLib can be called from the DefaultEnvironment
+# Ensures orthogonality where InstallVersionedLib wasn't previously available: SCons gave NameError.
+instnode = InstallVersionedLib("defaultenv-installtest",mylib)
+Default(instnode)
+
""" % libversion)
test.write('test.c', test_c_src)
@@ -240,6 +246,7 @@ env.Default(instnode) test.must_exist([ f])
for f in instfiles:
test.must_exist(['installtest', f])
+ test.must_exist(['defaultenv-installtest', f])
wrong_symlinks = []
for (linkname,expected) in symlinks:
@@ -268,6 +275,7 @@ env.Default(instnode) for f in instfiles:
test.must_not_exist(['installtest', f])
+ test.must_not_exist(['defaultenv-installtest', f])
test.pass_test()
|