summaryrefslogtreecommitdiffstats
path: root/test/BuildDir.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-04-10 05:35:38 (GMT)
committerSteven Knight <knight@baldmt.com>2003-04-10 05:35:38 (GMT)
commit2f8be7360679ad5e0260f4965ea5dd9506c7b033 (patch)
tree1379c046e82985011c5ab2d7604adf055e3140b9 /test/BuildDir.py
parent81e5793a07783b29a13004f834b7579a0e1605bb (diff)
downloadSCons-2f8be7360679ad5e0260f4965ea5dd9506c7b033.zip
SCons-2f8be7360679ad5e0260f4965ea5dd9506c7b033.tar.gz
SCons-2f8be7360679ad5e0260f4965ea5dd9506c7b033.tar.bz2
Implement Tool refactoring. (Chad Austin + Steve Leblanc)
Diffstat (limited to 'test/BuildDir.py')
-rw-r--r--test/BuildDir.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/test/BuildDir.py b/test/BuildDir.py
index c7c8dd4..f0e889a 100644
--- a/test/BuildDir.py
+++ b/test/BuildDir.py
@@ -25,6 +25,7 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os.path
+import string
import sys
import time
import TestSCons
@@ -97,7 +98,12 @@ SConscript(File('SConscript', var4), "env")
env = Environment(CPPPATH='.', F77PATH='.')
SConscript('../build/var5/SConscript', "env")
SConscript('../build/var6/SConscript', "env")
-""")
+""")
+
+if string.find(sys.platform, 'irix') != -1:
+ fortran_runtime = 'ftn'
+else:
+ fortran_runtime = 'g2c'
test.subdir(['test', 'src'])
test.write(['test', 'src', 'SConscript'], """
@@ -132,9 +138,9 @@ except:
if f77 and WhereIs(env['F77']):
env.Command(target='b2.f', source='b2.in', action=buildIt)
- env.Copy(LIBS = ['g2c']).Program(target='bar2', source='b2.f')
- env.Copy(LIBS = ['g2c']).Program(target='bar1', source='b1.f')
-""")
+ env.Copy(LIBS = [r'%s']).Program(target='bar2', source='b2.f')
+ env.Copy(LIBS = [r'%s']).Program(target='bar1', source='b1.f')
+""" % (fortran_runtime, fortran_runtime))
test.write('test/src/f1.c', r"""
#include "f1.h"