14 integer :: utest_testcount, utest_errorcount
20 character(len=*),
intent(in) :: name
23 print *,
"testing ", name,
":"
27 if (utest_errorcount == 0)
then
28 print *,
"all",utest_testcount,
"test(s) succeeded"
30 write(0,*) utest_errorcount,
" out of ", &
31 utest_testcount,
" test(s) failed"
36 character(len=*),
intent(in) :: name
38 print *,
"start timing ", name
43 print
'(" elapsed time:",f6.3," seconds.")',
end-start
48 logical,
intent(in) :: arg
49 integer,
intent(in) :: line
50 character(len=*),
intent(in) :: file
52 utest_testcount = utest_testcount + 1
54 print *,
"- test", utest_testcount,
"succeeded"
57 utest_errorcount = utest_errorcount + 1
58 write(0,*)
"- test", utest_testcount,
"failed (",file,
" :", line,
")"
65 logical,
intent(in) :: arg
66 integer,
intent(in) :: line
67 character(len=*),
intent(in) :: file
69 utest_testcount = utest_testcount + 1
71 print *,
"- test", utest_testcount,
"succeeded"
74 utest_errorcount = utest_errorcount + 1
75 write(0,*)
"- test", utest_testcount,
"failed (",file,
" :", line,
")"
82 if (utest_errorcount > 0)
then
subroutine, public start_test(name)
subroutine, public stop_test()
subroutine, public stop_timer()
subroutine, public exit_tests()
subroutine, public test_r(arg, file, line)
subroutine, public start_timer(name)
subroutine, public test_v_r(arg, file, line)