diff options
author | Steven Knight <knight@baldmt.com> | 2003-04-27 03:41:27 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-04-27 03:41:27 (GMT) |
commit | 98792e70711bb39b7862e4427c09787aab691631 (patch) | |
tree | bb3d460515d4d671900fa6cb5582d429de503e40 /test | |
parent | a925fbfbbecd978b6275ba0592e3bd21b0bd7781 (diff) | |
download | SCons-98792e70711bb39b7862e4427c09787aab691631.zip SCons-98792e70711bb39b7862e4427c09787aab691631.tar.gz SCons-98792e70711bb39b7862e4427c09787aab691631.tar.bz2 |
Follow-up test portability fixes for IRIX. (Chad Austin)
Diffstat (limited to 'test')
-rw-r--r-- | test/CVS.py | 3 | ||||
-rw-r--r-- | test/LIBS.py | 2 | ||||
-rw-r--r-- | test/build-errors.py | 13 | ||||
-rw-r--r-- | test/option-c.py | 4 |
4 files changed, 18 insertions, 4 deletions
diff --git a/test/CVS.py b/test/CVS.py index 1296c5e..33fbe0f 100644 --- a/test/CVS.py +++ b/test/CVS.py @@ -233,7 +233,8 @@ test.fail_test(not is_writable(test.workpath('work2', 'sub', 'fff.in'))) test.subdir(['work3']) test.write(['work3', 'SConstruct'], """\ -env = Environment() +import os +env = Environment(ENV = { 'PATH' : os.environ['PATH'] }) env.SourceCode('.', env.CVS(':pserver:anonymous:@cvs.sourceforge.net:/cvsroot/scons')) env.Install('install', 'scons/SConstruct') """) diff --git a/test/LIBS.py b/test/LIBS.py index 7a99f68..c9bcecd 100644 --- a/test/LIBS.py +++ b/test/LIBS.py @@ -123,7 +123,7 @@ SConscript('sub2/SConscript', 'env') test.run(arguments = '.', stderr=None) # on IRIX, ld32 prints out a warning saying that libbaz.a isn't used -sw = 'ld32: WARNING 84 : ./libbaz.a is not used for resolving any symbol.' +sw = 'ld32: WARNING 84 : ./libbaz.a is not used for resolving any symbol.\n' test.fail_test(not test.stderr() in ['', sw]) test.run(program=foo_exe, stdout='sub1/bar.c\nsub1/baz.c\n') diff --git a/test/build-errors.py b/test/build-errors.py index 2cec416..ac6e066 100644 --- a/test/build-errors.py +++ b/test/build-errors.py @@ -26,6 +26,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import os import string +import sys import TestCmd import TestSCons @@ -71,6 +72,10 @@ if os.name == 'nt': unspecified % 'f1' ] test.fail_test(not test.stderr() in errs) +elif string.find(sys.platform, 'irix') != -1: + test.fail_test(test.stderr() != """sh: %s: not found +scons: *** [f1] Error 127 +""" % no_such_file) else: test.fail_test(test.stderr() != """sh: %s: No such file or directory scons: *** [f1] Error 127 @@ -96,6 +101,10 @@ if os.name == 'nt': unspecified % 'f2' ] test.fail_test(not test.stderr() in errs) +elif string.find(sys.platform, 'irix') != -1: + test.fail_test(test.stderr() != """sh: %s: cannot execute +scons: *** [f2] Error 126 +""" % not_executable) else: test.fail_test(test.stderr() != """sh: %s: Permission denied scons: *** [f2] Error 126 @@ -120,6 +129,10 @@ if os.name == 'nt': unspecified % 'f3' ] test.fail_test(not test.stderr() in errs) +elif string.find(sys.platform, 'irix') != -1: + test.fail_test(test.stderr() != """sh: %s: cannot execute +scons: *** [f3] Error 126 +""" % test.workdir) else: test.fail_test(test.stderr() != """sh: %s: is a directory scons: *** [f3] Error 126 diff --git a/test/option-c.py b/test/option-c.py index 6501d75..d545b10 100644 --- a/test/option-c.py +++ b/test/option-c.py @@ -193,7 +193,7 @@ Removed foo3.out Removed %s Removed %s Removed directory subd -""" % (os.path.join('subd','foon.in'), os.path.join('subd', 'SConscript'))) +""" % (os.path.join('subd', 'SConscript'), os.path.join('subd','foon.in'))) test.run(arguments = '-c -n .', stdout=expect) expect = test.wrap_stdout("""Removed foo1.out @@ -202,7 +202,7 @@ Removed foo3.out Removed %s Removed %s Removed directory subd -""" % (os.path.join('subd','foon.in'), os.path.join('subd', 'SConscript'))) +""" % (os.path.join('subd','SConscript'), os.path.join('subd', 'foon.in'))) test.run(arguments = '-c .', stdout=expect) test.fail_test(os.path.exists(test.workpath('subdir', 'foon.in'))) test.fail_test(os.path.exists(test.workpath('subdir'))) |