Skip to content

Commit 3392bd1

Browse files
committed
test: deltaDebug.py integration test belongs in ORFS
this avoids OpenROAD depending on ORFS to run integration tests. Once this PR is merged, delete tools/OpenROAD/etc/test_delta_debug.sh Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 5eda0a9 commit 3392bd1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

flow/test/test_delta_debug.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
#
3+
# deltaDebug.py integration smoke-test, run from ORFS/flow folder.
4+
#
5+
# Exit with error if anything is amiss, including evaluation of
6+
# variable names such as $(false), unused variables, etc.
7+
set -ue -o pipefail
8+
9+
testname=uart
10+
11+
make DESIGN_CONFIG=designs/asap7/$testname/config.mk place
12+
make DESIGN_CONFIG=designs/asap7/$testname/config.mk global_place_issue
13+
latest_file=$(ls -t global_place_${testname}_asap7_base*.tar.gz | head -n1)
14+
echo "Testing $latest_file"
15+
. ../env.sh
16+
rm -rf test_delta_debug
17+
mkdir test_delta_debug
18+
cd test_delta_debug
19+
tar --strip-components=1 -xzf ../$latest_file
20+
sed -i 's/openroad -no_init/openroad -exit -no_init/g' run-me-$testname-asap7-base.sh
21+
openroad -exit -python ../../tools/OpenROAD/etc/deltaDebug.py --persistence 3 --use_stdout --error_string "Iter: 100 " --base_db_path results/asap7/$testname/base/3_2_place_iop.odb --step ./run-me-$testname-asap7-base.sh --multiplier 2

0 commit comments

Comments
 (0)