Merge "Make option for test functionality added to tool to upgrade vnf,ns descriptors...
authormarchettim <mmarchetti@sandvine.com>
Wed, 21 Feb 2018 15:35:28 +0000 (16:35 +0100)
committerGerrit Code Review <root@osm.etsi.org>
Wed, 21 Feb 2018 15:35:28 +0000 (16:35 +0100)
1  2 
descriptor-packages/mk/dirs.mk

  #   limitations under the License.
  #
  
+ TOPDIR=$(shell readlink -f .|sed -e 's/\/descriptor-packages\/.*//')
+ TOOLS_DIR := $(TOPDIR)/tools
  SUBDIRS_CLEAN = $(addsuffix .clean, $(SUBDIRS))
 +SUBDIRS_TEST = $(addsuffix .test, $(SUBDIRS))
  
  .PHONY: $(SUBDIRS) $(SUBDIRS_CLEAN) clean
  
@@@ -28,8 -28,8 +31,11 @@@ 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 $@
+ test:
+       $(TOOLS_DIR)/launch_tests.sh