diff options
| author | Steven Knight <knight@baldmt.com> | 2004-11-13 21:56:57 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2004-11-13 21:56:57 (GMT) |
| commit | 09cad6ed1ffb436742adbbf6608bb094b4a236e2 (patch) | |
| tree | b6c4b1f529c82d39dab94b26fb1440980955c8fe /test/Alias/errors.py | |
| parent | 206adf4366654b0c3fcf8c9131140f0c11ae0a5f (diff) | |
| download | SCons-09cad6ed1ffb436742adbbf6608bb094b4a236e2.zip SCons-09cad6ed1ffb436742adbbf6608bb094b4a236e2.tar.gz SCons-09cad6ed1ffb436742adbbf6608bb094b4a236e2.tar.bz2 | |
Allow Alias Nodes to have Actions.
Diffstat (limited to 'test/Alias/errors.py')
| -rw-r--r-- | test/Alias/errors.py | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/test/Alias/errors.py b/test/Alias/errors.py new file mode 100644 index 0000000..f2ca950 --- /dev/null +++ b/test/Alias/errors.py @@ -0,0 +1,46 @@ +#!/usr/bin/env python +# +# __COPYRIGHT__ +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# + +__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" + +import os +import sys +import TestSCons +import TestCmd + +test = TestSCons.TestSCons() + +test.write('SConstruct', """ +env=Environment() +TargetSignatures('content') +env.Alias('C', 'D') +env.Alias('B', 'C') +env.Alias('A', 'B') +""") + +test.run(arguments='A', + stderr="scons: *** Source `D' not found, needed by target `C'. Stop.\n", + status=2) + +test.pass_test() |
