Skip to content

Commit 4f644c5

Browse files
authored
Merge pull request #1888 from Pinata-Consulting/delta-debug-orfs-integration-test
Delta debug orfs integration test
2 parents 3679bfc + a11e12c commit 4f644c5

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 results/delta-debug/
17+
mkdir -p results/delta-debug/
18+
cd results/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)