Skip to content

Commit

Permalink
Remove fixes to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kwryankrattiger committed Nov 9, 2021
1 parent 554b607 commit 6d0017f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
16 changes: 8 additions & 8 deletions miniapps/mandelbrot/testing/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
if (BUILD_TESTING)

senseiAddTest(testMandelbrotHistogram
COMMAND $<TARGET_FILE:mandelbrot> -i 2 -l 2
COMMAND mandelbrot -i 2 -l 2
-f ${CMAKE_CURRENT_SOURCE_DIR}/mandelbrot_histogram.xml)

senseiAddTest(testMandelbrotHistogramPar
PARALLEL ${TEST_NP}
COMMAND $<TARGET_FILE:mandelbrot> -i 2 -l 2
COMMAND mandelbrot -i 2 -l 2
-f ${CMAKE_CURRENT_SOURCE_DIR}/mandelbrot_histogram.xml)

senseiAddTest(testMandelbrotVTKWriter
COMMAND $<TARGET_FILE:mandelbrot> -i 2 -l 2
COMMAND mandelbrot -i 2 -l 2
-f ${CMAKE_CURRENT_SOURCE_DIR}/mandelbrot_vtkwriter.xml
FEATURES VTK_IO VTK_MPI)

senseiAddTest(testMandelbrotVTKWriterPar
PARALLEL ${TEST_NP}
COMMAND $<TARGET_FILE:mandelbrot> -i 2 -l 2
COMMAND mandelbrot -i 2 -l 2
-f ${CMAKE_CURRENT_SOURCE_DIR}/mandelbrot_vtkwriter.xml
FEATURES VTK_IO VTK_MPI)

Expand All @@ -27,13 +27,13 @@ if (BUILD_TESTING)

senseiAddTest(testMandelbrotCatalyst
COMMAND
$<TARGET_FILE:mandelbrot> -i 2 -l 2
mandelbrot -i 2 -l 2
-f ${CMAKE_CURRENT_SOURCE_DIR}/mandelbrot_catalyst.xml
FEATURES CATALYST)

senseiAddTest(testMandelbrotCatalystPar
PARALLEL ${TEST_NP}
COMMAND $<TARGET_FILE:mandelbrot> -i 2 -l 2
COMMAND mandelbrot -i 2 -l 2
-f ${CMAKE_CURRENT_SOURCE_DIR}/mandelbrot_catalyst.xml
FEATURES CATALYST)

Expand All @@ -43,13 +43,13 @@ if (BUILD_TESTING)
endif()

senseiAddTest(testMandelbrotLibsim
COMMAND $<TARGET_FILE:mandelbrot> -i 2 -l 2
COMMAND mandelbrot -i 2 -l 2
-f ${CMAKE_CURRENT_SOURCE_DIR}/mandelbrot_libsim.xml
FEATURES LIBSIM)

senseiAddTest(testMandelbrotLibsimPar
PARALLEL ${TEST_NP}
COMMAND $<TARGET_FILE:mandelbrot> -i 2 -l 2
COMMAND mandelbrot -i 2 -l 2
-f ${CMAKE_CURRENT_SOURCE_DIR}/mandelbrot_libsim.xml
FEATURES LIBSIM)

Expand Down
26 changes: 13 additions & 13 deletions miniapps/oscillators/testing/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
if (BUILD_TESTING)

senseiAddTest(testOscillatorHistogram
COMMAND $<TARGET_FILE:oscillator> -t 1 -b ${TEST_NP} -g 1
COMMAND oscillator -t 1 -b ${TEST_NP} -g 1
-f ${CMAKE_CURRENT_SOURCE_DIR}/oscillator_histogram.xml
${CMAKE_CURRENT_SOURCE_DIR}/simple.osc)

senseiAddTest(testOscillatorHistogramPar
PARALLEL ${TEST_NP}
COMMAND $<TARGET_FILE:oscillator> -t 1 -b ${TEST_NP} -g 1
COMMAND oscillator -t 1 -b ${TEST_NP} -g 1
-f ${CMAKE_CURRENT_SOURCE_DIR}/oscillator_histogram.xml
${CMAKE_CURRENT_SOURCE_DIR}/simple.osc)

senseiAddTest(testOscillatorAutocorrelation
COMMAND $<TARGET_FILE:oscillator> -t 1 -b ${TEST_NP} -g 1
COMMAND oscillator -t 1 -b ${TEST_NP} -g 1
-f ${CMAKE_CURRENT_SOURCE_DIR}/oscillator_autocorrelation.xml
${CMAKE_CURRENT_SOURCE_DIR}/simple.osc)

senseiAddTest(testOscillatorAutocorrelationPar
PARALLEL ${TEST_NP}
COMMAND $<TARGET_FILE:oscillator> -t 1 -b ${TEST_NP} -g 1
COMMAND oscillator -t 1 -b ${TEST_NP} -g 1
-f ${CMAKE_CURRENT_SOURCE_DIR}/oscillator_autocorrelation.xml
${CMAKE_CURRENT_SOURCE_DIR}/simple.osc)

senseiAddTest(testOscillatorVTKWriter
COMMAND $<TARGET_FILE:oscillator> -t 1 -b ${TEST_NP} -g 1
COMMAND oscillator -t 1 -b ${TEST_NP} -g 1
-f ${CMAKE_CURRENT_SOURCE_DIR}/oscillator_vtkwriter.xml
${CMAKE_CURRENT_SOURCE_DIR}/simple.osc
FEATURES VTK_IO)

senseiAddTest(testOscillatorVTKWriterPar
PARALLEL ${TEST_NP}
COMMAND $<TARGET_FILE:oscillator> -t 1 -b ${TEST_NP} -g 1
COMMAND oscillator -t 1 -b ${TEST_NP} -g 1
-f ${CMAKE_CURRENT_SOURCE_DIR}/oscillator_vtkwriter.xml
${CMAKE_CURRENT_SOURCE_DIR}/simple.osc
FEATURES VTK_IO)
Expand All @@ -41,14 +41,14 @@ if (BUILD_TESTING)
endif()

senseiAddTest(testOscillatorCatalyst
COMMAND $<TARGET_FILE:oscillator> -t 1 -b ${TEST_NP} -g 1
COMMAND oscillator -t 1 -b ${TEST_NP} -g 1
-f ${CMAKE_CURRENT_SOURCE_DIR}/oscillator_catalyst.xml
${CMAKE_CURRENT_SOURCE_DIR}/simple.osc
FEATURES CATALYST)

senseiAddTest(testOscillatorCatalystPar
PARALLEL ${TEST_NP}
COMMAND $<TARGET_FILE:oscillator> -t 1 -b ${TEST_NP} -g 1
COMMAND oscillator -t 1 -b ${TEST_NP} -g 1
-f ${CMAKE_CURRENT_SOURCE_DIR}/oscillator_catalyst.xml
${CMAKE_CURRENT_SOURCE_DIR}/simple.osc
FEATURES CATALYST)
Expand All @@ -59,14 +59,14 @@ if (BUILD_TESTING)
endif()

senseiAddTest(testOscillatorLibsim
COMMAND $<TARGET_FILE:oscillator> -t 1 -b ${TEST_NP} -g 1
COMMAND oscillator -t 1 -b ${TEST_NP} -g 1
-f ${CMAKE_CURRENT_SOURCE_DIR}/oscillator_libsim.xml
${CMAKE_CURRENT_SOURCE_DIR}/simple.osc
FEATURES LIBSIM)

senseiAddTest(testOscillatorLibsimPar
PARALLEL ${TEST_NP}
COMMAND $<TARGET_FILE:oscillator> -t 1 -b ${TEST_NP} -g 1
COMMAND oscillator -t 1 -b ${TEST_NP} -g 1
-f ${CMAKE_CURRENT_SOURCE_DIR}/oscillator_libsim.xml
${CMAKE_CURRENT_SOURCE_DIR}/simple.osc
FEATURES LIBSIM)
Expand All @@ -77,14 +77,14 @@ if (BUILD_TESTING)
endif()

senseiAddTest(testOscillatorAscent
COMMAND $<TARGET_FILE:oscillator> -t 2 -b ${TEST_NP} -g 0
COMMAND oscillator -t 2 -b ${TEST_NP} -g 0
-f ${CMAKE_CURRENT_SOURCE_DIR}/oscillator_ascent.xml
${CMAKE_CURRENT_SOURCE_DIR}/random_2d_64.osc
FEATURES ASCENT)

senseiAddTest(testOscillatorAscentPar
PARALLEL ${TEST_NP}
COMMAND $<TARGET_FILE:oscillator> -t 2 -b ${TEST_NP} -g 0
COMMAND oscillator -t 2 -b ${TEST_NP} -g 0
-f ${CMAKE_CURRENT_SOURCE_DIR}/oscillator_ascent.xml
${CMAKE_CURRENT_SOURCE_DIR}/random_2d_64.osc
FEATURES ASCENT)
Expand All @@ -93,7 +93,7 @@ if (BUILD_TESTING)
#if (ENABLE_CATALYST)
# add_test(NAME testCatalystSlice
# COMMAND ${CMAKE_COMMAND}
# -DCATALYST_TEST_DRIVER:FILEPATH=$<TARGET_FILE:$<TARGET_FILE:oscillator>>
# -DCATALYST_TEST_DRIVER:FILEPATH=$<TARGET_FILE:oscillator>
# -DIMAGE_TESTER:FILEPATH=$<TARGET_FILE:CompareImages>
# -DCATALYST_TEST_DIR:PATH=${CMAKE_BINARY_DIR}/Testing
# -DCATALYST_TEST_DATA=${CMAKE_CURRENT_SOURCE_DIR}
Expand Down
18 changes: 9 additions & 9 deletions sensei/testing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,40 @@ if (BUILD_TESTING)
##############################################################################
senseiAddTest(testHistogramSerial
SOURCES testHistogram.cpp LIBS sensei EXEC_NAME testHistogram
COMMAND $<TARGET_FILE:testHistogram>
COMMAND $<TARGET_NAME:testHistogram>
LABELS HISTO)

senseiAddTest(testHistogramParallel
PARALLEL ${TEST_NP}
COMMAND $<TARGET_FILE:testHistogram>
COMMAND $<TARGET_NAME:testHistogram>
PROPERTIES
LABELS HISTO)

##############################################################################
senseiAddTest(testHDF5Write
SOURCES testHDF5.cpp LIBS sensei EXEC_NAME testHDF5
PARALLEL ${TEST_NP}
COMMAND $<TARGET_FILE:testHDF5> w 4 n h5test
COMMAND $<TARGET_NAME:testHDF5> w 4 n h5test
FEATURES HDF5)

senseiAddTest(testHDF5Read
PARALLEL ${TEST_NP}
COMMAND $<TARGET_FILE:testHDF5> r h5test.n${TEST_NP}
COMMAND $<TARGET_NAME:testHDF5> r h5test.n${TEST_NP}
FEATURES HDF5
PROPERTIES
DEPENDS testHDF5Write)

##############################################################################
senseiAddTest(testHDF5WriteStreaming
PARALLEL ${TEST_NP}
COMMAND $<TARGET_FILE:testHDF5> w 4 s h5stream
COMMAND $<TARGET_NAME:testHDF5> w 4 s h5stream
FEATURES HDF5
PROPERTIES
LABELS STREAMING)

senseiAddTest(testHDF5ReadStreaming
PARALLEL ${TEST_NP}
COMMAND $<TARGET_FILE:testHDF5> r h5stream.n${TEST_NP} s
COMMAND $<TARGET_NAME:testHDF5> r h5stream.n${TEST_NP} s
FEATURES HDF5
PROPERTIES
DEPENDS testHDF5WriteStreaming
Expand All @@ -45,7 +45,7 @@ if (BUILD_TESTING)
##############################################################################
senseiAddTest(testProgrammableDataAdaptor
PARALLEL 1
COMMAND $<TARGET_FILE:testProgrammableDataAdaptor>
COMMAND $<TARGET_NAME:testProgrammableDataAdaptor>
SOURCES testProgrammableDataAdaptor.cpp
LIBS sensei)

Expand All @@ -59,13 +59,13 @@ if (BUILD_TESTING)
senseiAddTest(testPythonAnalysis
SOURCES testPythonAnalysis.cpp LIBS sensei EXEC_NAME testPythonAnalysis
COMMAND
$<TARGET_FILE:testPythonAnalysis> ${CMAKE_CURRENT_SOURCE_DIR}/testPythonAnalysis.xml
$<TARGET_NAME:testPythonAnalysis> ${CMAKE_CURRENT_SOURCE_DIR}/testPythonAnalysis.xml
FEATURES PYTHON VTK_IO)

senseiAddTest(testPythonAnalysisParallel
PARALLEL ${TEST_NP}
COMMAND
$<TARGET_FILE:testPythonAnalysis> ${CMAKE_CURRENT_SOURCE_DIR}/testPythonAnalysis.xml
$<TARGET_NAME:testPythonAnalysis> ${CMAKE_CURRENT_SOURCE_DIR}/testPythonAnalysis.xml
FEATURES PYTHON VTK_IO)

##############################################################################
Expand Down

0 comments on commit 6d0017f

Please sign in to comment.