-
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.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
10 changed files
with
322 additions
and
18 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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
|
||
add_custom_target(check | ||
COMMAND ctest | ||
COMMAND ctest $(JOBS) | ||
) | ||
|
||
add_subdirectory(iverilog) | ||
|
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,32 @@ | ||
# This test will succed because its allowed to have short notation in `ip_link(ip)` call | ||
include("${CMAKE_CURRENT_LIST_DIR}/../../CMakeLists.txt") | ||
|
||
set(TEST_NAME add_ip_1_token) | ||
|
||
ct_add_test(NAME ${TEST_NAME}) | ||
function(${${TEST_NAME}}) | ||
add_ip(vendor::lib::ip1::0.0.1) | ||
ct_assert_target_exists(vendor::lib::ip1::0.0.1) | ||
ct_assert_target_exists(vendor__lib__ip1__0.0.1) | ||
ct_assert_equal(IP vendor__lib__ip1__0.0.1) | ||
ct_assert_equal(IP_VENDOR vendor) | ||
ct_assert_equal(IP_LIBRARY lib) | ||
ct_assert_equal(IP_VERSION 0.0.1) | ||
|
||
add_ip(ip2 | ||
VENDOR vendor | ||
LIBRARY lib | ||
) | ||
ct_assert_target_exists(vendor::lib::ip2) | ||
ct_assert_equal(IP vendor__lib__ip2) | ||
ct_assert_equal(IP_VENDOR vendor) | ||
ct_assert_equal(IP_LIBRARY lib) | ||
ct_assert_not_defined(IP_VERSION) | ||
|
||
add_ip(ip3) | ||
ct_assert_target_exists(ip3) | ||
ct_assert_equal(IP ip3) | ||
ct_assert_not_defined(IP_VENDOR) | ||
ct_assert_not_defined(IP_LIBRARY) | ||
ct_assert_not_defined(IP_VERSION) | ||
endfunction() |
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,45 @@ | ||
# This tests should fail because its not allowed to have different than 4 or 1 tokens in `ip_link()` call | ||
include("${CMAKE_CURRENT_LIST_DIR}/../../CMakeLists.txt") | ||
|
||
set(TEST_NAME add_ip_fail_2_tokens_name_version) | ||
ct_add_test(NAME ${TEST_NAME} EXPECTFAIL) | ||
function(${${TEST_NAME}}) | ||
add_ip(ip1::0.0.1) | ||
endfunction() | ||
|
||
set(TEST_NAME add_ip_fail_2_tokens_vendor_name) | ||
ct_add_test(NAME ${TEST_NAME} EXPECTFAIL) | ||
function(${${TEST_NAME}}) | ||
add_ip(vendor::ip1) | ||
endfunction() | ||
|
||
set(TEST_NAME add_ip_fail_2_tokens_vendor_lib) | ||
ct_add_test(NAME ${TEST_NAME} EXPECTFAIL) | ||
function(${${TEST_NAME}}) | ||
add_ip(vendor::lib) | ||
endfunction() | ||
|
||
set(TEST_NAME add_ip_fail_2_tokens_vendor_version) | ||
ct_add_test(NAME ${TEST_NAME} EXPECTFAIL) | ||
function(${${TEST_NAME}}) | ||
add_ip(vendor::0.0.1) | ||
endfunction() | ||
|
||
set(TEST_NAME add_ip_fail_2_tokens_lib_version) | ||
ct_add_test(NAME ${TEST_NAME} EXPECTFAIL) | ||
function(${${TEST_NAME}}) | ||
add_ip(lib::0.0.1) | ||
endfunction() | ||
|
||
|
||
set(TEST_NAME add_ip_fail_2_tokens_empty_token_1) | ||
ct_add_test(NAME ${TEST_NAME} EXPECTFAIL) | ||
function(${${TEST_NAME}}) | ||
add_ip(lib::) | ||
endfunction() | ||
|
||
set(TEST_NAME add_ip_fail_2_tokens_empty_token_2) | ||
ct_add_test(NAME ${TEST_NAME} EXPECTFAIL) | ||
function(${${TEST_NAME}}) | ||
add_ip(::lib) | ||
endfunction() |
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,51 @@ | ||
# This tests should fail because its not allowed to have different than 4 or 1 tokens in `ip_link()` call | ||
include("${CMAKE_CURRENT_LIST_DIR}/../../CMakeLists.txt") | ||
|
||
set(TEST_NAME add_ip_fail_3_tokens_vendor_lib_ip) | ||
ct_add_test(NAME ${TEST_NAME} EXPECTFAIL) | ||
function(${${TEST_NAME}}) | ||
add_ip(vendor::lib::ip) | ||
endfunction() | ||
|
||
set(TEST_NAME add_ip_fail_3_tokens_vendor_lib_version) | ||
ct_add_test(NAME ${TEST_NAME} EXPECTFAIL) | ||
function(${${TEST_NAME}}) | ||
add_ip(vendor::lib::0.0.1) | ||
endfunction() | ||
|
||
set(TEST_NAME add_ip_fail_3_tokens_lib_ip_version) | ||
ct_add_test(NAME ${TEST_NAME} EXPECTFAIL) | ||
function(${${TEST_NAME}}) | ||
add_ip(lib::ip::0.0.1) | ||
endfunction() | ||
|
||
set(TEST_NAME add_ip_fail_3_tokens_empty_token_1) | ||
ct_add_test(NAME ${TEST_NAME} EXPECTFAIL) | ||
function(${${TEST_NAME}}) | ||
add_ip(::::vendor) | ||
endfunction() | ||
|
||
set(TEST_NAME add_ip_fail_3_tokens_empty_token_2) | ||
ct_add_test(NAME ${TEST_NAME} EXPECTFAIL) | ||
function(${${TEST_NAME}}) | ||
add_ip(::vendor::lib) | ||
endfunction() | ||
|
||
set(TEST_NAME add_ip_fail_3_tokens_empty_token_3) | ||
ct_add_test(NAME ${TEST_NAME} EXPECTFAIL) | ||
function(${${TEST_NAME}}) | ||
add_ip(vendor::::lib) | ||
endfunction() | ||
|
||
set(TEST_NAME add_ip_fail_3_tokens_empty_token_4) | ||
ct_add_test(NAME ${TEST_NAME} EXPECTFAIL) | ||
function(${${TEST_NAME}}) | ||
add_ip(vendor::lib::) | ||
endfunction() | ||
|
||
set(TEST_NAME add_ip_fail_3_tokens_empty_token_5) | ||
ct_add_test(NAME ${TEST_NAME} EXPECTFAIL) | ||
function(${${TEST_NAME}}) | ||
add_ip(vendor::::) | ||
endfunction() | ||
|
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,34 @@ | ||
# This tests should fail because its not allowed to have different than 4 or 1 tokens in `ip_link()` call | ||
include("${CMAKE_CURRENT_LIST_DIR}/../../CMakeLists.txt") | ||
|
||
set(TEST_NAME add_ip_fail_4_tokens_empty_token_1) | ||
ct_add_test(NAME ${TEST_NAME} EXPECTFAIL) | ||
function(${${TEST_NAME}}) | ||
add_ip(::::::vendor) | ||
endfunction() | ||
|
||
set(TEST_NAME add_ip_fail_4_tokens_empty_token_2) | ||
ct_add_test(NAME ${TEST_NAME} EXPECTFAIL) | ||
function(${${TEST_NAME}}) | ||
add_ip(::::vendor::) | ||
endfunction() | ||
|
||
set(TEST_NAME add_ip_fail_4_tokens_empty_token_3) | ||
ct_add_test(NAME ${TEST_NAME} EXPECTFAIL) | ||
function(${${TEST_NAME}}) | ||
add_ip(::vendor::lib::) | ||
endfunction() | ||
|
||
set(TEST_NAME add_ip_fail_4_tokens_empty_token_4) | ||
ct_add_test(NAME ${TEST_NAME} EXPECTFAIL) | ||
function(${${TEST_NAME}}) | ||
add_ip(vendor::lib::::0.0.1) | ||
endfunction() | ||
|
||
set(TEST_NAME add_ip_fail_4_tokens_empty_token_5) | ||
ct_add_test(NAME ${TEST_NAME} EXPECTFAIL) | ||
function(${${TEST_NAME}}) | ||
add_ip(vendor::lib::ip::) | ||
endfunction() | ||
|
||
|
Oops, something went wrong.