3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-10-10 09:48:06 +00:00

tests: report time per target, eliminate interleaving lines on stdout

This commit is contained in:
Emil J. Tywoniak 2025-09-19 18:09:47 +02:00
parent d5053033e4
commit 7f030c986c
13 changed files with 14 additions and 19 deletions

View file

@ -9,8 +9,7 @@ generate_target() {
echo "all: $target_name"
echo ".PHONY: $target_name"
echo "$target_name:"
printf "\t@%s\n" "$test_command"
printf "\t@echo 'Passed %s'\n" "$target_name"
printf "\t@/usr/bin/env time -f \"PASS $target_name %%e seconds\" $test_command >/dev/null 2>/dev/null\n"
}
# $ generate_ys_test ys_file [yosys_args]