aboutsummaryrefslogtreecommitdiff
path: root/ci/run_tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/run_tests.sh')
-rwxr-xr-xci/run_tests.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/ci/run_tests.sh b/ci/run_tests.sh
index 7412fba..f1c4dff 100755
--- a/ci/run_tests.sh
+++ b/ci/run_tests.sh
@@ -15,12 +15,20 @@ rm -rf fpm_scratch_*/
fpm test $@
rm -rf fpm_scratch_*/
-# Build example packages
f_fpm_path="$(fpm run $@ --runner echo)"
+
+# Let fpm build itself
+"${f_fpm_path}" build
+
+# Install fpm into local directory
+"${f_fpm_path}" install --prefix "$PWD/_dist" --no-rebuild
+
+# Build example packages
cd ../example_packages/
rm -rf ./*/build
cd hello_world
+
"${f_fpm_path}" build
./build/gfortran_debug/app/hello_world
"${f_fpm_path}" run
@@ -52,6 +60,7 @@ cd ../hello_complex_2
cd ../with_examples
"${f_fpm_path}" build
+./build/gfortran_debug/example/demo-prog
./build/gfortran_debug/app/demo-prog
cd ../auto_discovery_off