Ignore SDF VERSION in diff_files to stabilize tests

Add (VERSION pattern to diff_files ignore parameter so SDF tests
don't break on every upstream version bump. Update golden .ok files
to reflect the now-clean diffs.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
This commit is contained in:
Jaehyun Kim 2026-03-31 22:05:59 +09:00
parent 3ca78b11c8
commit 14af24bc93
4 changed files with 6 additions and 12 deletions

View File

@ -1,3 +1 @@
Differences found at line 7.
(VERSION "2.7.0")
(VERSION "3.1.0")
No differences found.

View File

@ -15,4 +15,4 @@ read_sdf sdf_test1.sdf
set sdf_out [make_result_file $test_name.sdf]
write_sdf $sdf_out
diff_files $test_name.sdfok $sdf_out {\(DATE}
diff_files $test_name.sdfok $sdf_out {\(DATE|\(VERSION}

View File

@ -3,13 +3,9 @@ No differences found.
--- write_sdf with options ---
No differences found.
--- write_sdf with digits ---
Differences found at line 6.
(VERSION "2.7.0")
(VERSION "3.1.0")
No differences found.
--- write_sdf with include_typ ---
Differences found at line 6.
(VERSION "2.7.0")
(VERSION "3.1.0")
No differences found.
--- write_timing_model ---
--- write_timing_model with cell_name ---
--- write_timing_model with library_name ---

View File

@ -28,12 +28,12 @@ diff_files search_test1_opts.sdfok $sdf_file2
puts "--- write_sdf with digits ---"
set sdf_file3 [make_result_file "search_test1_digits.sdf"]
write_sdf -digits 6 -no_timestamp $sdf_file3
diff_files search_test1_digits.sdfok $sdf_file3
diff_files search_test1_digits.sdfok $sdf_file3 {\(VERSION}
puts "--- write_sdf with include_typ ---"
set sdf_file4 [make_result_file "search_test1_typ.sdf"]
write_sdf -include_typ -no_timestamp $sdf_file4
diff_files search_test1_typ.sdfok $sdf_file4
diff_files search_test1_typ.sdfok $sdf_file4 {\(VERSION}
puts "--- write_timing_model ---"
set model_file [make_result_file "search_test1_model.lib"]