Skip to content

Commit

Permalink
Merge pull request #4307 from eisenhauer/HTTests
Browse files Browse the repository at this point in the history
Uniquify filenames in HeatTransfer tests
  • Loading branch information
eisenhauer authored Aug 15, 2024
2 parents a71d718 + 5e28d03 commit 57abaff
Show file tree
Hide file tree
Showing 16 changed files with 109 additions and 92 deletions.
20 changes: 10 additions & 10 deletions testing/examples/heatTransfer/TestBPFileMx1.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ add_test(NAME HeatTransfer.BP3.Mx1.Write
${MPIEXEC_NUMPROC_FLAG} 4
$<TARGET_FILE:adios2_simulations_heatTransferWrite>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_bp3.xml
Write.bp 2 2 10 10 10 10
WriteBPFileMx1.bp 2 2 10 10 10 10
)
set_tests_properties(HeatTransfer.BP3.Mx1.Write PROPERTIES PROCESSORS 4)

Expand All @@ -19,21 +19,21 @@ add_test(NAME HeatTransfer.BP3.Mx1.Read
${MPIEXEC_NUMPROC_FLAG} 1
$<TARGET_FILE:adios2_simulations_heatTransferRead>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_bp3.xml
Write.bp Read.bp 1 1
WriteBPFileMx1.bp ReadBPFileMx1.bp 1 1
)

add_test(NAME HeatTransfer.BP3.Mx1.Dump
COMMAND ${CMAKE_COMMAND}
-DARG1=-d
-DINPUT_FILE=Read.bp
-DOUTPUT_FILE=Dump.txt
-DINPUT_FILE=ReadBPFileMx1.bp
-DOUTPUT_FILE=DumpBPFileMx1.txt
-P "${PROJECT_BINARY_DIR}/$<CONFIG>/bpls.cmake"
)

add_test(NAME HeatTransfer.BP3.Mx1.Validate
COMMAND ${DIFF_COMMAND} -u -w
${CMAKE_CURRENT_SOURCE_DIR}/HeatTransfer.Dump.txt
Dump.txt
DumpBPFileMx1.txt
)

SetupTestPipeline(HeatTransfer.BP3.Mx1 "Write;Read;Dump;Validate" TRUE)
Expand All @@ -45,7 +45,7 @@ add_test(NAME HeatTransfer.BP4.Mx1.Write
${MPIEXEC_NUMPROC_FLAG} 4
$<TARGET_FILE:adios2_simulations_heatTransferWrite>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_bp4.xml
Write.bp 2 2 10 10 10 10
WriteBPFileMx1.bp 2 2 10 10 10 10
)
set_tests_properties(HeatTransfer.BP4.Mx1.Write PROPERTIES PROCESSORS 4)

Expand All @@ -54,21 +54,21 @@ add_test(NAME HeatTransfer.BP4.Mx1.Read
${MPIEXEC_NUMPROC_FLAG} 1
$<TARGET_FILE:adios2_simulations_heatTransferRead>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_bp4.xml
Write.bp Read.bp 1 1
WriteBPFileMx1.bp ReadBPFileMx1.bp 1 1
)

add_test(NAME HeatTransfer.BP4.Mx1.Dump
COMMAND ${CMAKE_COMMAND}
-DARG1=-d
-DINPUT_FILE=Read.bp
-DOUTPUT_FILE=Dump.txt
-DINPUT_FILE=ReadBPFileMx1.bp
-DOUTPUT_FILE=DumpBPFileMx1.txt
-P "${PROJECT_BINARY_DIR}/$<CONFIG>/bpls.cmake"
)

add_test(NAME HeatTransfer.BP4.Mx1.Validate
COMMAND ${DIFF_COMMAND} -u -w
${CMAKE_CURRENT_SOURCE_DIR}/HeatTransfer.Dump.txt
Dump.txt
DumpBPFileMx1.txt
)

SetupTestPipeline(HeatTransfer.BP4.Mx1 "Write;Read;Dump;Validate" TRUE)
16 changes: 8 additions & 8 deletions testing/examples/heatTransfer/TestBPFileMx1_zfp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ add_test(NAME HeatTransfer.BP3.zfp.Mx1.Write
${MPIEXEC_NUMPROC_FLAG} 4
$<TARGET_FILE:adios2_simulations_heatTransferWrite>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_bp3_zfp.xml
Write.bp 2 2 10 10 10 10
WriteBPFileMx1_zfp.bp 2 2 10 10 10 10
)
set_tests_properties(HeatTransfer.BP3.zfp.Mx1.Write PROPERTIES PROCESSORS 4)

Expand All @@ -19,14 +19,14 @@ add_test(NAME HeatTransfer.BP3.zfp.Mx1.Read
${MPIEXEC_NUMPROC_FLAG} 1
$<TARGET_FILE:adios2_simulations_heatTransferRead>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_bp3.xml
Write.bp Read.bp 1 1
WriteBPFileMx1_zfp.bp ReadBPFileMx1_zfp.bp 1 1
)

add_test(NAME HeatTransfer.BP3.zfp.Mx1.Dump
COMMAND ${CMAKE_COMMAND}
-DARG1=-d
-DINPUT_FILE=Read.bp
-DOUTPUT_FILE=Dump.txt
-DINPUT_FILE=ReadBPFileMx1_zfp.bp
-DOUTPUT_FILE=DumpBPFileMx1_zfp.txt
-P "${PROJECT_BINARY_DIR}/$<CONFIG>/bpls.cmake"
)

Expand All @@ -38,7 +38,7 @@ add_test(NAME HeatTransfer.BP4.zfp.Mx1.Write
${MPIEXEC_NUMPROC_FLAG} 4
$<TARGET_FILE:adios2_simulations_heatTransferWrite>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_bp4_zfp.xml
Write.bp 2 2 10 10 10 10
WriteBPFile4Mx1_zfp.bp 2 2 10 10 10 10
)
set_tests_properties(HeatTransfer.BP3.zfp.Mx1.Write PROPERTIES PROCESSORS 4)

Expand All @@ -47,14 +47,14 @@ add_test(NAME HeatTransfer.BP4.zfp.Mx1.Read
${MPIEXEC_NUMPROC_FLAG} 1
$<TARGET_FILE:adios2_simulations_heatTransferRead>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_bp4.xml
Write.bp Read.bp 1 1
WriteBPFile4Mx1_zfp.bp ReadBPFile4Mx1_zfp.bp 1 1
)

add_test(NAME HeatTransfer.BP4.zfp.Mx1.Dump
COMMAND ${CMAKE_COMMAND}
-DARG1=-d
-DINPUT_FILE=Read.bp
-DOUTPUT_FILE=Dump.txt
-DINPUT_FILE=ReadBPFile4Mx1_zfp.bp
-DOUTPUT_FILE=DumpBPFile4Mx1_zfp.txt
-P "${PROJECT_BINARY_DIR}/$<CONFIG>/bpls.cmake"
)

Expand Down
20 changes: 10 additions & 10 deletions testing/examples/heatTransfer/TestBPFileMxM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ add_test(NAME HeatTransfer.BP3.MxM.Write
${MPIEXEC_NUMPROC_FLAG} 4
$<TARGET_FILE:adios2_simulations_heatTransferWrite>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_bp3.xml
Write.bp 2 2 10 10 10 10
WriteBPFileMxM.bp 2 2 10 10 10 10
)
set_tests_properties(HeatTransfer.BP3.MxM.Write PROPERTIES PROCESSORS 4)

Expand All @@ -20,22 +20,22 @@ add_test(NAME HeatTransfer.BP3.MxM.Read
${MPIEXEC_NUMPROC_FLAG} 4
$<TARGET_FILE:adios2_simulations_heatTransferRead>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_bp3.xml
Write.bp Read.bp 2 2
WriteBPFileMxM.bp ReadBPFileMxM.bp 2 2
)
set_tests_properties(HeatTransfer.BP3.MxM.Read PROPERTIES PROCESSORS 4)

add_test(NAME HeatTransfer.BP3.MxM.Dump
COMMAND ${CMAKE_COMMAND}
-DARG1=-d
-DINPUT_FILE=Read.bp
-DOUTPUT_FILE=Dump.txt
-DINPUT_FILE=ReadBPFileMxM.bp
-DOUTPUT_FILE=DumpBPFileMxM.txt
-P "${PROJECT_BINARY_DIR}/$<CONFIG>/bpls.cmake"
)

add_test(NAME HeatTransfer.BP3.MxM.Validate
COMMAND ${DIFF_COMMAND} -u -w
${CMAKE_CURRENT_SOURCE_DIR}/HeatTransfer.Dump.txt
Dump.txt
DumpBPFileMxM.txt
)

SetupTestPipeline(HeatTransfer.BP3.MxM "Write;Read;Dump;Validate" True)
Expand All @@ -46,7 +46,7 @@ add_test(NAME HeatTransfer.BP4.MxM.Write
${MPIEXEC_NUMPROC_FLAG} 4
$<TARGET_FILE:adios2_simulations_heatTransferWrite>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_bp4.xml
Write.bp 2 2 10 10 10 10
WriteBPFile4MxM.bp 2 2 10 10 10 10
)
set_tests_properties(HeatTransfer.BP4.MxM.Write PROPERTIES PROCESSORS 4)

Expand All @@ -55,22 +55,22 @@ add_test(NAME HeatTransfer.BP4.MxM.Read
${MPIEXEC_NUMPROC_FLAG} 4
$<TARGET_FILE:adios2_simulations_heatTransferRead>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_bp4.xml
Write.bp Read.bp 2 2
WriteBPFile4MxM.bp ReadBPFile4MxM.bp 2 2
)
set_tests_properties(HeatTransfer.BP4.MxM.Read PROPERTIES PROCESSORS 4)

add_test(NAME HeatTransfer.BP4.MxM.Dump
COMMAND ${CMAKE_COMMAND}
-DARG1=-d
-DINPUT_FILE=Read.bp
-DOUTPUT_FILE=Dump.txt
-DINPUT_FILE=ReadBPFile4MxM.bp
-DOUTPUT_FILE=DumpBPFile4MxM.txt
-P "${PROJECT_BINARY_DIR}/$<CONFIG>/bpls.cmake"
)

add_test(NAME HeatTransfer.BP4.MxM.Validate
COMMAND ${DIFF_COMMAND} -u -w
${CMAKE_CURRENT_SOURCE_DIR}/HeatTransfer.Dump.txt
Dump.txt
DumpBPFile4MxM.txt
)

SetupTestPipeline(HeatTransfer.BP4.MxM "Write;Read;Dump;Validate" True)
20 changes: 10 additions & 10 deletions testing/examples/heatTransfer/TestBPFileMxN.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ add_test(NAME HeatTransfer.BP3.MxN.Write
${MPIEXEC_NUMPROC_FLAG} 4
$<TARGET_FILE:adios2_simulations_heatTransferWrite>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_bp3.xml
Write.bp 2 2 10 10 10 10
WriteBPFileMxN.bp 2 2 10 10 10 10
)
set_tests_properties(HeatTransfer.BP3.MxN.Write PROPERTIES PROCESSORS 4)

Expand All @@ -20,22 +20,22 @@ add_test(NAME HeatTransfer.BP3.MxN.Read
${MPIEXEC_NUMPROC_FLAG} 3
$<TARGET_FILE:adios2_simulations_heatTransferRead>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_bp3.xml
Write.bp Read.bp 1 3
WriteBPFileMxN.bp ReadBPFileMxN.bp 1 3
)
set_tests_properties(HeatTransfer.BP3.MxN.Read PROPERTIES PROCESSORS 3)

add_test(NAME HeatTransfer.BP3.MxN.Dump
COMMAND ${CMAKE_COMMAND}
-DARG1=-d
-DINPUT_FILE=Read.bp
-DOUTPUT_FILE=Dump.txt
-DINPUT_FILE=ReadBPFileMxN.bp
-DOUTPUT_FILE=DumpBPFileMxN.txt
-P "${PROJECT_BINARY_DIR}/$<CONFIG>/bpls.cmake"
)

add_test(NAME HeatTransfer.BP3.MxN.Validate
COMMAND ${DIFF_COMMAND} -u -w
${CMAKE_CURRENT_SOURCE_DIR}/HeatTransfer.Dump.txt
Dump.txt
DumpBPFileMxN.txt
)

SetupTestPipeline(HeatTransfer.BP3.MxN "Write;Read;Dump;Validate" True)
Expand All @@ -46,7 +46,7 @@ add_test(NAME HeatTransfer.BP4.MxN.Write
${MPIEXEC_NUMPROC_FLAG} 4
$<TARGET_FILE:adios2_simulations_heatTransferWrite>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_bp4.xml
Write.bp 2 2 10 10 10 10
WriteBPFile4MxN.bp 2 2 10 10 10 10
)
set_tests_properties(HeatTransfer.BP4.MxN.Write PROPERTIES PROCESSORS 4)

Expand All @@ -55,22 +55,22 @@ add_test(NAME HeatTransfer.BP4.MxN.Read
${MPIEXEC_NUMPROC_FLAG} 3
$<TARGET_FILE:adios2_simulations_heatTransferRead>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_bp4.xml
Write.bp Read.bp 1 3
WriteBPFile4MxN.bp ReadBPFile4MxN.bp 1 3
)
set_tests_properties(HeatTransfer.BP4.MxN.Read PROPERTIES PROCESSORS 3)

add_test(NAME HeatTransfer.BP4.MxN.Dump
COMMAND ${CMAKE_COMMAND}
-DARG1=-d
-DINPUT_FILE=Read.bp
-DOUTPUT_FILE=Dump.txt
-DINPUT_FILE=ReadBPFile4MxN.bp
-DOUTPUT_FILE=DumpBPFile4MxN.txt
-P "${PROJECT_BINARY_DIR}/$<CONFIG>/bpls.cmake"
)

add_test(NAME HeatTransfer.BP4.MxN.Validate
COMMAND ${DIFF_COMMAND} -u -w
${CMAKE_CURRENT_SOURCE_DIR}/HeatTransfer.Dump.txt
Dump.txt
DumpBPFile4MxN.txt
)

SetupTestPipeline(HeatTransfer.BP4.MxN "Write;Read;Dump;Validate" True)
10 changes: 6 additions & 4 deletions testing/examples/heatTransfer/TestInlineMxM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,24 @@ add_test(NAME HeatTransfer.Inline.MxM
${MPIEXEC_NUMPROC_FLAG} 4
$<TARGET_FILE:adios2_simulations_heatTransferInline>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_inline.xml
Read.bp 2 2 10 10 10 10
ReadInlineMxN.bp 2 2 10 10 10 10
)
set_tests_properties(HeatTransfer.Inline.MxM PROPERTIES PROCESSORS 8)

add_test(NAME HeatTransfer.Inline.MxM.Dump
WORKING_DIRECTORY InlineMxN
COMMAND ${CMAKE_COMMAND}
-DARG1=-d
-DINPUT_FILE=Read.bp
-DOUTPUT_FILE=Dump.txt
-DINPUT_FILE=ReadInlineMxN.bp
-DOUTPUT_FILE=DumpInlineMxN.txt
-P "${PROJECT_BINARY_DIR}/$<CONFIG>/bpls.cmake"
)

add_test(NAME HeatTransfer.Inline.MxM.Validate
WORKING_DIRECTORY InlineMxN
COMMAND ${DIFF_COMMAND} -u -w
${CMAKE_CURRENT_SOURCE_DIR}/HeatTransfer.Dump.txt
Dump.txt
DumpInlineMxN.txt
)

SetupTestPipeline(HeatTransfer.Inline.MxM ";Dump;Validate" TRUE)
12 changes: 7 additions & 5 deletions testing/examples/heatTransfer/TestSSCMx1.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,29 @@ add_test(NAME HeatTransfer.InsituMPI.Mx1
${MPIEXEC_NUMPROC_FLAG} 4
$<TARGET_FILE:adios2_simulations_heatTransferWrite>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_ssc.xml
Write.bp 2 2 10 10 10 10
WriteInsituMx1.bp 2 2 10 10 10 10
:
${MPIEXEC_NUMPROC_FLAG} 1
$<TARGET_FILE:adios2_simulations_heatTransferRead>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_ssc.xml
Write.bp Read.bp 1 1
WriteInsituMx1.bp ReadInsituMx1.bp 1 1
)
set_tests_properties(HeatTransfer.InsituMPI.Mx1 PROPERTIES PROCESSORS 5)

add_test(NAME HeatTransfer.InsituMPI.Mx1.Dump
WORKING_DIRECTORY InsituMx1
COMMAND ${CMAKE_COMMAND}
-DARG1=-d
-DINPUT_FILE=Read.bp
-DOUTPUT_FILE=Dump.txt
-DINPUT_FILE=ReadInsituMx1.bp
-DOUTPUT_FILE=DumpInsituMx1.txt
-P "${PROJECT_BINARY_DIR}/$<CONFIG>/bpls.cmake"
)

add_test(NAME HeatTransfer.InsituMPI.Mx1.Validate
WORKING_DIRECTORY InsituMx1
COMMAND ${DIFF_COMMAND} -u -w
${CMAKE_CURRENT_SOURCE_DIR}/HeatTransfer.Dump.txt
Dump.txt
DumpInsituMx1.txt
)

SetupTestPipeline(HeatTransfer.InsituMPI.Mx1 ";Dump;Validate" TRUE)
12 changes: 7 additions & 5 deletions testing/examples/heatTransfer/TestSSCMxM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,29 @@ add_test(NAME HeatTransfer.SSC.MxM
${MPIEXEC_NUMPROC_FLAG} 4
$<TARGET_FILE:adios2_simulations_heatTransferWrite>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_ssc.xml
Write.bp 2 2 10 10 10 10
WriteSSCMxM.bp 2 2 10 10 10 10
:
${MPIEXEC_NUMPROC_FLAG} 4
$<TARGET_FILE:adios2_simulations_heatTransferRead>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_ssc.xml
Write.bp Read.bp 2 2
WriteSSCMxM.bp ReadSSCMxM.bp 2 2
)
set_tests_properties(HeatTransfer.SSC.MxM PROPERTIES PROCESSORS 8)

add_test(NAME HeatTransfer.SSC.MxM.Dump
WORKING_DIRECTORY SSCMxM
COMMAND ${CMAKE_COMMAND}
-DARG1=-d
-DINPUT_FILE=Read.bp
-DOUTPUT_FILE=Dump.txt
-DINPUT_FILE=ReadSSCMxM.bp
-DOUTPUT_FILE=DumpSSCMxM.txt
-P "${PROJECT_BINARY_DIR}/$<CONFIG>/bpls.cmake"
)

add_test(NAME HeatTransfer.SSC.MxM.Validate
WORKING_DIRECTORY SSCMxM
COMMAND ${DIFF_COMMAND} -u -w
${CMAKE_CURRENT_SOURCE_DIR}/HeatTransfer.Dump.txt
Dump.txt
DumpSSCMxM.txt
)

SetupTestPipeline(HeatTransfer.SSC.MxM ";Dump;Validate" TRUE)
10 changes: 5 additions & 5 deletions testing/examples/heatTransfer/TestSSCMxN.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@ add_test(NAME HeatTransfer.InsituMPI.MxN
${MPIEXEC_NUMPROC_FLAG} 4
$<TARGET_FILE:adios2_simulations_heatTransferWrite>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_ssc.xml
Write.bp 2 2 10 10 10 10
WriteSSCMxN.bp 2 2 10 10 10 10
:
${MPIEXEC_NUMPROC_FLAG} 3
$<TARGET_FILE:adios2_simulations_heatTransferRead>
${PROJECT_SOURCE_DIR}/examples/simulations/heatTransfer/heat_ssc.xml
Write.bp Read.bp 1 3
WriteSSCMxN.bp ReadSSCMxN.bp 1 3
)
set_tests_properties(HeatTransfer.InsituMPI.MxN PROPERTIES PROCESSORS 7)

add_test(NAME HeatTransfer.InsituMPI.MxN.Dump
COMMAND ${CMAKE_COMMAND}
-DARG1=-d
-DINPUT_FILE=Read.bp
-DOUTPUT_FILE=Dump.txt
-DINPUT_FILE=ReadSSCMxN.bp
-DOUTPUT_FILE=DumpSSCMxN.txt
-P "${PROJECT_BINARY_DIR}/$<CONFIG>/bpls.cmake"
)

add_test(NAME HeatTransfer.InsituMPI.MxN.Validate
COMMAND ${DIFF_COMMAND} -u -w
${CMAKE_CURRENT_SOURCE_DIR}/HeatTransfer.Dump.txt
Dump.txt
DumpSSCMxN.txt
)

SetupTestPipeline(HeatTransfer.InsituMPI.MxN ";Dump;Validate" TRUE)
Loading

0 comments on commit 57abaff

Please sign in to comment.