Skip to content

Commit

Permalink
Clean up cycles.sh and resources.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
polybeandip committed Sep 13, 2024
1 parent 8bfafe5 commit 8a61977
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 1 addition & 2 deletions frontends/queues/cycles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ for file in frontends/queues/tests/**/*.py; do
-s verilog.data "$dir/$name.data" \
-s jq.expr ".cycles" \
-q)"
echo -n ${file#*tests/}
echo ": $cycles"
echo "${file#*tests/}: $cycles"
done
8 changes: 3 additions & 5 deletions frontends/queues/resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ for file in frontends/queues/tests/**/*.py; do

if [ "$#" -eq 1 ]; then
resource=$(jq ".$1" <<< "$resources")
echo -n ${file#*tests/}
echo ": $resource"
echo "${file#*tests/}: $resource"
else
echo ${file#*tests/}
echo "$resources"
echo ""
newline=$'\n'
echo "${file#*tests/}${newline}$resources${newline}"
fi
done

0 comments on commit 8a61977

Please sign in to comment.