summaryrefslogtreecommitdiffstats
path: root/test/Fortran
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2016-11-28 16:53:37 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2016-11-28 16:53:37 (GMT)
commit694e80ea463c655d2e011afd4fe35109c119d6e7 (patch)
tree566428089b48f80bab14789ec4e3d77b8d003477 /test/Fortran
parent1c19e9f962b8cab0f9086615bb6409f8a326c0b8 (diff)
downloadSCons-694e80ea463c655d2e011afd4fe35109c119d6e7.zip
SCons-694e80ea463c655d2e011afd4fe35109c119d6e7.tar.gz
SCons-694e80ea463c655d2e011afd4fe35109c119d6e7.tar.bz2
Fix tests failing on win32 AR and Fortran and M4
Diffstat (limited to 'test/Fortran')
-rw-r--r--test/Fortran/F03COM.py18
-rw-r--r--test/Fortran/F08COM.py16
-rw-r--r--test/Fortran/F77COM.py17
-rw-r--r--test/Fortran/F90COM.py20
-rw-r--r--test/Fortran/F95COM.py18
-rw-r--r--test/Fortran/FORTRANCOM.py15
-rw-r--r--test/Fortran/SHF77COM.py16
-rw-r--r--test/Fortran/SHF90COM.py19
-rw-r--r--test/Fortran/SHF95COM.py18
-rw-r--r--test/Fortran/SHFORTRANCOM.py14
10 files changed, 119 insertions, 52 deletions
diff --git a/test/Fortran/F03COM.py b/test/Fortran/F03COM.py
index 4a42d22..aaa790c 100644
--- a/test/Fortran/F03COM.py
+++ b/test/Fortran/F03COM.py
@@ -25,6 +25,9 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
+import sys
+
+is_windows = (sys.platform == 'win32')
_python_ = TestSCons._python_
_exe = TestSCons._exe
@@ -76,18 +79,23 @@ test.write('test22.F03', "This is a .F03 file.\n#link\n/*f03pp*/\n")
test.run(arguments = '.', stderr = None)
test.must_match('test01' + _exe, "This is a .f file.\n")
-test.must_match('test02' + _exe, "This is a .F file.\n")
test.must_match('test03' + _exe, "This is a .for file.\n")
-test.must_match('test04' + _exe, "This is a .FOR file.\n")
test.must_match('test05' + _exe, "This is a .ftn file.\n")
-test.must_match('test06' + _exe, "This is a .FTN file.\n")
test.must_match('test07' + _exe, "This is a .fpp file.\n")
test.must_match('test08' + _exe, "This is a .FPP file.\n")
test.must_match('test13' + _exe, "This is a .f03 file.\n")
-test.must_match('test14' + _exe, "This is a .F03 file.\n")
test.must_match('test21' + _exe, "This is a .f03 file.\n")
-test.must_match('test22' + _exe, "This is a .F03 file.\n")
+
+if not is_windows:
+ # Skip checking files we expect to differ in behavior
+ # based on file extension case
+ test.must_match('test02' + _exe, "This is a .F file.\n")
+ test.must_match('test04' + _exe, "This is a .FOR file.\n")
+ test.must_match('test06' + _exe, "This is a .FTN file.\n")
+ test.must_match('test14' + _exe, "This is a .F03 file.\n")
+ test.must_match('test22' + _exe, "This is a .F03 file.\n")
+
test.pass_test()
diff --git a/test/Fortran/F08COM.py b/test/Fortran/F08COM.py
index ba7d64e..f159a53 100644
--- a/test/Fortran/F08COM.py
+++ b/test/Fortran/F08COM.py
@@ -25,6 +25,9 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
+import sys
+
+is_windows = ( sys.platform =='win32')
_python_ = TestSCons._python_
_exe = TestSCons._exe
@@ -67,15 +70,18 @@ test.write('test10.F08', "This is a .F08 file.\n#link\n/*f08pp*/\n")
test.run(arguments = '.', stderr = None)
test.must_match('test01' + _exe, "This is a .f file.\n")
-test.must_match('test02' + _exe, "This is a .F file.\n")
test.must_match('test03' + _exe, "This is a .for file.\n")
-test.must_match('test04' + _exe, "This is a .FOR file.\n")
test.must_match('test05' + _exe, "This is a .ftn file.\n")
-test.must_match('test06' + _exe, "This is a .FTN file.\n")
test.must_match('test07' + _exe, "This is a .fpp file.\n")
-test.must_match('test08' + _exe, "This is a .FPP file.\n")
test.must_match('test09' + _exe, "This is a .f08 file.\n")
-test.must_match('test10' + _exe, "This is a .F08 file.\n")
+if not is_windows:
+ # Skip checking files we expect to differ in behavior
+ # based on file extension case
+ test.must_match('test02' + _exe, "This is a .F file.\n")
+ test.must_match('test04' + _exe, "This is a .FOR file.\n")
+ test.must_match('test06' + _exe, "This is a .FTN file.\n")
+ test.must_match('test08' + _exe, "This is a .FPP file.\n")
+ test.must_match('test10' + _exe, "This is a .F08 file.\n")
test.pass_test()
diff --git a/test/Fortran/F77COM.py b/test/Fortran/F77COM.py
index e7a3cca..6550d92 100644
--- a/test/Fortran/F77COM.py
+++ b/test/Fortran/F77COM.py
@@ -25,6 +25,9 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
+import sys
+
+is_windows = ( sys.platform =='win32')
_python_ = TestSCons._python_
_exe = TestSCons._exe
@@ -67,15 +70,19 @@ test.write('test10.F77', "This is a .F77 file.\n#link\n/*f77pp*/\n")
test.run(arguments = '.', stderr = None)
test.must_match('test01' + _exe, "This is a .f file.\n")
-test.must_match('test02' + _exe, "This is a .F file.\n")
test.must_match('test03' + _exe, "This is a .for file.\n")
-test.must_match('test04' + _exe, "This is a .FOR file.\n")
test.must_match('test05' + _exe, "This is a .ftn file.\n")
-test.must_match('test06' + _exe, "This is a .FTN file.\n")
test.must_match('test07' + _exe, "This is a .fpp file.\n")
-test.must_match('test08' + _exe, "This is a .FPP file.\n")
test.must_match('test09' + _exe, "This is a .f77 file.\n")
-test.must_match('test10' + _exe, "This is a .F77 file.\n")
+
+if not is_windows:
+ # Skip checking files we expect to differ in behavior
+ # based on file extension case
+ test.must_match('test02' + _exe, "This is a .F file.\n")
+ test.must_match('test04' + _exe, "This is a .FOR file.\n")
+ test.must_match('test06' + _exe, "This is a .FTN file.\n")
+ test.must_match('test08' + _exe, "This is a .FPP file.\n")
+ test.must_match('test10' + _exe, "This is a .F77 file.\n")
test.pass_test()
diff --git a/test/Fortran/F90COM.py b/test/Fortran/F90COM.py
index a4f37c2..180e6b7 100644
--- a/test/Fortran/F90COM.py
+++ b/test/Fortran/F90COM.py
@@ -25,6 +25,9 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
+import sys
+
+is_windows = ( sys.platform =='win32')
_python_ = TestSCons._python_
_exe = TestSCons._exe
@@ -76,18 +79,23 @@ test.write('test22.F90', "This is a .F90 file.\n#link\n/*f90pp*/\n")
test.run(arguments = '.', stderr = None)
test.must_match('test01' + _exe, "This is a .f file.\n")
-test.must_match('test02' + _exe, "This is a .F file.\n")
test.must_match('test03' + _exe, "This is a .for file.\n")
-test.must_match('test04' + _exe, "This is a .FOR file.\n")
test.must_match('test05' + _exe, "This is a .ftn file.\n")
-test.must_match('test06' + _exe, "This is a .FTN file.\n")
test.must_match('test07' + _exe, "This is a .fpp file.\n")
-test.must_match('test08' + _exe, "This is a .FPP file.\n")
test.must_match('test11' + _exe, "This is a .f90 file.\n")
-test.must_match('test12' + _exe, "This is a .F90 file.\n")
test.must_match('test21' + _exe, "This is a .f90 file.\n")
-test.must_match('test22' + _exe, "This is a .F90 file.\n")
+
+if not is_windows:
+ # Skip checking files we expect to differ in behavior
+ # based on file extension case
+ test.must_match('test02' + _exe, "This is a .F file.\n")
+ test.must_match('test04' + _exe, "This is a .FOR file.\n")
+ test.must_match('test06' + _exe, "This is a .FTN file.\n")
+ test.must_match('test08' + _exe, "This is a .FPP file.\n")
+ test.must_match('test12' + _exe, "This is a .F90 file.\n")
+ test.must_match('test22' + _exe, "This is a .F90 file.\n")
+
test.pass_test()
diff --git a/test/Fortran/F95COM.py b/test/Fortran/F95COM.py
index 32ae594..2d48770 100644
--- a/test/Fortran/F95COM.py
+++ b/test/Fortran/F95COM.py
@@ -25,6 +25,9 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
+import sys
+
+is_windows = ( sys.platform =='win32')
_python_ = TestSCons._python_
_exe = TestSCons._exe
@@ -76,18 +79,21 @@ test.write('test22.F95', "This is a .F95 file.\n#link\n/*f95pp*/\n")
test.run(arguments = '.', stderr = None)
test.must_match('test01' + _exe, "This is a .f file.\n")
-test.must_match('test02' + _exe, "This is a .F file.\n")
test.must_match('test03' + _exe, "This is a .for file.\n")
-test.must_match('test04' + _exe, "This is a .FOR file.\n")
test.must_match('test05' + _exe, "This is a .ftn file.\n")
-test.must_match('test06' + _exe, "This is a .FTN file.\n")
test.must_match('test07' + _exe, "This is a .fpp file.\n")
-test.must_match('test08' + _exe, "This is a .FPP file.\n")
test.must_match('test13' + _exe, "This is a .f95 file.\n")
-test.must_match('test14' + _exe, "This is a .F95 file.\n")
test.must_match('test21' + _exe, "This is a .f95 file.\n")
-test.must_match('test22' + _exe, "This is a .F95 file.\n")
+if not is_windows:
+ # Skip checking files we expect to differ in behavior
+ # based on file extension case
+ test.must_match('test02' + _exe, "This is a .F file.\n")
+ test.must_match('test04' + _exe, "This is a .FOR file.\n")
+ test.must_match('test06' + _exe, "This is a .FTN file.\n")
+ test.must_match('test08' + _exe, "This is a .FPP file.\n")
+ test.must_match('test14' + _exe, "This is a .F95 file.\n")
+ test.must_match('test22' + _exe, "This is a .F95 file.\n")
test.pass_test()
diff --git a/test/Fortran/FORTRANCOM.py b/test/Fortran/FORTRANCOM.py
index a07d427..d3d7e7f 100644
--- a/test/Fortran/FORTRANCOM.py
+++ b/test/Fortran/FORTRANCOM.py
@@ -25,6 +25,10 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
+import sys
+
+is_windows = ( sys.platform =='win32')
+
_python_ = TestSCons._python_
_exe = TestSCons._exe
@@ -61,13 +65,16 @@ test.write('test08.FPP', "This is a .FPP file.\n#link\n/*fortranpp*/\n")
test.run(arguments = '.', stderr = None)
test.must_match('test01' + _exe, "This is a .f file.\n")
-test.must_match('test02' + _exe, "This is a .F file.\n")
test.must_match('test03' + _exe, "This is a .for file.\n")
-test.must_match('test04' + _exe, "This is a .FOR file.\n")
test.must_match('test05' + _exe, "This is a .ftn file.\n")
-test.must_match('test06' + _exe, "This is a .FTN file.\n")
test.must_match('test07' + _exe, "This is a .fpp file.\n")
-test.must_match('test08' + _exe, "This is a .FPP file.\n")
+if not is_windows:
+ # Skip checking files we expect to differ in behavior
+ # based on file extension case
+ test.must_match('test02' + _exe, "This is a .F file.\n")
+ test.must_match('test04' + _exe, "This is a .FOR file.\n")
+ test.must_match('test06' + _exe, "This is a .FTN file.\n")
+ test.must_match('test08' + _exe, "This is a .FPP file.\n")
test.pass_test()
diff --git a/test/Fortran/SHF77COM.py b/test/Fortran/SHF77COM.py
index 9289fa3..bd3d1e2 100644
--- a/test/Fortran/SHF77COM.py
+++ b/test/Fortran/SHF77COM.py
@@ -25,6 +25,9 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
+import sys
+
+is_windows = ( sys.platform =='win32')
_python_ = TestSCons._python_
_obj = TestSCons._shobj
@@ -65,15 +68,18 @@ test.write('test10.F77', "This is a .F77 file.\n/*f77pp*/\n")
test.run(arguments = '.', stderr = None)
test.must_match(obj_ + 'test01' + _obj, "This is a .f file.\n")
-test.must_match(obj_ + 'test02' + _obj, "This is a .F file.\n")
test.must_match(obj_ + 'test03' + _obj, "This is a .for file.\n")
-test.must_match(obj_ + 'test04' + _obj, "This is a .FOR file.\n")
test.must_match(obj_ + 'test05' + _obj, "This is a .ftn file.\n")
-test.must_match(obj_ + 'test06' + _obj, "This is a .FTN file.\n")
test.must_match(obj_ + 'test07' + _obj, "This is a .fpp file.\n")
-test.must_match(obj_ + 'test08' + _obj, "This is a .FPP file.\n")
test.must_match(obj_ + 'test09' + _obj, "This is a .f77 file.\n")
-test.must_match(obj_ + 'test10' + _obj, "This is a .F77 file.\n")
+if not is_windows:
+ # Skip checking files we expect to differ in behavior
+ # based on file extension case
+ test.must_match(obj_ + 'test02' + _obj, "This is a .F file.\n")
+ test.must_match(obj_ + 'test04' + _obj, "This is a .FOR file.\n")
+ test.must_match(obj_ + 'test06' + _obj, "This is a .FTN file.\n")
+ test.must_match(obj_ + 'test08' + _obj, "This is a .FPP file.\n")
+ test.must_match(obj_ + 'test10' + _obj, "This is a .F77 file.\n")
test.pass_test()
diff --git a/test/Fortran/SHF90COM.py b/test/Fortran/SHF90COM.py
index 9eef8b6..f66c347 100644
--- a/test/Fortran/SHF90COM.py
+++ b/test/Fortran/SHF90COM.py
@@ -25,6 +25,10 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
+import sys
+
+is_windows = ( sys.platform =='win32')
+
_python_ = TestSCons._python_
_obj = TestSCons._shobj
@@ -72,18 +76,21 @@ test.write('test22.F90', "This is a .F90 file.\n/*f90pp*/\n")
test.run(arguments = '.', stderr = None)
test.must_match(obj_ + 'test01' + _obj, "This is a .f file.\n")
-test.must_match(obj_ + 'test02' + _obj, "This is a .F file.\n")
test.must_match(obj_ + 'test03' + _obj, "This is a .for file.\n")
-test.must_match(obj_ + 'test04' + _obj, "This is a .FOR file.\n")
test.must_match(obj_ + 'test05' + _obj, "This is a .ftn file.\n")
-test.must_match(obj_ + 'test06' + _obj, "This is a .FTN file.\n")
test.must_match(obj_ + 'test07' + _obj, "This is a .fpp file.\n")
-test.must_match(obj_ + 'test08' + _obj, "This is a .FPP file.\n")
test.must_match(obj_ + 'test11' + _obj, "This is a .f90 file.\n")
-test.must_match(obj_ + 'test12' + _obj, "This is a .F90 file.\n")
test.must_match(obj_ + 'test21' + _obj, "This is a .f90 file.\n")
-test.must_match(obj_ + 'test22' + _obj, "This is a .F90 file.\n")
+if not is_windows:
+ # Skip checking files we expect to differ in behavior
+ # based on file extension case
+ test.must_match(obj_ + 'test02' + _obj, "This is a .F file.\n")
+ test.must_match(obj_ + 'test04' + _obj, "This is a .FOR file.\n")
+ test.must_match(obj_ + 'test06' + _obj, "This is a .FTN file.\n")
+ test.must_match(obj_ + 'test08' + _obj, "This is a .FPP file.\n")
+ test.must_match(obj_ + 'test12' + _obj, "This is a .F90 file.\n")
+ test.must_match(obj_ + 'test22' + _obj, "This is a .F90 file.\n")
test.pass_test()
diff --git a/test/Fortran/SHF95COM.py b/test/Fortran/SHF95COM.py
index e31cf45..85de45e 100644
--- a/test/Fortran/SHF95COM.py
+++ b/test/Fortran/SHF95COM.py
@@ -25,6 +25,9 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
+import sys
+
+is_windows = ( sys.platform =='win32')
_python_ = TestSCons._python_
_obj = TestSCons._shobj
@@ -72,18 +75,21 @@ test.write('test22.F95', "This is a .F95 file.\n/*f95pp*/\n")
test.run(arguments = '.', stderr = None)
test.must_match(obj_ + 'test01' + _obj, "This is a .f file.\n")
-test.must_match(obj_ + 'test02' + _obj, "This is a .F file.\n")
test.must_match(obj_ + 'test03' + _obj, "This is a .for file.\n")
-test.must_match(obj_ + 'test04' + _obj, "This is a .FOR file.\n")
test.must_match(obj_ + 'test05' + _obj, "This is a .ftn file.\n")
-test.must_match(obj_ + 'test06' + _obj, "This is a .FTN file.\n")
test.must_match(obj_ + 'test07' + _obj, "This is a .fpp file.\n")
-test.must_match(obj_ + 'test08' + _obj, "This is a .FPP file.\n")
test.must_match(obj_ + 'test13' + _obj, "This is a .f95 file.\n")
-test.must_match(obj_ + 'test14' + _obj, "This is a .F95 file.\n")
test.must_match(obj_ + 'test21' + _obj, "This is a .f95 file.\n")
-test.must_match(obj_ + 'test22' + _obj, "This is a .F95 file.\n")
+if not is_windows:
+ # Skip checking files we expect to differ in behavior
+ # based on file extension case
+ test.must_match(obj_ + 'test02' + _obj, "This is a .F file.\n")
+ test.must_match(obj_ + 'test04' + _obj, "This is a .FOR file.\n")
+ test.must_match(obj_ + 'test06' + _obj, "This is a .FTN file.\n")
+ test.must_match(obj_ + 'test08' + _obj, "This is a .FPP file.\n")
+ test.must_match(obj_ + 'test14' + _obj, "This is a .F95 file.\n")
+ test.must_match(obj_ + 'test22' + _obj, "This is a .F95 file.\n")
test.pass_test()
diff --git a/test/Fortran/SHFORTRANCOM.py b/test/Fortran/SHFORTRANCOM.py
index 56958b2..5c42864 100644
--- a/test/Fortran/SHFORTRANCOM.py
+++ b/test/Fortran/SHFORTRANCOM.py
@@ -25,6 +25,9 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
+import sys
+
+is_windows = ( sys.platform =='win32')
_python_ = TestSCons._python_
_obj = TestSCons._shobj
@@ -59,13 +62,16 @@ test.write('test08.FPP', "This is a .FPP file.\n/*fortranpp*/\n")
test.run(arguments = '.', stderr = None)
test.must_match(obj_ + 'test01' + _obj, "This is a .f file.\n")
-test.must_match(obj_ + 'test02' + _obj, "This is a .F file.\n")
test.must_match(obj_ + 'test03' + _obj, "This is a .for file.\n")
-test.must_match(obj_ + 'test04' + _obj, "This is a .FOR file.\n")
test.must_match(obj_ + 'test05' + _obj, "This is a .ftn file.\n")
-test.must_match(obj_ + 'test06' + _obj, "This is a .FTN file.\n")
test.must_match(obj_ + 'test07' + _obj, "This is a .fpp file.\n")
-test.must_match(obj_ + 'test08' + _obj, "This is a .FPP file.\n")
+if not is_windows:
+ # Skip checking files we expect to differ in behavior
+ # based on file extension case
+ test.must_match(obj_ + 'test02' + _obj, "This is a .F file.\n")
+ test.must_match(obj_ + 'test04' + _obj, "This is a .FOR file.\n")
+ test.must_match(obj_ + 'test06' + _obj, "This is a .FTN file.\n")
+ test.must_match(obj_ + 'test08' + _obj, "This is a .FPP file.\n")
test.pass_test()