aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-07-13 19:43:18 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-07-13 19:45:44 +0200
commit8684161f8d65f247a5cbb2608692391c5d3ae789 (patch)
tree22b15f2498fd0f46a7a338f7af8be97067abff7b /Makefile
parentMakefile: remove unused recipes (diff)
downloadcgitize-8684161f8d65f247a5cbb2608692391c5d3ae789.tar.gz
cgitize-8684161f8d65f247a5cbb2608692391c5d3ae789.zip
Makefile: add test target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0d7ad33..7f30332 100644
--- a/Makefile
+++ b/Makefile
@@ -30,20 +30,35 @@ python:
.PHONY: repl
repl: python
+.PHONY: test
+test: test/unit test/local
+
.PHONY: test/unit
test/unit:
+ @echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ @echo Unit tests
+ @echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
python -m unittest --verbose --buffer
.PHONY: test/local
test/local:
+ @echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ @echo Integration test: local
+ @echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test/integration/local/test.sh
.PHONY: test/docker
test/docker:
+ @echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ @echo Integration test: docker
+ @echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test/integration/docker/test.sh
.PHONY: test/example
test/example:
+ @echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ @echo Integration test: example
+ @echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test/integration/example/test.sh
.PHONY: tag