A unit test for validating repository tags.
lf/include.mk
-------------
o Handle a bootstrap case for git submodule checkout.
o Invoke git command using macro $(GIT) else not found by path.
o git submodule update --init --recursive will checkout repo:onf-make
test/bats/check_repo_tags.bats
------------------------------
o A BATS unit test to validate contents of gerrit and github repository tags.
o Replace inlined hardcoded list of repository names.
o Instead read them from data file conf/repos/voltha.
o Added conditional booleans enable_fatal= and enable_skip=1
for easy removal of test filtering while using interactively.
test/bats/conf/repos/deprecated
-------------------------------
o Move a few repositories into a new deprecated list so their usage is clear.
[HOWTO: test]
% git clone ssh://gerrit.opencord.org/ci-management
% make -C ci-management/tests/bat test-bats
check_repo_tags.bats
3 tests, 0 failures
Change-Id: I5fc8e37b36f02f77d5b54594a7092a9456562939
Signed-off-by: Joey Armstrong <jarmstrong@linuxfoundation.org>
diff --git a/lf/include.mk b/lf/include.mk
index ebaacde..0fda66a 100644
--- a/lf/include.mk
+++ b/lf/include.mk
@@ -73,6 +73,7 @@
## repo:onf-make submodule, this target/dependency will initialize
## and checkout all submodules the current repository depends on.
## -----------------------------------------------------------------------
+GIT ?= $(shell which git)
.PHONY: git-submodules
git-submodules : $(onf-mk-lib)/include.mk
@@ -80,7 +81,7 @@
$(call banner-enter,(Checkout git submodules))
- git submodule update --init --recursive
+ $(GIT) submodule update --init --recursive
$(call banner-leave,(Checkout git submodules))