summaryrefslogtreecommitdiff
path: root/test/Fortran/FORTRANMODDIR.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/Fortran/FORTRANMODDIR.py')
-rw-r--r--test/Fortran/FORTRANMODDIR.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Fortran/FORTRANMODDIR.py b/test/Fortran/FORTRANMODDIR.py
index f0c500cc..a81439ab 100644
--- a/test/Fortran/FORTRANMODDIR.py
+++ b/test/Fortran/FORTRANMODDIR.py
@@ -54,6 +54,8 @@ test.write('SConstruct', """
env = Environment(FORTRANCOM = r'%(_python_)s myfortran.py $FORTRANMODDIR $SOURCE $TARGET',
FORTRANMODDIR = 'modules')
env.Object(target = 'test1.obj', source = 'test1.f')
+env.Object(target = 'sub/test2.obj', source = 'test1.f',
+ FORTRANMODDIR='${TARGET.dir}')
""" % locals())
test.write('test1.f', """\
@@ -86,6 +88,9 @@ test.must_match('test1.obj', "myfortran.py wrote test1.obj\n")
test.must_match(['modules', 'mod_foo.mod'], "myfortran.py wrote mod_foo.mod\n")
test.must_not_exist(['modules', 'mod_bar.mod'])
+test.must_match(['sub', 'test2.obj'], "myfortran.py wrote test2.obj\n")
+test.must_match(['sub', 'mod_foo.mod'], "myfortran.py wrote mod_foo.mod\n")
+
test.up_to_date(arguments = '.')