File: testing_fortran_small.patch

package info (click to toggle)
adios2 2.11.0%2Bdfsg1-1exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 39,972 kB
  • sloc: ansic: 250,306; cpp: 189,875; yacc: 18,929; f90: 15,117; python: 8,047; perl: 7,126; sh: 3,031; lisp: 1,106; xml: 1,011; lex: 948; makefile: 598
file content (36 lines) | stat: -rw-r--r-- 1,479 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: Drew Parsons <dparsons@debian.org>
Date: Sun, 20 Aug 2023 14:11:21 +0200
Subject: processes fortran SmallData library before processing binding tests

Otherwise MPI tests don't have the small_data module available
(MPI behaviour differs from Serial behaviour)
---
 testing/adios2/bindings/fortran/CMakeLists.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Index: adios2/testing/adios2/bindings/fortran/CMakeLists.txt
===================================================================
--- adios2.orig/testing/adios2/bindings/fortran/CMakeLists.txt	2025-12-06 11:24:16.683166728 +0100
+++ adios2/testing/adios2/bindings/fortran/CMakeLists.txt	2025-12-06 11:24:16.679699445 +0100
@@ -3,6 +3,10 @@
 # accompanying file Copyright.txt for details.
 #------------------------------------------------------------------------------#
 
+add_library(SmallTestData_f OBJECT SmallTestData_mod.F90)
+add_library(ISmallTestData_f INTERFACE)
+target_sources(ISmallTestData_f INTERFACE $<TARGET_OBJECTS:SmallTestData_f>)
+
 macro(fortran_add_test_helper testname mpi)
   set(test_targets "")
   if(NOT "${mpi}" MATCHES "^MPI_(ALLOW|ONLY|NONE)$")
@@ -87,10 +91,6 @@
   )
 endif()
 
-add_library(SmallTestData_f OBJECT SmallTestData_mod.F90)
-add_library(ISmallTestData_f INTERFACE)
-target_sources(ISmallTestData_f INTERFACE $<TARGET_OBJECTS:SmallTestData_f>)
-
 foreach(tgt
     ${Test.Bindings.Fortran.BPWriteTypes-TARGETS}
     ${Test.Bindings.Fortran.Remove-TARGETS}