test: Add `save_ok` script

Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
This commit is contained in:
Jaehyun Kim 2026-02-27 11:12:27 +09:00
parent d35d5661b4
commit 55259b894b
13 changed files with 33 additions and 0 deletions

1
dcalc/test/save_ok Symbolic link
View File

@ -0,0 +1 @@
../../test/shared/save_ok

1
graph/test/save_ok Symbolic link
View File

@ -0,0 +1 @@
../../test/shared/save_ok

1
liberty/test/save_ok Symbolic link
View File

@ -0,0 +1 @@
../../test/shared/save_ok

1
network/test/save_ok Symbolic link
View File

@ -0,0 +1 @@
../../test/shared/save_ok

1
parasitics/test/save_ok Symbolic link
View File

@ -0,0 +1 @@
../../test/shared/save_ok

1
power/test/save_ok Symbolic link
View File

@ -0,0 +1 @@
../../test/shared/save_ok

1
sdc/test/save_ok Symbolic link
View File

@ -0,0 +1 @@
../../test/shared/save_ok

1
sdf/test/save_ok Symbolic link
View File

@ -0,0 +1 @@
../../test/shared/save_ok

1
search/test/save_ok Symbolic link
View File

@ -0,0 +1 @@
../../test/shared/save_ok

1
spice/test/save_ok Symbolic link
View File

@ -0,0 +1 @@
../../test/shared/save_ok

21
test/shared/save_ok Executable file
View File

@ -0,0 +1,21 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2026, The OpenROAD Authors
# Copy test result logs to golden (.ok) files.
# Usage: save_ok <test_name> [test_name ...]
# Looks for results/<test_name>.log and copies to <test_name>.ok.
set -e
for test_name in "${@:1}"
do
if [ -f "results/${test_name}.log" ]; then
cp "results/${test_name}.log" "${test_name}.ok"
echo "${test_name}"
else
echo "\"${test_name}\" log file not found"
fi
done

1
util/test/save_ok Symbolic link
View File

@ -0,0 +1 @@
../../test/shared/save_ok

1
verilog/test/save_ok Symbolic link
View File

@ -0,0 +1 @@
../../test/shared/save_ok