From d8a352edd63a4ffbba8786dab0d0267b64ce7e66 Mon Sep 17 00:00:00 2001 From: djowel Date: Fri, 30 Aug 2024 11:45:46 +0800 Subject: [PATCH] Add testing to CI --- .github/workflows/build.yml | 4 ++++ test/CMakeLists.txt | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9735d73d..b7c3d4a5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -102,3 +102,7 @@ jobs: if (NOT result EQUAL 0) message(FATAL_ERROR "Could not run with ${CMAKE_COMMAND}: Got ${error_message} - ${result}") endif() + + - name: Test + run: ctest --verbose --test-dir build + shell: bash diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a7561a22..ed773ce0 100755 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -90,4 +90,7 @@ file( # Copy golden folder to the binary dir file( COPY golden - DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) \ No newline at end of file + DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) + + include(CTest) + add_test(NAME fft_test COMMAND fft_test) \ No newline at end of file