diff --git a/.github/workflows/ci-tests-gfortran-latest.yml b/.github/workflows/ci-tests-gfortran-latest.yml index 59f87ef9dea..ae952f86670 100644 --- a/.github/workflows/ci-tests-gfortran-latest.yml +++ b/.github/workflows/ci-tests-gfortran-latest.yml @@ -68,6 +68,10 @@ jobs: run: | meson install -C builddir + - name: Test modflow installation + run: | + meson test --verbose --no-rebuild -C builddir + - name: Get executables working-directory: autotest run: | diff --git a/.github/workflows/ci-tests-gfortran-previous.yml b/.github/workflows/ci-tests-gfortran-previous.yml index 1fe237ad166..e476d90049b 100644 --- a/.github/workflows/ci-tests-gfortran-previous.yml +++ b/.github/workflows/ci-tests-gfortran-previous.yml @@ -76,6 +76,10 @@ jobs: run: | meson install -C builddir + - name: Test modflow installation + run: | + meson test --verbose --no-rebuild -C builddir + - name: Get executables working-directory: autotest run: | diff --git a/.github/workflows/ci-tests-ifort.yml b/.github/workflows/ci-tests-ifort.yml index 990c1578017..494c0d35af6 100644 --- a/.github/workflows/ci-tests-ifort.yml +++ b/.github/workflows/ci-tests-ifort.yml @@ -77,6 +77,7 @@ jobs: run: | meson setup builddir -Ddebug=false --prefix=$(pwd) --libdir=bin meson install -C builddir + meson test --verbose --no-rebuild -C builddir cd autotest pytest -v --durations=0 get_exes.py @@ -88,6 +89,7 @@ jobs: meson setup builddir -Ddebug=false --prefix=$(pwd) --libdir=bin meson install -C builddir + meson test --verbose --no-rebuild -C builddir cd autotest pytest -v --durations=0 get_exes.py diff --git a/meson.build b/meson.build index 79e0a18c449..1fd28f862f3 100644 --- a/meson.build +++ b/meson.build @@ -96,3 +96,8 @@ subdir('utils') # add unit test directory # subdir('unittests') + +# meson tests to evaluate installation success +test('Test installation version', mf6exe, args : ['-v',]) +test('Test installation compiler', mf6exe, args : ['-c',]) +test('Test installation help', mf6exe, args : ['-h',]) diff --git a/src/meson.build b/src/meson.build index b79b4ac2230..83238eaacb0 100644 --- a/src/meson.build +++ b/src/meson.build @@ -175,4 +175,4 @@ mf6_external = static_library('mf6_external', external_libraries) mf6core = static_library('mf6core', modflow_sources, link_with: [mf6_external]) -executable('mf6', 'mf6.f90', link_with: [mf6core], install: true) +mf6exe = executable('mf6', 'mf6.f90', link_with: [mf6core], install: true)