Skip to content

Commit

Permalink
Makefile: Hook up 'import feasibility' tests
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Povišer <[email protected]>
  • Loading branch information
povik committed Jan 3, 2024
1 parent dd12eb8 commit 1e4c048
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,19 @@ test: build/fold.so
echo -e "\e[32mOK\e[0m"; \
fi \
done
@echo "Import feasibility test"
@for testcase in tests/import_feasibility/*.fold; \
do \
echo -n "$${testcase}... "; \
if ! $(YOSYS) -m $(TARGET_PLUGIN_LIB) -m fold.logic.frontend.py -p "read_fold $${testcase}; fold_synth;" 1>/dev/null 2>&1; then \
echo -e "\e[31mFAIL\e[0m"; \
echo -e "Testcase \e[1m$${testcase}\e[0m failed"; \
$(YOSYS) -m $(TARGET_PLUGIN_LIB) -m fold.logic.frontend.py -p "read_fold $${testcase}; fold_synth;"; \
else \
echo -e "\e[32mOK\e[0m"; \
fi \
done


COVERAGE_ARGS = --rcfile=coverage.rc --branch --append --data-file build/python.coverage
frontend_coverage:
Expand Down

0 comments on commit 1e4c048

Please sign in to comment.