mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2025-01-03 11:42:10 +01:00
Makefile: add trivial test
For now only the basic functionality of the script is tested.
This commit is contained in:
parent
c7a121f8fc
commit
6e921753d6
1 changed files with 7 additions and 0 deletions
7
Makefile
7
Makefile
|
@ -35,6 +35,7 @@ help:
|
||||||
@$(info help - show this overview)
|
@$(info help - show this overview)
|
||||||
@$(info lint - code style checks)
|
@$(info lint - code style checks)
|
||||||
@$(info spelling - check spelling)
|
@$(info spelling - check spelling)
|
||||||
|
@$(info test - run tests)
|
||||||
@$(info tgz - create release archive)
|
@$(info tgz - create release archive)
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
@ -72,3 +73,9 @@ lint:
|
||||||
.PHONY: spelling
|
.PHONY: spelling
|
||||||
spelling:
|
spelling:
|
||||||
find -name .git -prune -or -name $(DIST_DIR) -prune -or -type f | xargs codespell
|
find -name .git -prune -or -name $(DIST_DIR) -prune -or -type f | xargs codespell
|
||||||
|
|
||||||
|
.PHONY: test
|
||||||
|
test: $(TARGET_FILE)
|
||||||
|
@# verify that the assembled shell script can be interpreted by the local shell
|
||||||
|
@if echo "list" | "$(abspath $(TARGET_FILE))" | grep -qw "uptime"; then \
|
||||||
|
echo "Test OK"; else echo "Test FAILED"; false; fi
|
||||||
|
|
Loading…
Reference in a new issue