Commit MetaInfo

Revision7aa6b60bc33635fd5abd1a1cb25e752dbbac55f0 (tree)
Time2022-06-19 23:34:27
AuthorAntoon Pardon <aej@pard...>
CommiterAntoon Pardon

Log Message

Makefile for tests

Change Summary

Incremental Difference

diff -r 81ba311066ec -r 7aa6b60bc336 bin/unit-test
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/unit-test Sun Jun 19 16:34:27 2022 +0200
@@ -0,0 +1,7 @@
1+#!/bin/bash
2+
3+set -e
4+for file in "$@"
5+do
6+ python3 -X dev $file
7+done
diff -r 81ba311066ec -r 7aa6b60bc336 tests/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/Makefile Sun Jun 19 16:34:27 2022 +0200
@@ -0,0 +1,34 @@
1+
2+PYTHON=$(wildcard *.py)
3+TESTS=$(wildcard *.py)
4+
5+all: .utest .mypy .lint Makefile doall
6+
7+# release.cfg
8+
9+release: release.cfg
10+
11+clean:
12+ rm .utest .lint .mypy
13+
14+ touch yacc.tpy
15+
16+release.cfg: .utest .mypy .lint Makefile doall
17+ bump -vm release.cfg
18+
19+.env: $(PYTHON) $(TESTS)
20+ @/bin/bash -c '[ X$$(type -p python) = X/opt/conda3.10/bin/python ] || ( echo ""; echo "***" conda3.10 not activated "***"; echo "" && exit 1 ) '
21+
22+.mypy: $(PYTHON) $(TESTS)
23+ mypy $?
24+ #doall mypy $?
25+ touch .mypy
26+
27+.lint: $(PYTHON) $(TESTS) #$(PTESTS)
28+ pylint $?
29+ #doall pylint $?
30+ touch .lint
31+
32+.utest: $(TESTS)
33+ unit-test $?
34+ touch .utest
Show on old repository browser