Initial version of testing + Nix flake

This commit is contained in:
Andrew Dunham 2021-07-11 15:27:30 -04:00
parent 68af0ac537
commit d7586c4071
6 changed files with 1628 additions and 40 deletions

View file

@ -1,6 +1,19 @@
all:
lint:
@find apply push lib -type f -not -iname '*.*' | xargs shellcheck -s bash
@shellcheck -s dash run
@echo -e "\033[032mOK\033[0m"
@find apply push -type f -not -iname '*.*' | xargs shellcheck -s bash
@find run lib -type f -not -iname '*.*' | xargs shellcheck -s dash
@printf "\033[032mLINT OK\033[0m\n\n"
test: lint test-dash test-bash
test-ash:
@cd test && ash ./lib_test.sh
test-dash:
@cd test && dash ./lib_test.sh
test-bash:
@cd test && bash ./lib_test.sh
.PHONY: lint test test-dash test-bash