From 0179419a4beb70434d930d418dbbcfa7cd628afb Mon Sep 17 00:00:00 2001 From: William Blevins Date: Wed, 23 Sep 2015 14:37:51 +0100 Subject: Added test to verify InstallVersionLib available from DefaultEnvironment. --- test/LINK/VersionedLib.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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() -- cgit v0.12