VOL-4805
This script is an inital attempt at capturing and documenting testing
resources for interactive and programatic retrieval. Command line
arguments and eventual filesystem based detection will hints for a
suite of tests to run to evaluate VOLTHA code changes.
make check: run python unit tests
usage:
% flog.py --help
% flog.py --usage
% flog.py --type regression
% flog.py --attr olt
Recreate patch: start over
o approval given by: daf & torsten
o a cycle of squashing roaches reported by lint checking resulted
in multiple conflicting patches in gerrit. Abandon the mess and
submit a clean patch.
o Only delta introduced is using the updated standard copyright notice.
o git merge to get branch and master back in sync.
Change-Id: I24292f2b72d134879939f43a84b31ab153d10fa9
diff --git a/scripts/makefile b/scripts/makefile
new file mode 100644
index 0000000..dafd2be
--- /dev/null
+++ b/scripts/makefile
@@ -0,0 +1,27 @@
+# -*- makefile -*-
+# -----------------------------------------------------------------------
+# -----------------------------------------------------------------------
+
+null :=#
+space :=$(null) $(null)
+
+PYTHON ?= /usr/bin/env python
+
+## -----------------------------------------------------------------------
+## -----------------------------------------------------------------------
+all: try
+
+## -----------------------------------------------------------------------
+## -----------------------------------------------------------------------
+test-args += -m unittest
+check test:
+ $(PYTHON) $(test-args) discover -v
+
+## -----------------------------------------------------------------------
+## -----------------------------------------------------------------------
+help:
+ @echo "USAGE: $(MAKE)"
+ @echo " all"
+ @echo " test Invoke available unit tests (find . -name 'test_*.py')"
+
+# [EOF]