Skip to content

Commit

Permalink
enable CDash result upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Risto97 committed Sep 14, 2024
1 parent c1e6238 commit 4c4c403
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
mkdir build
cd build
cmake -DSOCMAKE_BUILD_TESTING=TRUE ../
make check
make check_dash
20 changes: 20 additions & 0 deletions CTestConfig.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## This file should be placed in the root directory of your project.
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
##
## # The following are required to submit to the CDash dashboard:
## ENABLE_TESTING()
## INCLUDE(CTest)

set(CTEST_PROJECT_NAME SoCMake)
set(CTEST_NIGHTLY_START_TIME 01:00:00 UTC)

if(CMAKE_VERSION VERSION_GREATER 3.14)
set(CTEST_SUBMIT_URL https://my.cdash.org/submit.php?project=SoCMake)
else()
set(CTEST_DROP_METHOD "https")
set(CTEST_DROP_SITE "my.cdash.org")
set(CTEST_DROP_LOCATION "/submit.php?project=SoCMake")
endif()

set(CTEST_DROP_SITE_CDASH TRUE)
6 changes: 6 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
include(CTest)

add_custom_target(check
COMMAND ctest $(JOBS) --output-on-failure
)

add_custom_target(check_cdash
COMMAND ctest $(JOBS) --output-on-failure -D Continous
)

add_subdirectory(iverilog)
add_subdirectory(vhier)
add_subdirectory(peakrdl)
Expand Down

0 comments on commit 4c4c403

Please sign in to comment.