diff options
Diffstat (limited to 'ci/run_tests.bat')
-rwxr-xr-x | ci/run_tests.bat | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/ci/run_tests.bat b/ci/run_tests.bat index de45f24..0c0339c 100755 --- a/ci/run_tests.bat +++ b/ci/run_tests.bat @@ -14,13 +14,15 @@ fpm test if errorlevel 1 exit 1 rmdir fpm_scratch_* /s /q -build\gfortran_debug\app\fpm +for /f %%i in ('where /r build fpm.exe') do set fpm_path=%%i + +%fpm_path% if errorlevel 1 exit 1 cd ..\example_packages\hello_world if errorlevel 1 exit 1 -..\..\fpm\build\gfortran_debug\app\fpm build +%fpm_path% build if errorlevel 1 exit 1 .\build\gfortran_debug\app\hello_world @@ -30,7 +32,7 @@ if errorlevel 1 exit 1 cd ..\hello_fpm if errorlevel 1 exit 1 -..\..\fpm\build\gfortran_debug\app\fpm build +%fpm_path% build if errorlevel 1 exit 1 .\build\gfortran_debug\app\hello_fpm @@ -40,21 +42,21 @@ if errorlevel 1 exit 1 cd ..\circular_test if errorlevel 1 exit 1 -..\..\fpm\build\gfortran_debug\app\fpm build +%fpm_path% build if errorlevel 1 exit 1 cd ..\circular_example if errorlevel 1 exit 1 -..\..\fpm\build\gfortran_debug\app\fpm build +%fpm_path% build if errorlevel 1 exit 1 cd ..\hello_complex if errorlevel 1 exit 1 -..\..\fpm\build\gfortran_debug\app\fpm build +%fpm_path% build if errorlevel 1 exit 1 .\build\gfortran_debug\app\say_Hello @@ -73,7 +75,7 @@ if errorlevel 1 exit 1 cd ..\hello_complex_2 if errorlevel 1 exit 1 -..\..\fpm\build\gfortran_debug\app\fpm build +%fpm_path% build if errorlevel 1 exit 1 .\build\gfortran_debug\app\say_hello_world @@ -91,7 +93,7 @@ if errorlevel 1 exit 1 cd ..\auto_discovery_off if errorlevel 1 exit 1 -..\..\fpm\build\gfortran_debug\app\fpm build +%fpm_path% build if errorlevel 1 exit 1 .\build\gfortran_debug\app\auto_discovery_off @@ -108,7 +110,7 @@ if exist .\build\gfortran_debug\test\unused_test exit /B 1 cd ..\with_c if errorlevel 1 exit 1 -..\..\fpm\build\gfortran_debug\app\fpm build +%fpm_path% build if errorlevel 1 exit 1 .\build\gfortran_debug\app\with_c @@ -118,14 +120,14 @@ if errorlevel 1 exit 1 cd ..\submodules if errorlevel 1 exit 1 -..\..\fpm\build\gfortran_debug\app\fpm build +%fpm_path% build if errorlevel 1 exit 1 cd ..\program_with_module if errorlevel 1 exit 1 -..\..\fpm\build\gfortran_debug\app\fpm build +%fpm_path% build if errorlevel 1 exit 1 .\build\gfortran_debug\app\Program_with_module |