Skip to content

Commit 8119a06

Browse files
committed
250831.102300.CST update test_ifx.yml
1 parent 35470f3 commit 8119a06

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/test_ifx.yml

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

81-
- name: Revise Makefile.common to exclude r16 tests when the dimension is big or the solver is cobyla
81+
- name: Revise Makefile.common to exclude r16 and _d0 tests when the dimension is big or the solver is cobyla
8282
shell: bash
8383
if: ${{ matrix.testdim == 'big' || matrix.solver == 'cobyla' }}
8484
run: |
8585
cd fortran/tests/makefiles || exit 42
86-
$SEDI 's|\$(TST)_.*r16_d[0,1]_tst||g' Makefile.common && cat Makefile.common
86+
$SEDI 's|\$(TST)_.*r16_d[0,1]_tst||g' Makefile.common # Skip r16 tests
87+
$SEDI 's|\$(TESTDIM)\ =\ "big"|true|' Makefile.common # Skip _d0 tests even if TESTDIM is "small"
88+
$SEDI 's| since we are testing a BIG problem||' Makefile.common # Revise the message accordingly
89+
cat Makefile.common
8790
8891
- name: Revise bign
8992
shell: bash # N.B.: We must use bash and use [[:space:]] instead of \s for compatibility with macOS.
9093
run: |
9194
cd fortran/tests || exit 42
9295
$SEDI 's|::[[:space:]]*bign[[:space:]]*=.*$|:: bign = 200_IK|' test_bobyqa.f90
9396
$SEDI 's|::[[:space:]]*bign[[:space:]]*=.*$|:: bign = 150_IK|' test_lincoa.f90
94-
$SEDI 's|::[[:space:]]*NRAND_DFT[[:space:]]*=.*$|:: NRAND_DFT = 1|g' testsuite/param.f90
97+
$SEDI 's|::[[:space:]]*NRAND_DFT[[:space:]]*=.*$|:: NRAND_DFT = 1|g' testsuite/param.f90 # Number of random tests when the dimension is small
9598
cat test_bobyqa.f90 test_lincoa.f90 testsuite/param.f90
9699
97100
- name: Conduct the test

fortran/tests/testsuite/param.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module param_mod
66
!
77
! Started: September 2021
88
!
9-
! Last Modified: Wed 20 Aug 2025 05:52:21 PM CST
9+
! Last Modified: Sun 31 Aug 2025 10:18:53 AM CST
1010
!--------------------------------------------------------------------------------------------------!
1111

1212
use, non_intrinsic :: consts_mod, only : RP, IK, TENTH
@@ -17,7 +17,7 @@ module param_mod
1717
! Testing univariate problems can help us to uncover some bugs that can only occur in extreme cases.
1818
integer(IK), parameter :: MINDIM_DFT = 1
1919
integer(IK), parameter :: MAXDIM_DFT = 20
20-
integer(IK), parameter :: NRAND_DFT = 3
20+
integer(IK), parameter :: NRAND_DFT = 3 ! Default number of random tests when the dimension is small
2121
integer, parameter :: RANDSEED_DFT = 42
2222
real(RP), parameter :: NOISE_LEVEL_DFT = TENTH
2323
character(len=*), parameter :: NOISE_TYPE_DFT = 'gaussian'

0 commit comments

Comments
 (0)