Skip to content

Commit

Permalink
Clean up CI tests
Browse files Browse the repository at this point in the history
This change updates the gcc-4.8 tests to use the same naming convention and test
settings as the gcc-11 tests.

The change also adds OPENMP for the Fortran tests.

Signed-off-by: Nicolas Bock <nicolasbock@gmail.com>
  • Loading branch information
nicolasbock committed Feb 7, 2022
1 parent 7d333a9 commit 116de2f
Show file tree
Hide file tree
Showing 13 changed files with 180 additions and 20 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,22 @@ jobs:
fail-fast: false
matrix:
include:
- JOBNAME: gcc-4.8 test 1
TEST_SCRIPT: ./scripts/ci-gcc-4.8-test-1.sh
- JOBNAME: gcc-4.8 test 2
TEST_SCRIPT: ./scripts/ci-gcc-4.8-test-2.sh
- JOBNAME: gcc-4.8 test 3
TEST_SCRIPT: ./scripts/ci-gcc-4.8-test-3.sh
- JOBNAME: gcc-4.8 test 4
TEST_SCRIPT: ./scripts/ci-gcc-4.8-test-4.sh
- JOBNAME: gcc-4.8 C single real
TEST_SCRIPT: ./scripts/ci-gcc-4.8-C-single-real.sh
- JOBNAME: gcc-4.8 C double real
TEST_SCRIPT: ./scripts/ci-gcc-4.8-C-double-real.sh
- JOBNAME: gcc-4.8 C single complex
TEST_SCRIPT: ./scripts/ci-gcc-4.8-C-single-complex.sh
- JOBNAME: gcc-4.8 C double complex
TEST_SCRIPT: ./scripts/ci-gcc-4.8-C-double-complex.sh
- JOBNAME: gcc-4.8 Fortran single real
TEST_SCRIPT: ./scripts/ci-gcc-4.8-Fortran-single-real.sh
- JOBNAME: gcc-4.8 Fortran double real
TEST_SCRIPT: ./scripts/ci-gcc-4.8-Fortran-double-real.sh
- JOBNAME: gcc-4.8 Fortran single complex
TEST_SCRIPT: ./scripts/ci-gcc-4.8-Fortran-single-complex.sh
- JOBNAME: gcc-4.8 Fortran double complex
TEST_SCRIPT: ./scripts/ci-gcc-4.8-Fortran-double-complex.sh
- JOBNAME: gcc-11 C single real
TEST_SCRIPT: ./scripts/ci-gcc-11-C-single-real.sh
- JOBNAME: gcc-11 C double real
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci-gcc-11-Fortran-double-complex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export CC=${CC:-gcc-11}
export CXX=${CXX:-g++-11}
export FC=${FC:-gfortran-11}
export BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS:-no}
export BML_OPENMP=${BML_OPENMP:-no}
export BML_OPENMP=${BML_OPENMP:-yes}
export BML_INTERNAL_BLAS=${BML_INTERNAL_BLAS:-no}
export TESTING_EXTRA_ARGS=${TESTING_EXTRA_ARGS:-"-R fortran-.*-double_complex"}
export BML_VALGRIND=${BML_VALGRIND:-yes}
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci-gcc-11-Fortran-double-real.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export CC=${CC:-gcc-11}
export CXX=${CXX:-g++-11}
export FC=${FC:-gfortran-11}
export BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS:-no}
export BML_OPENMP=${BML_OPENMP:-no}
export BML_OPENMP=${BML_OPENMP:-yes}
export BML_INTERNAL_BLAS=${BML_INTERNAL_BLAS:-no}
export TESTING_EXTRA_ARGS=${TESTING_EXTRA_ARGS:-"-R fortran-.*-double_real"}
export BML_VALGRIND=${BML_VALGRIND:-yes}
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci-gcc-11-Fortran-single-complex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export CC=${CC:-gcc-11}
export CXX=${CXX:-g++-11}
export FC=${FC:-gfortran-11}
export BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS:-no}
export BML_OPENMP=${BML_OPENMP:-no}
export BML_OPENMP=${BML_OPENMP:-yes}
export BML_INTERNAL_BLAS=${BML_INTERNAL_BLAS:-no}
export TESTING_EXTRA_ARGS=${TESTING_EXTRA_ARGS:-"-R fortran-.*-single_complex"}
export BML_VALGRIND=${BML_VALGRIND:-yes}
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci-gcc-11-Fortran-single-real.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export CC=${CC:-gcc-11}
export CXX=${CXX:-g++-11}
export FC=${FC:-gfortran-11}
export BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS:-no}
export BML_OPENMP=${BML_OPENMP:-no}
export BML_OPENMP=${BML_OPENMP:-yes}
export BML_INTERNAL_BLAS=${BML_INTERNAL_BLAS:-no}
export TESTING_EXTRA_ARGS=${TESTING_EXTRA_ARGS:-"-R fortran-.*-single_real"}
export BML_VALGRIND=${BML_VALGRIND:-yes}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ basedir=$(readlink --canonicalize $(dirname $0)/..)
export CC=${CC:-gcc-4.8}
export CXX=${CXX:-g++-4.8}
export FC=${FC:-gfortran-4.8}
export BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS:-yes}
export BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS:-no}
export BML_OPENMP=${BML_OPENMP:-no}
export BML_INTERNAL_BLAS=${BML_INTERNAL_BLAS:-yes}
export BML_INTERNAL_BLAS=${BML_INTERNAL_BLAS:-no}
export TESTING_EXTRA_ARGS=${TESTING_EXTRA_ARGS:-"-R C-.*-double_complex"}
export BML_VALGRIND=${BML_VALGRIND:-yes}

[[ -f ${basedir}/scripts/ci-defaults.sh ]] && . ${basedir}/scripts/ci-defaults.sh

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ basedir=$(readlink --canonicalize $(dirname $0)/..)
export CC=${CC:-gcc-4.8}
export CXX=${CXX:-g++-4.8}
export FC=${FC:-gfortran-4.8}
export BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS:-yes}
export BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS:-no}
export BML_OPENMP=${BML_OPENMP:-no}
export BML_INTERNAL_BLAS=${BML_INTERNAL_BLAS:-no}
export TESTING_EXTRA_ARGS=${TESTING_EXTRA_ARGS:-"-R C-.*-double_real"}
export BML_VALGRIND=${BML_VALGRIND:-yes}

[[ -f ${basedir}/scripts/ci-defaults.sh ]] && . ${basedir}/scripts/ci-defaults.sh

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ basedir=$(readlink --canonicalize $(dirname $0)/..)
export CC=${CC:-gcc-4.8}
export CXX=${CXX:-g++-4.8}
export FC=${FC:-gfortran-4.8}
export BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS:-yes}
export BML_OPENMP=${BML_OPENMP:-yes}
export BML_INTERNAL_BLAS=${BML_INTERNAL_BLAS:-yes}
export BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS:-no}
export BML_OPENMP=${BML_OPENMP:-no}
export BML_INTERNAL_BLAS=${BML_INTERNAL_BLAS:-no}
export TESTING_EXTRA_ARGS=${TESTING_EXTRA_ARGS:-"-R C-.*-single_complex"}
export BML_VALGRIND=${BML_VALGRIND:-yes}

[[ -f ${basedir}/scripts/ci-defaults.sh ]] && . ${basedir}/scripts/ci-defaults.sh

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ basedir=$(readlink --canonicalize $(dirname $0)/..)
export CC=${CC:-gcc-4.8}
export CXX=${CXX:-g++-4.8}
export FC=${FC:-gfortran-4.8}
export BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS:-yes}
export BML_OPENMP=${BML_OPENMP:-yes}
export BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS:-no}
export BML_OPENMP=${BML_OPENMP:-no}
export BML_INTERNAL_BLAS=${BML_INTERNAL_BLAS:-no}
export TESTING_EXTRA_ARGS=${TESTING_EXTRA_ARGS:-"-R C-.*-single_real"}
export BML_VALGRIND=${BML_VALGRIND:-yes}

[[ -f ${basedir}/scripts/ci-defaults.sh ]] && . ${basedir}/scripts/ci-defaults.sh

Expand Down
36 changes: 36 additions & 0 deletions scripts/ci-gcc-4.8-Fortran-double-complex.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/bash

set -e -u -x

basedir=$(readlink --canonicalize $(dirname $0)/..)

export CC=${CC:-gcc-4.8}
export CXX=${CXX:-g++-4.8}
export FC=${FC:-gfortran-4.8}
export BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS:-no}
export BML_OPENMP=${BML_OPENMP:-yes}
export BML_INTERNAL_BLAS=${BML_INTERNAL_BLAS:-no}
export TESTING_EXTRA_ARGS=${TESTING_EXTRA_ARGS:-"-R fortran-.*-double_complex"}
export BML_VALGRIND=${BML_VALGRIND:-yes}

# [nicolasbock] Valgrind cannot handle a Debug build with valgrind and
# fails with:
#
# parse DIE(readdwarf3.c:3619): confused by:
# <2><60e>: Abbrev Number: 25 (DW_TAG_subrange_type)
# DW_AT_type : <42>
# DW_AT_upper_bound : 4 byte block: 91 c0 7b 6
# parse_type_DIE:
# --18653-- WARNING: Serious error when reading debug info
# --18653-- When reading debug info from /home/runner/work/bml/bml/build/tests/Fortran-tests/bml-testf:
# --18653-- confused by the above DIE
#
# Bionic ships with valgrind-3.13.0. This issue might be fixed with
# later versions.
#
# Re-review once we have a backport of valgrind for Bionic.
export CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-Release}

[[ -f ${basedir}/scripts/ci-defaults.sh ]] && . ${basedir}/scripts/ci-defaults.sh

${basedir}/build.sh --debug testing
36 changes: 36 additions & 0 deletions scripts/ci-gcc-4.8-Fortran-double-real.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/bash

set -e -u -x

basedir=$(readlink --canonicalize $(dirname $0)/..)

export CC=${CC:-gcc-4.8}
export CXX=${CXX:-g++-4.8}
export FC=${FC:-gfortran-4.8}
export BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS:-no}
export BML_OPENMP=${BML_OPENMP:-yes}
export BML_INTERNAL_BLAS=${BML_INTERNAL_BLAS:-no}
export TESTING_EXTRA_ARGS=${TESTING_EXTRA_ARGS:-"-R fortran-.*-double_real"}
export BML_VALGRIND=${BML_VALGRIND:-yes}

# [nicolasbock] Valgrind cannot handle a Debug build with valgrind and
# fails with:
#
# parse DIE(readdwarf3.c:3619): confused by:
# <2><60e>: Abbrev Number: 25 (DW_TAG_subrange_type)
# DW_AT_type : <42>
# DW_AT_upper_bound : 4 byte block: 91 c0 7b 6
# parse_type_DIE:
# --18653-- WARNING: Serious error when reading debug info
# --18653-- When reading debug info from /home/runner/work/bml/bml/build/tests/Fortran-tests/bml-testf:
# --18653-- confused by the above DIE
#
# Bionic ships with valgrind-3.13.0. This issue might be fixed with
# later versions.
#
# Re-review once we have a backport of valgrind for Bionic.
export CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-Release}

[[ -f ${basedir}/scripts/ci-defaults.sh ]] && . ${basedir}/scripts/ci-defaults.sh

${basedir}/build.sh --debug testing
36 changes: 36 additions & 0 deletions scripts/ci-gcc-4.8-Fortran-single-complex.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/bash

set -e -u -x

basedir=$(readlink --canonicalize $(dirname $0)/..)

export CC=${CC:-gcc-4.8}
export CXX=${CXX:-g++-4.8}
export FC=${FC:-gfortran-4.8}
export BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS:-no}
export BML_OPENMP=${BML_OPENMP:-yes}
export BML_INTERNAL_BLAS=${BML_INTERNAL_BLAS:-no}
export TESTING_EXTRA_ARGS=${TESTING_EXTRA_ARGS:-"-R fortran-.*-single_complex"}
export BML_VALGRIND=${BML_VALGRIND:-yes}

# [nicolasbock] Valgrind cannot handle a Debug build with valgrind and
# fails with:
#
# parse DIE(readdwarf3.c:3619): confused by:
# <2><60e>: Abbrev Number: 25 (DW_TAG_subrange_type)
# DW_AT_type : <42>
# DW_AT_upper_bound : 4 byte block: 91 c0 7b 6
# parse_type_DIE:
# --18653-- WARNING: Serious error when reading debug info
# --18653-- When reading debug info from /home/runner/work/bml/bml/build/tests/Fortran-tests/bml-testf:
# --18653-- confused by the above DIE
#
# Bionic ships with valgrind-3.13.0. This issue might be fixed with
# later versions.
#
# Re-review once we have a backport of valgrind for Bionic.
export CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-Release}

[[ -f ${basedir}/scripts/ci-defaults.sh ]] && . ${basedir}/scripts/ci-defaults.sh

${basedir}/build.sh --debug testing
36 changes: 36 additions & 0 deletions scripts/ci-gcc-4.8-Fortran-single-real.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/bash

set -e -u -x

basedir=$(readlink --canonicalize $(dirname $0)/..)

export CC=${CC:-gcc-4.8}
export CXX=${CXX:-g++-4.8}
export FC=${FC:-gfortran-4.8}
export BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS:-no}
export BML_OPENMP=${BML_OPENMP:-yes}
export BML_INTERNAL_BLAS=${BML_INTERNAL_BLAS:-no}
export TESTING_EXTRA_ARGS=${TESTING_EXTRA_ARGS:-"-R fortran-.*-single_real"}
export BML_VALGRIND=${BML_VALGRIND:-yes}

# [nicolasbock] Valgrind cannot handle a Debug build with valgrind and
# fails with:
#
# parse DIE(readdwarf3.c:3619): confused by:
# <2><60e>: Abbrev Number: 25 (DW_TAG_subrange_type)
# DW_AT_type : <42>
# DW_AT_upper_bound : 4 byte block: 91 c0 7b 6
# parse_type_DIE:
# --18653-- WARNING: Serious error when reading debug info
# --18653-- When reading debug info from /home/runner/work/bml/bml/build/tests/Fortran-tests/bml-testf:
# --18653-- confused by the above DIE
#
# Bionic ships with valgrind-3.13.0. This issue might be fixed with
# later versions.
#
# Re-review once we have a backport of valgrind for Bionic.
export CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-Release}

[[ -f ${basedir}/scripts/ci-defaults.sh ]] && . ${basedir}/scripts/ci-defaults.sh

${basedir}/build.sh --debug testing

0 comments on commit 116de2f

Please sign in to comment.