# Copyright (c) 1980 The Regents of the University of California.
# %sccs.include.proprietary.sh%
# @(#)testf77 5.2 (Berkeley) %G%
# This script will compile and test all of the f77 certification
# tests in then given fcvs directories
# Cleanup unnecessary files
ls f
* |
sort +0.2 |
awk '
# This awk program will create a script that will compile and run
# each fm program. Input will be in the order of number (???) then by:
# subroutines fs???.f ...
print "# Trap any signals causing termination of execution"
print " echo @@@@@@@@@@@@@@@@@@@@@@"
print " echo @@ Execution failed @@"
print " echo @@@@@@@@@@@@@@@@@@@@@@"
print " \" 3 4 5 6 7 8 10 12 13 14 15 16"
print "# Trap user interrupt"
print " echo @@@@@@@@@@@@@@@@"
print " echo @@ INTERRUPT @@"
print " echo @@@@@@@@@@@@@@@@"
/f[dm]/ && working == "true" {
printf "-o %s \n", runfile
if (substr (input, 3, 3) == substr (runfile, 3, 3))
print " 0) echo " runfile " completed successfully.;;"
print " *) echo " runfile " had a return code of $?.;;"
printf "echo ===== Testing %s =====\n", $1
printf "${FC} ${FFLAGS} %s ", $1
runfile = sprintf ("%s.out", substr ($1, 1, 5))
printf "-o %s \n", runfile
if (substr (input, 3, 3) == substr (runfile, 3, 3))
print " 0) echo " runfile " completed successfully.;;"
print " *) echo " runfile " had a return code of $?.;;"
print "\n# Script is complete."
# Now execute the script we created.
echo ===== test is complete
=====