@@ -31,6 +31,7 @@ subroutine collect_manifest(testsuite)
31
31
& new_unittest(" dependency-gitpath" , test_dependency_gitpath, should_fail= .true. ), &
32
32
& new_unittest(" dependency-nourl" , test_dependency_nourl, should_fail= .true. ), &
33
33
& new_unittest(" dependency-gitconflict" , test_dependency_gitconflict, should_fail= .true. ), &
34
+ & new_unittest(" dependency-invalid-git" , test_dependency_invalid_git, should_fail= .true. ), &
34
35
& new_unittest(" dependency-wrongkey" , test_dependency_wrongkey, should_fail= .true. ), &
35
36
& new_unittest(" dependencies-empty" , test_dependencies_empty), &
36
37
& new_unittest(" dependencies-typeerror" , test_dependencies_typeerror, should_fail= .true. ), &
@@ -350,6 +351,29 @@ subroutine test_dependency_gitconflict(error)
350
351
end subroutine test_dependency_gitconflict
351
352
352
353
354
+ ! > Try to create a git dependency with invalid source format
355
+ subroutine test_dependency_invalid_git (error )
356
+ use fpm_manifest_dependency
357
+ use fpm_toml, only : new_table, add_table, toml_table, set_value
358
+
359
+ ! > Error handling
360
+ type (error_t), allocatable , intent (out ) :: error
361
+
362
+ type (toml_table) :: table
363
+ type (toml_table), pointer :: child
364
+ integer :: stat
365
+ type (dependency_config_t) :: dependency
366
+
367
+ call new_table(table)
368
+ table% key = ' example'
369
+ call add_table(table, ' git' , child)
370
+ call set_value(child, ' path' , ' ../../package' )
371
+
372
+ call new_dependency(dependency, table, error= error)
373
+
374
+ end subroutine test_dependency_invalid_git
375
+
376
+
353
377
! > Try to create a dependency with conflicting entries
354
378
subroutine test_dependency_wrongkey (error )
355
379
use fpm_manifest_dependency
0 commit comments