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
- gojq
- jq
- icu-dev
sources:
- https://git.sr.ht/~mil/sxmo-utils
tasks:
- shellcheck: |
- test: |
cd sxmo-utils
find . -type f -name '*.sh' -print0 | xargs -0 shellcheck -x --shell=sh
- shellspec: |
cd sxmo-utils
shellspec
- editorconfig-check: |
cd sxmo-utils
ec
make test

View File

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