Change-Id: Iab0de8e80c52383d438948df1f73b86529b08d7f
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
#
SUBDIRS_CLEAN = $(addsuffix .clean, $(SUBDIRS))
+SUBDIRS_TEST = $(addsuffix .test, $(SUBDIRS))
.PHONY: $(SUBDIRS) $(SUBDIRS_CLEAN) clean
clean: $(SUBDIRS_CLEAN)
+test: $(SUBDIRS_TEST)
+
$(SUBDIRS_CLEAN): %.clean:
@$(MAKE) --no-print-directory -C $* clean
+$(SUBDIRS_TEST): %.test:
+ @$(MAKE) --no-print-directory -C $* test
+
$(SUBDIRS):
@$(MAKE) --no-print-directory -C $@
GEN_VNFD_PKG := $(TOOLS_DIR)/gen_vnfd_pkg.sh
GEN_NSD_PKG := $(TOOLS_DIR)/gen_nsd_pkg.sh
GEN_PKG := $(TOOLS_DIR)/generate_descriptor_pkg.sh
+TEST_PKG := $(TOOLS_DIR)/upgrade_descriptor_version.py
BUILD_VNFD := $(shell readlink -f .|sed -e 's/\/.*descriptor-packages//' | grep vnfd)
DEP_FILES = $(wildcard src/*)
$(Q)rm -rf $(BUILD_DIR)
$(Q)rm -rf $(CHARM_BUILD_DIR)
+test:
+ $(Q)echo -n testing $(shell readlink -f src/*.yaml) " "
+ $(Q)$(TEST_PKG) --test src/*.yaml
+ $(Q)echo OK
+
.DEFAULT_GOAL := all