forked from The-OpenROAD-Project/OpenROAD
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request The-OpenROAD-Project#4766 from QuantamHD/ctest_ftw
meta: Moving tool tests to ctest
- Loading branch information
Showing
60 changed files
with
1,022 additions
and
51 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 |
---|---|---|
|
@@ -30,3 +30,4 @@ | |
# POSSIBILITY OF SUCH DAMAGE. | ||
|
||
add_subdirectory(src) | ||
add_subdirectory(test) |
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,13 @@ | ||
include("openroad") | ||
|
||
set(TEST_NAMES | ||
check_api1 | ||
check_drt1 | ||
check_grt1 | ||
ant_check | ||
ant_report | ||
) | ||
|
||
foreach(TEST_NAME IN LISTS TEST_NAMES) | ||
or_integration_test("ant" ${TEST_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/regression) | ||
endforeach() |
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,2 +1,3 @@ | ||
include("swig_lib") | ||
include("messages") | ||
include("testing") |
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,19 @@ | ||
function(or_integration_test tool_name test_name regression_binary) | ||
add_test ( | ||
NAME ${tool_name}.${test_name} | ||
COMMAND ${BASH_PROGRAM} ${regression_binary} ${test_name} | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} | ||
) | ||
|
||
string(CONCAT ENV | ||
"TEST_TYPE=compare_logfile;" | ||
"CTEST_TESTNAME=${test_name};" | ||
"DIFF_LOCATION=${CMAKE_CURRENT_LIST_DIR}/results/${test_name}.diff" | ||
) | ||
|
||
set_property(TEST ${tool_name}.${test_name} | ||
PROPERTY ENVIRONMENT ${ENV}) | ||
|
||
set_tests_properties(${tool_name}.${test_name} | ||
PROPERTIES LABELS "IntegrationTest") | ||
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
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,45 @@ | ||
include("openroad") | ||
|
||
set(TEST_NAMES | ||
constant1 | ||
make_port | ||
network_edit1 | ||
sdc_names1 | ||
sdc_names2 | ||
sdc_get1 | ||
sta1 | ||
sta2 | ||
sta3 | ||
sta4 | ||
sta5 | ||
block_sta1 | ||
find_clks1 | ||
find_clks2 | ||
report_json1 | ||
power1 | ||
read_liberty1 | ||
read_verilog1 | ||
read_verilog2 | ||
read_verilog3 | ||
read_verilog4 | ||
read_verilog5 | ||
read_verilog6 | ||
read_verilog7 | ||
read_verilog8 | ||
read_verilog9 | ||
read_verilog10 | ||
report_cell_usage | ||
write_verilog1 | ||
write_verilog2 | ||
write_verilog3 | ||
write_verilog4 | ||
write_verilog5 | ||
write_verilog6 | ||
write_verilog7 | ||
write_verilog8 | ||
write_sdc1 | ||
) | ||
|
||
foreach(TEST_NAME IN LISTS TEST_NAMES) | ||
or_integration_test("ant" ${TEST_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/regression) | ||
endforeach() |
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,4 +1,17 @@ | ||
# Tests | ||
include("openroad") | ||
|
||
find_package(Boost) | ||
set(TEST_NAMES | ||
one_cell_sky130 | ||
one_cell_nangate45 | ||
sub_modules_sky130 | ||
scan_architect_no_mix_sky130 | ||
scan_architect_clock_mix_sky130 | ||
) | ||
|
||
foreach(TEST_NAME IN LISTS TEST_NAMES) | ||
or_integration_test("dft" ${TEST_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/regression) | ||
endforeach() | ||
|
||
find_package(Boost) | ||
add_subdirectory(cpp) |
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 |
---|---|---|
|
@@ -113,3 +113,5 @@ if (Python3_FOUND AND BUILD_PYTHON) | |
) | ||
|
||
endif() | ||
|
||
add_subdirectory(test) |
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,15 @@ | ||
include("openroad") | ||
|
||
set(TEST_NAMES | ||
aes | ||
gcd | ||
ibex | ||
multi_height1 | ||
gcd_no_one_site_gaps | ||
regions1 | ||
regions2 | ||
) | ||
|
||
foreach(TEST_NAME IN LISTS TEST_NAMES) | ||
or_integration_test("dpo" ${TEST_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/regression) | ||
endforeach() |
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 |
---|---|---|
|
@@ -257,3 +257,5 @@ if (Python3_FOUND AND BUILD_PYTHON) | |
) | ||
|
||
endif() | ||
|
||
add_subdirectory(test) |
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,18 @@ | ||
include("openroad") | ||
|
||
set(TEST_NAMES | ||
ispd18_sample | ||
ndr_vias1 | ||
ndr_vias2 | ||
obstruction | ||
single_step | ||
ta_ap_aligned | ||
ta_pin_aligned | ||
top_level_term | ||
top_level_term2 | ||
drc_test | ||
) | ||
|
||
foreach(TEST_NAME IN LISTS TEST_NAMES) | ||
or_integration_test("drt" ${TEST_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/regression) | ||
endforeach() |
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 |
---|---|---|
|
@@ -80,3 +80,5 @@ if (Python3_FOUND AND BUILD_PYTHON) | |
) | ||
|
||
endif() | ||
|
||
add_subdirectory(test) |
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,9 @@ | ||
include("openroad") | ||
|
||
set(TEST_NAMES | ||
gcd_fill | ||
) | ||
|
||
foreach(TEST_NAME IN LISTS TEST_NAMES) | ||
or_integration_test("fin" ${TEST_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/regression) | ||
endforeach() |
Oops, something went wrong.