Skip to content

Commit 71b2a2a

Browse files
committed
new fpm not in path. use "fpm run"
1 parent e214011 commit 71b2a2a

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

fpm/test/help_test/help_test.f90

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ program help_test
1414
! run a variety of "fpm help" variations and verify expected files are generated
1515
character(len=*),parameter :: cmds(*) = [character(len=80) :: &
1616
! build manual as pieces using various help commands
17-
'fpm --help > fpm_scratch_help.txt',&
18-
'fpm help new >> fpm_scratch_help.txt',&
19-
'fpm build --help >> fpm_scratch_help.txt',&
20-
'fpm help run >> fpm_scratch_help.txt',&
21-
'fpm help test >> fpm_scratch_help.txt',&
22-
'fpm help runner >> fpm_scratch_help.txt',&
23-
'fpm help list >> fpm_scratch_help.txt',&
24-
'fpm help help >> fpm_scratch_help.txt',&
25-
'fpm --version >> fpm_scratch_help.txt',&
17+
'fpm run -- --help > fpm_scratch_help.txt',&
18+
'fpm run -- help new >> fpm_scratch_help.txt',&
19+
'fpm run -- build --help >> fpm_scratch_help.txt',&
20+
'fpm run -- help run >> fpm_scratch_help.txt',&
21+
'fpm run -- help test >> fpm_scratch_help.txt',&
22+
'fpm run -- help runner >> fpm_scratch_help.txt',&
23+
'fpm run -- help list >> fpm_scratch_help.txt',&
24+
'fpm run -- help help >> fpm_scratch_help.txt',&
25+
'fpm run -- --version >> fpm_scratch_help.txt',&
2626
! generate manual
27-
'fpm help manual > fpm_scratch_manual.txt']
27+
'fpm run -- help manual > fpm_scratch_manual.txt']
2828

29-
!'fpm >> fpm_scratch_help.txt',&
30-
!'fpm --list >> fpm_scratch_help.txt',&
31-
!'fpm list --list >> fpm_scratch_help.txt',&
29+
!'fpm run >> fpm_scratch_help.txt',&
30+
!'fpm run -- --list >> fpm_scratch_help.txt',&
31+
!'fpm run -- list --list >> fpm_scratch_help.txt',&
3232
character(len=*),parameter :: names(*)=[character(len=10) :: 'fpm','new','build','run','test','runner','list','help']
3333

3434
write(*,'(g0:,1x)')'TEST help SUBCOMMAND STARTED'
@@ -40,7 +40,7 @@ program help_test
4040
! check that output has NAME SYNOPSIS DESCRIPTION
4141
do i=1,size(names)
4242
write(*,*)'check '//names(i)//' for NAME SYNOPSIS DESCRIPTION'
43-
path= 'fpm help '//names(i)//' >fpm_scratch_help.txt'
43+
path= 'fpm run -- help '//names(i)//' >fpm_scratch_help.txt'
4444
message=''
4545
call execute_command_line(path,exitstat=estat,cmdstat=cstat,cmdmsg=message)
4646
write(*,'(*(g0))')'CMD=',path,' EXITSTAT=',estat,' CMDSTAT=',cstat,' MESSAGE=',trim(message)

0 commit comments

Comments
 (0)