Skip to content

Commit 9fdb4fe

Browse files
committed
250824.221113.CST [skip ci] revise test_gfortran/ifx/ifort.yml
1 parent 9d1c85d commit 9fdb4fe

File tree

3 files changed

+33
-12
lines changed

3 files changed

+33
-12
lines changed

.github/workflows/test_gfortran.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ jobs:
101101
run: |
102102
which gcc && gcc --version && which gfortran && gfortran --version
103103
104+
- name: Revise Makefile.common to exclude r16 tests when the dimension is big
105+
if: ${{ matrix.testdim == 'big' }}
106+
shell: bash
107+
run: |
108+
cd fortran/tests/makefiles || exit 42
109+
$SEDI 's|\$(TST)_.*r16_d[0,1]_tst||g' Makefile.common && cat Makefile.common
110+
104111
- name: Revise string.f90, so that we know what is happening if assertion fails
105112
shell: bash
106113
run: |

.github/workflows/test_ifort.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,18 @@ jobs:
7777
if: startsWith(matrix.os, 'macos')
7878
run: bash .github/scripts/install_oneapi_macos.sh
7979

80-
- name: Revise bign
81-
shell: bash # N.B.: We must use bash and use [[:space:]] instead of \s for compatibility with macOS.
80+
- name: Revise Makefile.common to exclude r16 tests when the dimension is big
81+
if: ${{ matrix.testdim == 'big' }}
82+
shell: bash
8283
run: |
83-
cd fortran/tests
84-
$SEDI 's|::[[:space:]]*bign[[:space:]]*=.*$|:: bign = 200_IK|' test_bobyqa.f90
84+
cd fortran/tests/makefiles || exit 42
85+
$SEDI 's|\$(TST)_.*r16_d[0,1]_tst||g' Makefile.common && cat Makefile.common
86+
87+
# - name: Revise bign
88+
# shell: bash # N.B.: We must use bash and use [[:space:]] instead of \s for compatibility with macOS.
89+
# run: |
90+
# cd fortran/tests || exit 42
91+
# $SEDI 's|::[[:space:]]*bign[[:space:]]*=.*$|:: bign = 200_IK|' test_bobyqa.f90
8592

8693
- name: Revise cobyla/trustregion.f90 to see what is wrong with ubuntu-latest, i8, cobyla, -O3, small
8794
if: ${{ matrix.os == 'ubuntu-latest' && matrix.solver == 'cobyla' && matrix.testdim == 'small' }}

.github/workflows/test_ifx.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,22 @@ jobs:
7878
if: startsWith(matrix.os, 'macos')
7979
run: bash .github/scripts/install_oneapi_macos.sh
8080

81-
- name: Revise bign
82-
shell: bash # N.B.: We must use bash and use [[:space:]] instead of \s for compatibility with macOS.
81+
- name: Revise Makefile.common to exclude r16 tests when the dimension is big
82+
if: ${{ matrix.testdim == 'big' }}
83+
shell: bash
8384
run: |
84-
cd fortran/tests
85-
$SEDI 's|::[[:space:]]*bign[[:space:]]*=.*$|:: bign = 200_IK|' test_newuoa.f90
86-
$SEDI 's|::[[:space:]]*bign[[:space:]]*=.*$|:: bign = 200_IK|' test_bobyqa.f90
87-
$SEDI 's|::[[:space:]]*bign[[:space:]]*=.*$|:: bign = 200_IK|' test_lincoa.f90
88-
$SEDI 's|::[[:space:]]*bign[[:space:]]*=.*$|:: bign = 70_IK|' test_uobyqa.f90
89-
$SEDI 's|::[[:space:]]*bign[[:space:]]*=.*$|:: bign = 70_IK|' test_cobyla.f90
85+
cd fortran/tests/makefiles || exit 42
86+
$SEDI 's|\$(TST)_.*r16_d[0,1]_tst||g' Makefile.common && cat Makefile.common
87+
88+
# - name: Revise bign
89+
# shell: bash # N.B.: We must use bash and use [[:space:]] instead of \s for compatibility with macOS.
90+
# run: |
91+
# cd fortran/tests || exit 42
92+
# $SEDI 's|::[[:space:]]*bign[[:space:]]*=.*$|:: bign = 200_IK|' test_newuoa.f90
93+
# $SEDI 's|::[[:space:]]*bign[[:space:]]*=.*$|:: bign = 200_IK|' test_bobyqa.f90
94+
# $SEDI 's|::[[:space:]]*bign[[:space:]]*=.*$|:: bign = 200_IK|' test_lincoa.f90
95+
# $SEDI 's|::[[:space:]]*bign[[:space:]]*=.*$|:: bign = 70_IK|' test_uobyqa.f90
96+
# $SEDI 's|::[[:space:]]*bign[[:space:]]*=.*$|:: bign = 70_IK|' test_cobyla.f90
9097

9198
- name: Conduct the test
9299
shell: bash

0 commit comments

Comments
 (0)