Skip to content

Commit e515796

Browse files
committed
Update: unit tests with new prune flag.
1 parent c5c7e1a commit e515796

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

test/fpm_test/test_module_dependencies.f90

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ subroutine test_library_module_use(error)
8181
provides=[string_t('my_mod_2')], &
8282
uses=[string_t('my_mod_1')])
8383

84-
call targets_from_sources(targets,model,error)
84+
call targets_from_sources(targets,model,.false.,error)
8585
if (allocated(error)) return
8686

8787
if (allocated(error)) then
@@ -151,7 +151,7 @@ subroutine test_scope(exe_scope,error)
151151
scope=exe_scope, &
152152
uses=[string_t('my_mod_1')])
153153

154-
call targets_from_sources(targets,model,error)
154+
call targets_from_sources(targets,model,.false.,error)
155155
if (allocated(error)) return
156156

157157
if (size(targets) /= 4) then
@@ -204,7 +204,7 @@ subroutine test_program_with_module(error)
204204
provides=[string_t('app_mod')], &
205205
uses=[string_t('app_mod')])
206206

207-
call targets_from_sources(targets,model,error)
207+
call targets_from_sources(targets,model,.false.,error)
208208
if (allocated(error)) return
209209

210210
if (size(targets) /= 2) then
@@ -266,7 +266,7 @@ subroutine test_scope(exe_scope,error)
266266
scope=exe_scope, &
267267
uses=[string_t('app_mod2')])
268268

269-
call targets_from_sources(targets,model,error)
269+
call targets_from_sources(targets,model,.false.,error)
270270
if (allocated(error)) return
271271

272272
if (size(targets) /= 4) then
@@ -320,7 +320,7 @@ subroutine test_missing_library_use(error)
320320
provides=[string_t('my_mod_2')], &
321321
uses=[string_t('my_mod_3')])
322322

323-
call targets_from_sources(targets,model,error)
323+
call targets_from_sources(targets,model,.false.,error)
324324

325325
end subroutine test_missing_library_use
326326

@@ -346,7 +346,7 @@ subroutine test_missing_program_use(error)
346346
scope=FPM_SCOPE_APP, &
347347
uses=[string_t('my_mod_2')])
348348

349-
call targets_from_sources(targets,model,error)
349+
call targets_from_sources(targets,model,.false.,error)
350350

351351
end subroutine test_missing_program_use
352352

@@ -373,7 +373,7 @@ subroutine test_invalid_library_use(error)
373373
provides=[string_t('my_mod')], &
374374
uses=[string_t('app_mod')])
375375

376-
call targets_from_sources(targets,model,error)
376+
call targets_from_sources(targets,model,.false.,error)
377377

378378
end subroutine test_invalid_library_use
379379

@@ -399,7 +399,7 @@ subroutine test_subdirectory_module_use(error)
399399
scope=FPM_SCOPE_APP, &
400400
uses=[string_t('app_mod')])
401401

402-
call targets_from_sources(targets,model,error)
402+
call targets_from_sources(targets,model,.false.,error)
403403

404404
end subroutine test_subdirectory_module_use
405405

@@ -530,7 +530,7 @@ subroutine test_tree_shake_module(error)
530530
scope=FPM_SCOPE_APP, &
531531
uses=[string_t('my_mod_2')])
532532

533-
call targets_from_sources(targets,model,error)
533+
call targets_from_sources(targets,model,prune=.true.,error=error)
534534
if (allocated(error)) return
535535

536536
if (size(targets) /= 5) then
@@ -589,7 +589,7 @@ subroutine test_invalid_subdirectory_module_use(error)
589589
scope=FPM_SCOPE_APP, &
590590
uses=[string_t('app_mod')])
591591

592-
call targets_from_sources(targets,model,error)
592+
call targets_from_sources(targets,model,.false.,error)
593593

594594
end subroutine test_invalid_subdirectory_module_use
595595

0 commit comments

Comments
 (0)