diff options
author | Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> | 2021-06-03 12:18:36 +0200 |
---|---|---|
committer | Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> | 2021-06-03 12:18:36 +0200 |
commit | f6eed99634609851afe1af9d1c44412d966381fe (patch) | |
tree | ce9683cbfc56065c8853f89e83f75b1cbb13ab2e /ci | |
parent | 5855337167b53abcaa17452ea1c3c048acb34e09 (diff) | |
download | fpm-f6eed99634609851afe1af9d1c44412d966381fe.tar.gz fpm-f6eed99634609851afe1af9d1c44412d966381fe.zip |
Only test changing directories for one package
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/run_tests.sh | 137 |
1 files changed, 76 insertions, 61 deletions
diff --git a/ci/run_tests.sh b/ci/run_tests.sh index a31fa18..9db88e8 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -16,67 +16,82 @@ rm -rf ./*/build dir=hello_world "$fpm" -C $dir build "$fpm" -C $dir run --target hello_world -"$fpm" -C $dir run - -dir=hello_fpm -"$fpm" -C $dir build -"$fpm" -C $dir run --target hello_fpm - -dir=circular_test -"$fpm" -C $dir build - -dir=circular_example -"$fpm" -C $dir build - -dir=hello_complex -"$fpm" -C $dir build -"$fpm" -C $dir test -"$fpm" -C $dir run --target say_Hello -"$fpm" -C $dir run --target say_goodbye -"$fpm" -C $dir test --target greet_test -"$fpm" -C $dir test --target farewell_test - -dir=hello_complex_2 -"$fpm" -C $dir build -"$fpm" -C $dir run --target say_hello_world -"$fpm" -C $dir run --target say_goodbye -"$fpm" -C $dir test --target greet_test -"$fpm" -C $dir test --target farewell_test - -dir=with_examples -"$fpm" -C $dir build -"$fpm" -C $dir run --example --target demo-prog -"$fpm" -C $dir run --target demo-prog - -dir=auto_discovery_off -"$fpm" -C $dir build -"$fpm" -C $dir run --target auto_discovery_off -"$fpm" -C $dir test --target my_test -test ! -x $dir/build/gfortran_*/app/unused -test ! -x $dir/build/gfortran_*/test/unused_test - -dir=with_c -"$fpm" -C $dir build -"$fpm" -C $dir run --target with_c - -"$fpm" -C $dir build - -dir=program_with_module -"$fpm" -C $dir build -"$fpm" -C $dir run --target Program_with_module - -dir=link_executable -"$fpm" -C $dir build -"$fpm" -C $dir run --target gomp_test - -dir=fortran_includes -"$fpm" -C $dir build - -dir=c_includes -"$fpm" -C $dir build - -dir=c_header_only -"$fpm" -C $dir build +"$fpm" -C $dir/app run + +pushd hello_fpm +"$fpm" build +"$fpm" run --target hello_fpm +popd + +pushd circular_test +"$fpm" build +popd + +pushd circular_example +"$fpm" build +popd + +pushd hello_complex +"$fpm" build +"$fpm" test +"$fpm" run --target say_Hello +"$fpm" run --target say_goodbye +"$fpm" test --target greet_test +"$fpm" test --target farewell_test +popd + +pushd hello_complex_2 +"$fpm" build +"$fpm" run --target say_hello_world +"$fpm" run --target say_goodbye +"$fpm" test --target greet_test +"$fpm" test --target farewell_test +popd + +pushd with_examples +"$fpm" build +"$fpm" run --example --target demo-prog +"$fpm" run --target demo-prog +popd + +pushd auto_discovery_off +"$fpm" build +"$fpm" run --target auto_discovery_off +"$fpm" test --target my_test +test ! -x ./build/gfortran_*/app/unused +test ! -x ./build/gfortran_*/test/unused_test +popd + +pushd with_c +"$fpm" build +"$fpm" run --target with_c +popd + +pushd submodules +"$fpm" build +popd + +pushd program_with_module +"$fpm" build +"$fpm" run --target Program_with_module +popd + +pushd link_executable +"$fpm" build +"$fpm" run --target gomp_test +popd + +pushd fortran_includes +"$fpm" build +popd + +pushd c_includes +"$fpm" build +popd + +pushd c_header_only +"$fpm" build +popd # Cleanup rm -rf ./*/build |