From cb74a162738ac0a9fae935125017264cb7ee3db7 Mon Sep 17 00:00:00 2001 From: Felipe Garay Date: Thu, 30 May 2024 15:35:59 -0700 Subject: [PATCH] dft: deleting cpp_tests.tcl because the cpp tests are being run with "make tests" Signed-off-by: Felipe Garay --- src/dft/test/cpp_tests.ok | 19 ---------------- src/dft/test/cpp_tests.tcl | 46 -------------------------------------- 2 files changed, 65 deletions(-) delete mode 100644 src/dft/test/cpp_tests.ok delete mode 100644 src/dft/test/cpp_tests.tcl diff --git a/src/dft/test/cpp_tests.ok b/src/dft/test/cpp_tests.ok deleted file mode 100644 index 7b62319bfa7..00000000000 --- a/src/dft/test/cpp_tests.ok +++ /dev/null @@ -1,19 +0,0 @@ -Running test: TestScanArchitectHeuristic -********** -1 -Running 3 test cases... - -*** No errors detected - -TestScanArchitectHeuristic passed -****************** -Running test: TestScanArchitect -********** -1 -Running 1 test case... - -*** No errors detected - -TestScanArchitect passed -****************** -pass diff --git a/src/dft/test/cpp_tests.tcl b/src/dft/test/cpp_tests.tcl deleted file mode 100644 index d77df55fa2e..00000000000 --- a/src/dft/test/cpp_tests.tcl +++ /dev/null @@ -1,46 +0,0 @@ -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" "dft" "test" "cpp"] - -set tests_list [split [exec sh -c "find $tests_path -maxdepth 1 -name 'Test*'"] \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