Skip to content

Commit 4370495

Browse files
[testing] Clean-up unit tests (#2606)
The `CUDAQ_BRAKET_RUNTIME_TEST_SOURCES` were set up to use `qpp` and simply re-running with a simulator. Appropriate set of tests already covered in `unittests/backends/braket/CMakeLists.txt`. Hence removing these. Signed-off-by: Pradnya Khalate <[email protected]>
1 parent 20e5869 commit 4370495

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

unittests/CMakeLists.txt

-52
Original file line numberDiff line numberDiff line change
@@ -332,58 +332,6 @@ endif()
332332
add_subdirectory(backends)
333333
add_subdirectory(Optimizer)
334334

335-
set(CUDAQ_BRAKET_RUNTIME_TEST_SOURCES
336-
# Integration tests
337-
integration/adjoint_tester.cpp
338-
integration/builder_tester.cpp
339-
integration/ccnot_tester.cpp
340-
integration/draw_tester.cpp
341-
integration/ghz_nisq_tester.cpp
342-
integration/gradient_tester.cpp
343-
integration/grover_test.cpp
344-
integration/nlopt_tester.cpp
345-
integration/qpe_ftqc.cpp
346-
integration/qpe_nisq.cpp
347-
integration/qubit_allocation.cpp
348-
integration/vqe_tester.cpp
349-
integration/bug67_vqe_then_sample.cpp
350-
integration/bug77_vqe_with_shots.cpp
351-
integration/bug116_cusv_measure_bug.cpp
352-
integration/async_tester.cpp
353-
integration/negative_controls_tester.cpp
354-
integration/observe_result_tester.cpp
355-
integration/noise_tester.cpp
356-
integration/get_state_tester.cpp
357-
integration/kernels_tester.cpp
358-
common/MeasureCountsTester.cpp
359-
common/NoiseModelTester.cpp
360-
integration/gate_library_tester.cpp
361-
)
362-
set(TEST_EXE_NAME "test_runtime_braket")
363-
set(NVQIR_BACKEND "braket")
364-
set(NVQIR_BACKEND_NAME "braket")
365-
add_executable(${TEST_EXE_NAME} main.cpp ${CUDAQ_BRAKET_RUNTIME_TEST_SOURCES} "")
366-
target_compile_definitions(${TEST_EXE_NAME} PRIVATE -DNVQIR_BACKEND_NAME=braket)
367-
target_compile_definitions(${TEST_EXE_NAME} PRIVATE __MATH_LONG_DOUBLE_CONSTANTS)
368-
target_include_directories(${TEST_EXE_NAME} PRIVATE .)
369-
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND NOT APPLE)
370-
target_link_options(${TEST_EXE_NAME} PRIVATE -Wl,--no-as-needed)
371-
endif()
372-
target_link_libraries(${TEST_EXE_NAME}
373-
PUBLIC
374-
nvqir-qpp nvqir
375-
cudaq fmt::fmt-header-only
376-
cudaq-platform-default
377-
cudaq-rest-qpu
378-
cudaq-builder
379-
gtest_main)
380-
set(TEST_LABELS "")
381-
if ("${TEST_LABELS}" STREQUAL "")
382-
gtest_discover_tests(${TEST_EXE_NAME})
383-
else()
384-
gtest_discover_tests(${TEST_EXE_NAME} PROPERTIES LABELS "${TEST_LABELS}")
385-
endif()
386-
387335
if (CUDAQ_ENABLE_PYTHON)
388336
if (NOT Python_FOUND)
389337
message(FATAL_ERROR "find_package(Python) not run?")

0 commit comments

Comments
 (0)