make: add FILTER var to make check

so we can run specific test with make check FILTER=<what-to-test>
This commit is contained in:
Natanael Copa 2021-05-05 14:21:19 +00:00
parent 8aacd4783f
commit 18f8c94237
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ help:
@echo "usage: make install [ DESTDIR=<path> ]"
check: $(USR_BIN_FILE) functions.sh
cd tests && bats *.bats
cd tests && bats $${FILTER:+ --filter $$FILTER} *.bats
install: $(USR_BIN_FILES) $(SAMPLES) abuild.conf functions.sh
install -d $(DESTDIR)/$(bindir) $(DESTDIR)/$(sysconfdir) \