./ratfor -o test.f ./test.r
g77 test.f -g -O2 -o test
./test > test.out
diff test.out ./test.std
rm -f test test.f test.out
./ratfor -o testw.f ./testw.r
g77 testw.f -g -O2 -o testw
./testw > testw.out
diff testw.out ./testw.std
rm -f testw testw.f testw.out
./ratfor -o testdo.f ./testdo.r
g77 testdo.f -g -O2 -o testdo
./testdo > testdo.out
diff testdo.out ./testdo.std
rm -f testdo testdo.f testdo.out
./ratfor -o testsw.f ./testsw.r
g77 testsw.f -g -O2 -o testsw
./testsw > testsw.out
diff testsw.out ./testsw.std
rm -f testsw testsw.f testsw.out
./ratfor -o testdf.f ./testdf.r
g77 testdf.f -g -O2 -o testdf
./testdf > testdf.out
diff testdf.out ./testdf.std
rm -f testdf testdf.f testdf.out
./ratfor -C ./testcl.r | sed 1d > testcl-C.f
diff testcl-C.f ./testcl-C.f.std
rm -f testcl-C.f
./ratfor -l 500 ./testcl.r | sed 1d > testcl-l500.f
diff testcl-l500.f ./testcl-l500.f.std
rm -f testcl-l500.f
./ratfor -\? >testhelp.out 2>&1 || true
diff testhelp.out ./testhelp.std
rm -f testhelp.out
./ratfor nonexistent.r >testnonexist.out 2>&1 || true
diff testnonexist.out ./testnonexist.std
rm -f testnonexist.out
./ratfor -l >test-lnoarg.out 2>&1 || true
diff test-lnoarg.out ./test-lnoarg.std
rm -f test-lnoarg.out
./ratfor -o teststr.f ./teststr.r
gcc -c ./teststrc.c -o teststrc.o
g77 teststr.f -g -O2 teststrc.o -o teststr
./teststr > teststr.out
diff teststr.out ./teststr.std
rm -f teststr teststr.f teststr.out teststrc.o
cp ./testin2.r.in testin2.r
./ratfor < ./testin.r > testin.f
g77 testin.f -o testin
./testin > testin.out
diff testin.out ./testin.std
rm -f testin testin.out testin.f testin2.r
./ratfor ./testnoeos.r 2>&1 | sed -n '/\(error\|warning\)/p' >testnoeos.out
diff testnoeos.out ./testnoeos.std
rm -f testnoeos.out
./ratfor ./teststrseq.r | egrep '(integer|data).*(one|two)' >teststrseq.out
diff teststrseq.out ./teststrseq.std
rm -f teststrseq.out
if no errors reported above, the check completed successfully
