1
-
2
- ! ****************************************************************************
3
- !
4
- ! PROGRAM: jsonfortrantest
5
- !
6
- ! PURPOSE: Entry point for the console application.
7
- !
8
- ! runs through all the tests in the tests folder returns 1 on shut down if there are any errors.
1
+ ! *****************************************************************************************
2
+ ! >
3
+ ! Entry point for the unified unit test application.
9
4
!
10
- ! ****************************************************************************
5
+ ! Runs through all the tests in the `tests` folder
6
+ ! Returns 1 if there are any errors.
11
7
12
- program jsonfortrantest
8
+ program jsonfortrantest
13
9
14
10
use jf_test_1_mod , only: test_1
15
11
use jf_test_2_mod , only: test_2
@@ -29,7 +25,7 @@ program jsonfortrantest
29
25
use jf_test_16_mod , only: test_16
30
26
use jf_test_17_mod , only: test_17
31
27
use jf_test_18_mod , only: test_18
32
- use jf_test_19_mod , only: test_19
28
+ use jf_test_19_mod , only: test_19
33
29
use jf_test_20_mod , only: test_20
34
30
use jf_test_21_mod , only: test_21
35
31
use jf_test_22_mod , only: test_22
@@ -38,43 +34,45 @@ program jsonfortrantest
38
34
use jf_test_25_mod , only: test_25
39
35
use jf_test_26_mod , only: test_26
40
36
use jf_test_27_mod , only: test_27
41
- use jf_test_29_mod , only: test_29
42
-
43
-
37
+ use jf_test_29_mod , only: test_29
38
+ use jf_test_30_mod , only: test_30
39
+
44
40
implicit none
45
- integer :: n_errors
46
41
47
- call test_1(n_errors)
48
- call test_2(n_errors)
49
- call test_3(n_errors)
50
- call test_4(n_errors)
51
- call test_5(n_errors)
52
- call test_6(n_errors)
53
- call test_7(n_errors)
54
- call test_8(n_errors)
55
- call test_9(n_errors)
56
- call test_10(n_errors)
57
- call test_11(n_errors)
58
- call test_12(n_errors)
59
- call test_13(n_errors)
60
- call test_14(n_errors)
61
- call test_15(n_errors)
62
- call test_16(n_errors)
63
- call test_17(n_errors)
64
- call test_18(n_errors)
65
- call test_19(n_errors)
66
- call test_20(n_errors)
67
- call test_21(n_errors)
68
- call test_22(n_errors)
69
- call test_23(n_errors)
70
- call test_24(n_errors)
71
- call test_25(n_errors)
72
- call test_26(n_errors)
73
- call test_27(n_errors)
74
- call test_29(n_errors)
75
-
76
- if (n_errors /= 0 ) stop 1
77
-
78
- end program jsonfortrantest
42
+ integer :: n_errors ! ! number of errors
43
+
44
+ n_errors = 0
45
+
46
+ call test_1(n_errors); if (n_errors /= 0 ) stop 1
47
+ call test_2(n_errors); if (n_errors /= 0 ) stop 1
48
+ call test_3(n_errors); if (n_errors /= 0 ) stop 1
49
+ call test_4(n_errors); if (n_errors /= 0 ) stop 1
50
+ call test_5(n_errors); if (n_errors /= 0 ) stop 1
51
+ call test_6(n_errors); if (n_errors /= 0 ) stop 1
52
+ call test_7(n_errors); if (n_errors /= 0 ) stop 1
53
+ call test_8(n_errors); if (n_errors /= 0 ) stop 1
54
+ call test_9(n_errors); if (n_errors /= 0 ) stop 1
55
+ call test_10(n_errors); if (n_errors /= 0 ) stop 1
56
+ call test_11(n_errors); if (n_errors /= 0 ) stop 1
57
+ call test_12(n_errors); if (n_errors /= 0 ) stop 1
58
+ call test_13(n_errors); if (n_errors /= 0 ) stop 1
59
+ call test_14(n_errors); if (n_errors /= 0 ) stop 1
60
+ call test_15(n_errors); if (n_errors /= 0 ) stop 1
61
+ call test_16(n_errors); if (n_errors /= 0 ) stop 1
62
+ call test_17(n_errors); if (n_errors /= 0 ) stop 1
63
+ call test_18(n_errors); if (n_errors /= 0 ) stop 1
64
+ call test_19(n_errors); if (n_errors /= 0 ) stop 1
65
+ call test_20(n_errors); if (n_errors /= 0 ) stop 1
66
+ call test_21(n_errors); if (n_errors /= 0 ) stop 1
67
+ call test_22(n_errors); if (n_errors /= 0 ) stop 1
68
+ call test_23(n_errors); if (n_errors /= 0 ) stop 1
69
+ call test_24(n_errors); if (n_errors /= 0 ) stop 1
70
+ call test_25(n_errors); if (n_errors /= 0 ) stop 1
71
+ call test_26(n_errors); if (n_errors /= 0 ) stop 1
72
+ call test_27(n_errors); if (n_errors /= 0 ) stop 1
73
+ call test_29(n_errors); if (n_errors /= 0 ) stop 1
74
+ call test_30(n_errors); if (n_errors /= 0 ) stop 1
79
75
76
+ end program jsonfortrantest
77
+ ! *****************************************************************************************
80
78
0 commit comments