test: run all tests

This commit is contained in:
Willow Barraco
2023-11-06 14:40:30 +01:00
parent b8c42390be
commit 824ad04d59
2 changed files with 8 additions and 10 deletions

View File

@@ -5,15 +5,10 @@ packages:
- shellspec - shellspec
- gojq - gojq
- jq - jq
- icu-dev
sources: sources:
- https://git.sr.ht/~mil/sxmo-utils - https://git.sr.ht/~mil/sxmo-utils
tasks: tasks:
- shellcheck: | - test: |
cd sxmo-utils cd sxmo-utils
find . -type f -name '*.sh' -print0 | xargs -0 shellcheck -x --shell=sh make test
- shellspec: |
cd sxmo-utils
shellspec
- editorconfig-check: |
cd sxmo-utils
ec

View File

@@ -12,7 +12,7 @@ EXTERNAL_SERVICES:=1
SCDOC=scdoc SCDOC=scdoc
.PHONY: install test shellcheck test_legacy_nerdfont .PHONY: install test shellcheck shellspec test_legacy_nerdfont
VERSION:=1.13.0 VERSION:=1.13.0
@@ -33,11 +33,14 @@ docs/%: docs/%.scd
all: $(PROGRAMS) $(DOCS) all: $(PROGRAMS) $(DOCS)
test: shellcheck test_legacy_nerdfont test: shellcheck shellspec test_legacy_nerdfont
shellcheck: shellcheck:
find . -type f -name '*.sh' -print0 | xargs -0 shellcheck -x --shell=sh find . -type f -name '*.sh' -print0 | xargs -0 shellcheck -x --shell=sh
shellspec:
shellspec
test_legacy_nerdfont: programs/test_legacy_nerdfont test_legacy_nerdfont: programs/test_legacy_nerdfont
programs/test_legacy_nerdfont < configs/default_hooks/sxmo_hook_icons.sh programs/test_legacy_nerdfont < configs/default_hooks/sxmo_hook_icons.sh