Skip to content

Commit 6e46fba

Browse files
authored
Merge pull request #271 from LKedward/fix-window-run-test
Fix Windows run and test commands
2 parents 849db65 + ed6222b commit 6e46fba

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

ci/run_tests.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ if errorlevel 1 exit 1
3636
.\build\gfortran_debug\app\hello_world
3737
if errorlevel 1 exit 1
3838

39+
%fpm_path% run
40+
if errorlevel 1 exit 1
41+
3942

4043
cd ..\hello_fpm
4144
if errorlevel 1 exit 1
@@ -71,6 +74,9 @@ del /q /f build
7174
%fpm_path% build
7275
if errorlevel 1 exit 1
7376

77+
%fpm_path% test
78+
if errorlevel 1 exit 1
79+
7480
.\build\gfortran_debug\app\say_Hello
7581
if errorlevel 1 exit 1
7682

ci/run_tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ rm -rf ./*/build
2323
cd hello_world
2424
"${f_fpm_path}" build
2525
./build/gfortran_debug/app/hello_world
26+
"${f_fpm_path}" run
2627

2728
cd ../hello_fpm
2829
"${f_fpm_path}" build
@@ -36,6 +37,7 @@ cd ../circular_example
3637

3738
cd ../hello_complex
3839
"${f_fpm_path}" build
40+
"${f_fpm_path}" test
3941
./build/gfortran_debug/app/say_Hello
4042
./build/gfortran_debug/app/say_goodbye
4143
./build/gfortran_debug/test/greet_test

fpm/fpm.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "fpm"
2-
version = "0.1.1"
2+
version = "0.1.2"
33
license = "MIT"
44
author = "fpm maintainers"
55
maintainer = ""

fpm/src/fpm.f90

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ subroutine build_model(model, settings, package, error)
175175
allocate(package_list(1))
176176
package_list(1)%s = package%name
177177

178+
178179
if(settings%compiler.eq.'')then
179180
model%fortran_compiler = 'gfortran'
180181
else

fpm/src/fpm_command_line.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ subroutine get_command_line_settings(cmd_settings)
111111
case default ; os_type = "OS Type: UNKNOWN"
112112
end select
113113
version_text = [character(len=80) :: &
114-
& 'Version: 0.1.1, alpha', &
114+
& 'Version: 0.1.2, alpha', &
115115
& 'Program: fpm(1)', &
116116
& 'Description: A Fortran package manager and build system', &
117117
& 'Home Page: https://github.com/fortran-lang/fpm', &

0 commit comments

Comments
 (0)