3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-07 14:45:18 +00:00

tests: Fail on CI when any required tool is missing

This commit is contained in:
Jannis Harder 2022-06-02 16:25:11 +02:00
parent 00efdecb4b
commit d398a3c2df
3 changed files with 8 additions and 2 deletions

View file

@ -9,4 +9,4 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: YosysHQ/setup-oss-cad-suite@v1 - uses: YosysHQ/setup-oss-cad-suite@v1
- name: Run checks - name: Run checks
run: tabbypip install xmlschema && make ci run: tabbypip install xmlschema && make ci NOSKIP=1

View file

@ -31,6 +31,12 @@ make/rules/collect.mk: make/collect_tests.py
make/rules/test/%.mk: make/rules/test/%.mk:
python3 make/test_rules.py $< python3 make/test_rules.py $<
ifdef NOSKIP
SKIP_COMMAND := echo "NOSKIP was set, treating this as an error"; echo; false
else
SKIP_COMMAND := echo
endif
ifneq (help,$(MAKECMDGOALS)) ifneq (help,$(MAKECMDGOALS))
# This should run every time but only trigger anything depending on it whenever # This should run every time but only trigger anything depending on it whenever

View file

@ -66,7 +66,7 @@ with rules_file.open("w") as rules:
if missing_tools: if missing_tools:
print( print(
f"\t@echo; echo 'SKIPPING {target}: {', '.join(missing_tools)} not found'; echo", f"\t@echo; echo 'SKIPPING {target}: {', '.join(missing_tools)} not found'; $(SKIP_COMMAND)",
file=rules, file=rules,
) )