Skip to content

Commit ebc38f2

Browse files
committed
add test option to fpm_install_settings
1 parent da6d1bf commit ebc38f2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/fpm_command_line.f90

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ module fpm_command_line
108108
character(len=:), allocatable :: prefix
109109
character(len=:), allocatable :: bindir
110110
character(len=:), allocatable :: libdir
111+
character(len=:), allocatable :: testdir
111112
character(len=:), allocatable :: includedir
112113
logical :: no_rebuild
113114
end type
@@ -533,8 +534,8 @@ subroutine get_command_line_settings(cmd_settings)
533534
case('install')
534535
call set_args(common_args // compiler_args // '&
535536
& --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"', &
538539
help_install, version_text)
539540

540541
call check_build_vals()
@@ -544,6 +545,7 @@ subroutine get_command_line_settings(cmd_settings)
544545
archiver = sget('archiver')
545546
allocate(install_settings, source=fpm_install_settings(&
546547
list=lget('list'), &
548+
build_tests=lget('test'), &
547549
profile=val_profile,&
548550
prune=.not.lget('no-prune'), &
549551
compiler=val_compiler, &
@@ -558,6 +560,7 @@ subroutine get_command_line_settings(cmd_settings)
558560
verbose=lget('verbose')))
559561
call get_char_arg(install_settings%prefix, 'prefix')
560562
call get_char_arg(install_settings%libdir, 'libdir')
563+
call get_char_arg(install_settings%testdir, 'testdir')
561564
call get_char_arg(install_settings%bindir, 'bindir')
562565
call get_char_arg(install_settings%includedir, 'includedir')
563566
call move_alloc(install_settings, cmd_settings)

0 commit comments

Comments
 (0)