Skip to content

Commit

Permalink
test: add test that build run downloads what it should
Browse files Browse the repository at this point in the history
Signed-off-by: Øyvind Harboe <[email protected]>
  • Loading branch information
oharboe committed Oct 16, 2024
1 parent c11de36 commit 1d17c3c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/scripts/build_local_target.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

set -e

target_name=${TARGET:-"tag_array_64x184"}
# Test local build with submacros
target_name=${TARGET:-"L1MetadataArray"}
if [[ -z "$STAGES" ]]; then
# Skip "grt" "route", takes too long
STAGES=("synth" "floorplan" "place" "cts")
Expand All @@ -28,14 +29,22 @@ do
stages+=("do-yosys-keep-hierarchy")
stages+=("do-yosys")
stages+=("do-synth")
[ $(find build/results -maxdepth 1 -name '*.lef' | wc -l) -eq 1 ]
[ $(find build/results -maxdepth 1 -name '*.lib' | wc -l) -eq 1 ]
elif [[ $stage == "grt" ]]; then
stages+=("do-5_1_grt")
elif [[ $stage == "route" ]]; then
stages+=("do-5_2_route")
stages+=("do-5_3_fillcell")
elif [[ $stage == "cts" ]]; then
[ $(find build/results -maxdepth 1 -name '*.odb' | wc -l) -eq 1 ]
[ $(find build/results -maxdepth 1 -name '*.lef' | wc -l) -eq 0 ]
[ $(find build/results -maxdepth 1 -name '*.sdc' | wc -l) -eq 1 ]
[ $(find build/results -maxdepth 1 -name '*.v' | wc -l) -eq 0 ]
else
stages+=("do-${stage}")
fi
[ $(find build/results -maxdepth 1 -name '*.gds' | wc -l) -eq 0 ]
for local_stage in "${stages[@]}"
do
echo "[${target_name}] ${local_stage}: Run make script"
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,15 @@ jobs:
run: |
rm -rf ./build
bazel run ${{ matrix.STAGE_TARGET }}_synth -- `pwd`/build OR_ARGS=-exit open_synth
[ $(find build/results -maxdepth 1 -name '*.lef' | wc -l) -eq 0 ]
[ $(find build/results -maxdepth 1 -name '*.gds' | wc -l) -eq 0 ]
rm -rf ./build
bazel run ${{ matrix.STAGE_TARGET }}_floorplan -- `pwd`/build OR_ARGS=-exit open_floorplan
[ $(find build/results -maxdepth 1 -name '*.odb' | wc -l) -eq 1 ]
[ $(find build/results -maxdepth 1 -name '*.lef' | wc -l) -eq 0 ]
[ $(find build/results -maxdepth 1 -name '*.gds' | wc -l) -eq 0 ]
[ $(find build/results -maxdepth 1 -name '*.sdc' | wc -l) -eq 1 ]
[ $(find build/results -maxdepth 1 -name '*.v' | wc -l) -eq 0 ]
test-target-local-clean-setup:
name: Local flow - clean setup
Expand Down

0 comments on commit 1d17c3c

Please sign in to comment.