Download OpenROAD/src/web/test/cpp_tests.tcl from SAIFIINDUSTRIES/verilog_data-1: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/OpenROAD/src/web/test/cpp_tests.tcl
- Command line
-
hf download hf://datasets/SAIFIINDUSTRIES/verilog_data-1/OpenROAD/src/web/test/cpp_tests.tcl
-
curl -L -o cpp_tests.tcl https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/OpenROAD/src/web/test/cpp_tests.tcl
1.22 kB
| # SPDX-License-Identifier: BSD-3-Clause | |
| # Copyright (c) 2026, The OpenROAD Authors | |
| source "helpers.tcl" | |
| set test_dir [pwd] | |
| set openroad_dir [file dirname [file dirname [file dirname $test_dir]]] | |
| set tests_path [file join $openroad_dir "build" "src" "web" "test" "cpp"] | |
| set tests_list [split [exec sh -c "find $tests_path -maxdepth 2 \ | |
| -name 'Test*' ! -name '*.cmake' -type f"] \n] | |
| foreach test $tests_list { | |
| set test_name [file tail $test] | |
| puts "Running test: $test_name" | |
| puts "**********" | |
| set test_status [catch { exec sh -c "BASE_DIR=$test_dir $test" } \ | |
| output option] | |
| puts $test_status | |
| puts $output | |
| if { $test_status == 0 } { | |
| puts "$test_name passed" | |
| } else { | |
| set test_err_info [lassign [dict get $option -errorcode] err_type] | |
| switch -exact -- $err_type { | |
| NONE { | |
| puts "$test_name passed" | |
| } | |
| CHILDSTATUS { | |
| # non-zero exit status | |
| set exit_status [lindex $test_err_info 1] | |
| set process_id [lindex $test_err_info 0] | |
| puts "ERROR: test returned exit code $exit_status" | |
| exit 1 | |
| } | |
| default { | |
| puts "ERROR: $option" | |
| exit 1 | |
| } | |
| } | |
| } | |
| puts "******************" | |
| } | |
| puts "pass" | |
| exit 0 | |