-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
64 changed files
with
114 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
cmake_minimum_required(VERSION 3.25) | ||
project(SoCMake_testing) | ||
|
||
include(CTest) | ||
|
||
add_custom_target(check | ||
COMMAND ctest $(JOBS) --output-on-failure | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/../../ | ||
) | ||
|
||
add_custom_target(check_cdash | ||
COMMAND ctest -D Nightly $(JOBS) --output-on-failure | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/../../ | ||
) | ||
|
||
add_subdirectory(iverilog) | ||
add_subdirectory(vhier) | ||
add_subdirectory(peakrdl) | ||
|
||
include("getcmaketest.cmake") | ||
include(cmake_test/cmake_test) | ||
|
||
ct_add_dir(add_ip USE_REL_PATH_NAMES LABEL) | ||
ct_add_dir(ip_include_directories USE_REL_PATH_NAMES LABEL) | ||
ct_add_dir(ip_compile_definitions USE_REL_PATH_NAMES LABEL) | ||
ct_add_dir(alias_dereference USE_REL_PATH_NAMES LABEL) | ||
ct_add_dir(check_languages USE_REL_PATH_NAMES LABEL) | ||
ct_add_dir(ip_sources USE_REL_PATH_NAMES LABEL) | ||
ct_add_dir(ip_link USE_REL_PATH_NAMES LABEL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/add_ip/add_ip_1_token.cmake → tests/tests/add_ip/add_ip_1_token.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/add_ip/add_ip_description.cmake → tests/tests/add_ip/add_ip_description.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/add_ip/add_ip_fail_2_tokens.cmake → ...s/tests/add_ip/add_ip_fail_2_tokens.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/add_ip/add_ip_fail_3_tokens.cmake → ...s/tests/add_ip/add_ip_fail_3_tokens.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/add_ip/add_ip_fail_4_tokens.cmake → ...s/tests/add_ip/add_ip_fail_4_tokens.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../add_ip/add_ip_fail_too_many_tokens.cmake → .../add_ip/add_ip_fail_too_many_tokens.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...alias_dereference/alias_dereference.cmake → ...alias_dereference/alias_dereference.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...anguages/check_languages_additional.cmake → ...anguages/check_languages_additional.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...eck_languages/check_languages_fatal.cmake → ...eck_languages/check_languages_fatal.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
..._languages/check_languages_standard.cmake → ..._languages/check_languages_standard.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...k_languages/check_languages_warning.cmake → ...k_languages/check_languages_warning.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
list(APPEND CMAKE_MODULE_PATH ${PROJECT_BINARY_DIR}/_deps/cmakepp_lang-src/cmake) | ||
list(APPEND CMAKE_MODULE_PATH ${PROJECT_BINARY_DIR}/_deps/cmake_test-src/cmake) | ||
include_guard() | ||
|
||
#[[[ | ||
# This function encapsulates the process of getting CMakeTest using CMake's | ||
# FetchContent module. We have encapsulated it in a function so we can set | ||
# the options for its configure step without affecting the options for the | ||
# parent project's configure step (namely we do not want to build CMakeTest's | ||
# unit tests). | ||
#]] | ||
macro(get_cmake_test) | ||
include(cmake_test/cmake_test OPTIONAL RESULT_VARIABLE cmake_test_found) | ||
if(NOT cmake_test_found) | ||
|
||
|
||
|
||
# Store whether we are building tests or not, then turn off the tests | ||
set(build_testing_old "${BUILD_TESTING}") | ||
set(BUILD_TESTING OFF CACHE BOOL "" FORCE) | ||
# Download CMakeTest and bring it into scope | ||
include(FetchContent) | ||
FetchContent_Declare( | ||
cmake_test | ||
GIT_REPOSITORY https://github.com/CMakePP/CMakeTest | ||
GIT_TAG b07712effc7877c97712a5342a34f49b4e8ee3fb | ||
) | ||
FetchContent_MakeAvailable(cmake_test) | ||
|
||
# Restore the previous value | ||
set(BUILD_TESTING "${build_testing_old}" CACHE BOOL "" FORCE) | ||
endif() | ||
endmacro() | ||
|
||
# FetchContent_Declare( | ||
# cmakepp_lang | ||
# GIT_REPOSITORY https://github.com/CMakePP/CMakePPLang | ||
# ) | ||
# FetchContent_MakeAvailable(cmakepp_lang) | ||
# include(cmakepp_lang/cmakepp_lang) | ||
|
||
# Call the function we just wrote to get CMakeTest | ||
get_cmake_test() | ||
|
||
# Include CMakeTest | ||
# include(cmake_test/cmake_test) |
2 changes: 1 addition & 1 deletion
2
..._definitions/ip_compile_definitions.cmake → ..._definitions/ip_compile_definitions.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...p_compile_definitions_get_multilang.cmake → ...p_compile_definitions_get_multilang.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nitions/ip_compile_definitions_hier.cmake → ...nitions/ip_compile_definitions_hier.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
..._directories/ip_include_directories.cmake → ..._directories/ip_include_directories.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...p_include_directories_get_multilang.cmake → ...p_include_directories_get_multilang.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/ip_link/ip_link1.cmake → tests/tests/ip_link/ip_link1.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
tests/ip_link/ip_link_self_link_fatal.cmake → ...sts/ip_link/ip_link_self_link_fatal.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/ip_sources/ip_source_fail.cmake → tests/tests/ip_sources/ip_source_fail.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/ip_sources/ip_sources.cmake → tests/tests/ip_sources/ip_sources.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ip_sources/ip_sources_get_multilang.cmake → ...ip_sources/ip_sources_get_multilang.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
add_subdirectory(print) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
addrmap ip2 { | ||
reg { | ||
regwidth = 32; | ||
field { | ||
fieldwidth = 32; | ||
} f1; | ||
} testreg2; | ||
|
||
`ifdef USE_IP1 | ||
ip1 ip1_i; | ||
`endif | ||
}; |
2 changes: 1 addition & 1 deletion
2
tests/peakrdl/print/CMakeLists.txt → tests/tests/peakrdl/print/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.