@@ -14,12 +14,12 @@ program fpm_testing
14
14
implicit none
15
15
integer :: stat, is
16
16
character (len= :), allocatable :: suite_name, test_name
17
- type (testsuite_t), allocatable :: testsuite (:)
17
+ type (testsuite_t), allocatable :: suite (:)
18
18
character (len=* ), parameter :: fmt = ' ("#", *(1x, a))'
19
19
20
20
stat = 0
21
21
22
- testsuite = [ &
22
+ suite = [ &
23
23
& new_testsuite(" fpm_toml" , collect_toml), &
24
24
& new_testsuite(" fpm_manifest" , collect_manifest), &
25
25
& new_testsuite(" fpm_source_parsing" , collect_source_parsing), &
@@ -34,29 +34,29 @@ program fpm_testing
34
34
call get_argument(2 , test_name)
35
35
36
36
if (allocated (suite_name)) then
37
- is = select_suite(testsuite , suite_name)
38
- if (is > 0 .and. is <= size (testsuite )) then
37
+ is = select_suite(suite , suite_name)
38
+ if (is > 0 .and. is <= size (suite )) then
39
39
if (allocated (test_name)) then
40
- write (error_unit, fmt) " Suite:" , testsuite (is)% name
41
- call run_selected(testsuite (is)% collect, test_name, error_unit, stat)
40
+ write (error_unit, fmt) " Suite:" , suite (is)% name
41
+ call run_selected(suite (is)% collect, test_name, error_unit, stat)
42
42
if (stat < 0 ) then
43
43
error stop 1
44
44
end if
45
45
else
46
- write (error_unit, fmt) " Testing:" , testsuite (is)% name
47
- call run_testsuite(testsuite (is)% collect, error_unit, stat)
46
+ write (error_unit, fmt) " Testing:" , suite (is)% name
47
+ call run_testsuite(suite (is)% collect, error_unit, stat)
48
48
end if
49
49
else
50
50
write (error_unit, fmt) " Available testsuites"
51
- do is = 1 , size (testsuite )
52
- write (error_unit, fmt) " -" , testsuite (is)% name
51
+ do is = 1 , size (suite )
52
+ write (error_unit, fmt) " -" , suite (is)% name
53
53
end do
54
54
error stop 1
55
55
end if
56
56
else
57
- do is = 1 , size (testsuite )
58
- write (error_unit, fmt) " Testing:" , testsuite (is)% name
59
- call run_testsuite(testsuite (is)% collect, error_unit, stat)
57
+ do is = 1 , size (suite )
58
+ write (error_unit, fmt) " Testing:" , suite (is)% name
59
+ call run_testsuite(suite (is)% collect, error_unit, stat)
60
60
end do
61
61
end if
62
62
0 commit comments