aboutsummaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'run_tests.py')
-rwxr-xr-xrun_tests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/run_tests.py b/run_tests.py
index c594974..399ab49 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -208,6 +208,10 @@ def run_tests():
objctests = gather_tests('test cases/objc')
else:
objctests = []
+ if shutil.which('gfortran'):
+ fortrantests = gather_tests('test cases/fortran')
+ else:
+ fortrantests = []
try:
os.mkdir(test_build_dir)
except OSError:
@@ -260,6 +264,11 @@ def run_tests():
[run_and_log(logfile, t) for t in objctests]
else:
print('\nNo Objective C tests on this platform.\n')
+ if len(fortrantests) > 0:
+ print('\nRunning Fortran tests.\n')
+ [run_and_log(logfile, t) for t in fortrantests]
+ else:
+ print('\nNo Fortran tests on this platform.\n')
def check_file(fname):
linenum = 1