Skip to content

Commit 2078cbb

Browse files
committed
test passing xdp and qp c-preprocessing flags with fpm
1 parent 3be9d61 commit 2078cbb

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/fpm-deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
4141
- run: | # Use fpm gnu ci to check xdp and qp
4242
python config/fypp_deployment.py --with_xdp --with_qp
43-
fpm test --profile release
43+
fpm test --profile release --flag '-DWITH_XDP -DWITH_QP'
4444
4545
# Update and deploy the f90 files generated by github-ci to the `stdlib-fpm` branch.
4646
- name: Deploy 🚀

test/math/test_meshgrid.fypp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ contains
7979
${"".join(f"xm{j}," for j in range(1, rank + 1)).removesuffix(",")}$ &
8080
${OPTIONAL_PART_IN_SIGNATURE(INDEXING)}$ )
8181
#:for j in range(1, rank + 1)
82-
call check(error, maxval(abs(xm${j}$ - xm${j}$_exact)) == ZERO)
82+
call check(error, maxval(abs(xm${j}$ - xm${j}$_exact)), ZERO)
8383
if (allocated(error)) return
8484
#:endfor
8585
end subroutine test_${RName}$

test/math/test_stdlib_math.fypp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ contains
170170
type(error_type), allocatable, intent(out) :: error
171171
! type: real(sp), kind: sp
172172
! valid test case
173-
call check(error, clip(3.025_sp, -5.77_sp, 3.025_sp) == 3.025_sp)
173+
call check(error, clip(3.025_sp, -5.77_sp, 3.025_sp), 3.025_sp)
174174
if (allocated(error)) return
175-
call check(error, clip(0.0_sp, -1578.025_sp, -59.68_sp) == -59.68_sp)
175+
call check(error, clip(0.0_sp, -1578.025_sp, -59.68_sp), -59.68_sp)
176176
if (allocated(error)) return
177177
end subroutine test_clip_rsp
178178

@@ -215,9 +215,9 @@ contains
215215
#:if WITH_QP
216216
! type: real(qp), kind: qp
217217
! valid test case
218-
call check(error, clip(3.025_qp, -5.77_qp, 3.025_qp) == 3.025_qp)
218+
call check(error, clip(3.025_qp, -5.77_qp, 3.025_qp), 3.025_qp)
219219
if (allocated(error)) return
220-
call check(error, clip(-55891546.2_qp, -8958133457.23_qp, -689712245.23_qp) == -689712245.23_qp)
220+
call check(error, clip(-55891546.2_qp, -8958133457.23_qp, -689712245.23_qp), -689712245.23_qp)
221221
if (allocated(error)) return
222222
#:else
223223
call skip_test(error, "Quadruple precision is not enabled")
@@ -230,9 +230,9 @@ contains
230230
type(error_type), allocatable, intent(out) :: error
231231
#:if WITH_QP
232232
! invalid test case
233-
call check(error, clip(3.025_qp, 3.025_qp, -5.77_qp) == 3.025_qp)
233+
call check(error, clip(3.025_qp, 3.025_qp, -5.77_qp), 3.025_qp)
234234
if (allocated(error)) return
235-
call check(error, clip(-55891546.2_qp, -689712245.23_qp, -8958133457.23_qp) == -689712245.23_qp)
235+
call check(error, clip(-55891546.2_qp, -689712245.23_qp, -8958133457.23_qp), -689712245.23_qp)
236236
if (allocated(error)) return
237237
#:else
238238
call skip_test(error, "Quadruple precision is not enabled")

0 commit comments

Comments
 (0)