From f85f291ba5ebd66bbb258e2dc859f4dcc95017c5 Mon Sep 17 00:00:00 2001 From: LKedward Date: Wed, 2 Sep 2020 12:17:47 +0100 Subject: Update: fortran fpm test script. --- ci/run_tests.bat | 2 +- ci/run_tests.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ci') diff --git a/ci/run_tests.bat b/ci/run_tests.bat index 99d0296..482cf79 100755 --- a/ci/run_tests.bat +++ b/ci/run_tests.bat @@ -18,5 +18,5 @@ if errorlevel 1 exit 1 ..\..\..\fpm\build\gfortran_debug\app\fpm build if errorlevel 1 exit 1 -.\hello_world +.\build\gfortran_debug\hello_world if errorlevel 1 exit 1 diff --git a/ci/run_tests.sh b/ci/run_tests.sh index 59724d5..e046910 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -8,4 +8,4 @@ fpm run build/gfortran_debug/app/fpm cd ../test/example_packages/hello_world ../../../fpm/build/gfortran_debug/app/fpm build -./hello_world +./build/gfortran_debug/hello_world -- cgit v1.2.3 From 58ef8896388385d0e79aedb49996367aeacdbb0c Mon Sep 17 00:00:00 2001 From: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> Date: Wed, 2 Sep 2020 21:45:25 +0200 Subject: Add unit tests for fpm-fortran --- ci/run_tests.bat | 3 +++ ci/run_tests.sh | 1 + 2 files changed, 4 insertions(+) (limited to 'ci') diff --git a/ci/run_tests.bat b/ci/run_tests.bat index 99d0296..33d7071 100755 --- a/ci/run_tests.bat +++ b/ci/run_tests.bat @@ -9,6 +9,9 @@ if errorlevel 1 exit 1 fpm run if errorlevel 1 exit 1 +fpm test +if errorlevel 1 exit 1 + build\gfortran_debug\app\fpm if errorlevel 1 exit 1 diff --git a/ci/run_tests.sh b/ci/run_tests.sh index 59724d5..c740cd8 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -5,6 +5,7 @@ set -ex cd fpm fpm build fpm run +fpm test build/gfortran_debug/app/fpm cd ../test/example_packages/hello_world ../../../fpm/build/gfortran_debug/app/fpm build -- cgit v1.2.3 From 5500927beb1a81a39cf3f155a66b8fe5cad5b769 Mon Sep 17 00:00:00 2001 From: LKedward Date: Mon, 7 Sep 2020 10:10:27 +0100 Subject: Update: test scripts for fortran fpm Fortran fpm can now build 'hello_complex' example --- ci/run_tests.bat | 21 ++++++++++++++++++++- ci/run_tests.sh | 10 +++++++++- 2 files changed, 29 insertions(+), 2 deletions(-) (limited to 'ci') diff --git a/ci/run_tests.bat b/ci/run_tests.bat index ea50a70..9435e0d 100755 --- a/ci/run_tests.bat +++ b/ci/run_tests.bat @@ -21,5 +21,24 @@ if errorlevel 1 exit 1 ..\..\..\fpm\build\gfortran_debug\app\fpm build if errorlevel 1 exit 1 -.\build\gfortran_debug\hello_world +.\build\gfortran_debug\app\hello_world if errorlevel 1 exit 1 + + +cd ..\hello_complex +if errorlevel 1 exit 1 + +..\..\..\fpm\build\gfortran_debug\app\fpm build +if errorlevel 1 exit 1 + +.\build\gfortran_debug\app\say_Hello +if errorlevel 1 exit 1 + +.\build\gfortran_debug\app\say_goodbye +if errorlevel 1 exit 1 + +.\build\gfortran_debug\test\greet_test +if errorlevel 1 exit 1 + +.\build\gfortran_debug\test\farewell_test +if errorlevel 1 exit 1 \ No newline at end of file diff --git a/ci/run_tests.sh b/ci/run_tests.sh index 0d9e7b1..3033c2a 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -7,6 +7,14 @@ fpm build fpm run fpm test build/gfortran_debug/app/fpm + cd ../test/example_packages/hello_world ../../../fpm/build/gfortran_debug/app/fpm build -./build/gfortran_debug/hello_world +./build/gfortran_debug/app/hello_world + +cd ../hello_complex +../../../fpm/build/gfortran_debug/app/fpm build +./build/gfortran_debug/app/say_Hello +./build/gfortran_debug/app/say_goodbye +./build/gfortran_debug/test/greet_test +./build/gfortran_debug/test/farewell_test \ No newline at end of file -- cgit v1.2.3