@@ -108,6 +108,7 @@ module fpm_command_line
108
108
character (len= :), allocatable :: prefix
109
109
character (len= :), allocatable :: bindir
110
110
character (len= :), allocatable :: libdir
111
+ character (len= :), allocatable :: testdir
111
112
character (len= :), allocatable :: includedir
112
113
logical :: no_rebuild
113
114
end type
@@ -533,8 +534,8 @@ subroutine get_command_line_settings(cmd_settings)
533
534
case (' install' )
534
535
call set_args(common_args // compiler_args // ' &
535
536
& --no-rebuild F --prefix " " &
536
- & --list F &
537
- & --libdir "lib" --bindir "bin" --includedir "include"' , &
537
+ & --list F --test F &
538
+ & --libdir "lib" --bindir "bin" --testdir "test" -- includedir "include"' , &
538
539
help_install, version_text)
539
540
540
541
call check_build_vals()
@@ -544,6 +545,7 @@ subroutine get_command_line_settings(cmd_settings)
544
545
archiver = sget(' archiver' )
545
546
allocate (install_settings, source= fpm_install_settings(&
546
547
list= lget(' list' ), &
548
+ build_tests= lget(' test' ), &
547
549
profile= val_profile,&
548
550
prune= .not. lget(' no-prune' ), &
549
551
compiler= val_compiler, &
@@ -558,6 +560,7 @@ subroutine get_command_line_settings(cmd_settings)
558
560
verbose= lget(' verbose' )))
559
561
call get_char_arg(install_settings% prefix, ' prefix' )
560
562
call get_char_arg(install_settings% libdir, ' libdir' )
563
+ call get_char_arg(install_settings% testdir, ' testdir' )
561
564
call get_char_arg(install_settings% bindir, ' bindir' )
562
565
call get_char_arg(install_settings% includedir, ' includedir' )
563
566
call move_alloc(install_settings, cmd_settings)
0 commit comments