2017-04-15 17:06:56 -04:00
|
|
|
Before:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#SetUpLinterTest('fortran', 'gcc')
|
2017-04-15 17:06:56 -04:00
|
|
|
|
|
|
|
After:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-04-15 17:06:56 -04:00
|
|
|
|
|
|
|
Execute(The fortran gcc command callback should return the correct default string):
|
2018-08-02 18:44:12 -04:00
|
|
|
AssertLinter 'gcc', ale#Escape('gcc') . ' -S -x f95 -fsyntax-only -ffree-form -Wall -'
|
2017-04-15 17:06:56 -04:00
|
|
|
|
|
|
|
Execute(The fortran gcc command callback should let you set options):
|
|
|
|
let g:ale_fortran_gcc_options = '-Wotherthings'
|
|
|
|
|
2018-08-02 18:44:12 -04:00
|
|
|
AssertLinter 'gcc', ale#Escape('gcc') . ' -S -x f95 -fsyntax-only -ffree-form -Wotherthings -'
|
2017-04-15 17:06:56 -04:00
|
|
|
|
|
|
|
Execute(The fortran gcc command callback should let you use -ffixed-form):
|
|
|
|
let g:ale_fortran_gcc_use_free_form = 0
|
|
|
|
|
2018-08-02 18:44:12 -04:00
|
|
|
AssertLinter 'gcc', ale#Escape('gcc') . ' -S -x f95 -fsyntax-only -ffixed-form -Wall -'
|
2017-04-15 17:06:56 -04:00
|
|
|
|
|
|
|
Execute(The fortran executable should be configurable):
|
|
|
|
let g:ale_fortran_gcc_executable = 'gfortran'
|
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'gfortran',
|
2018-08-02 18:44:12 -04:00
|
|
|
\ ale#Escape('gfortran') . ' -S -x f95 -fsyntax-only -ffree-form -Wall -'
|