build: add option to wipe/rebuild papi 69/20569/5
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Tue, 9 Jul 2019 20:49:46 +0000 (16:49 -0400)
committerNeale Ranns <nranns@cisco.com>
Sun, 28 Jul 2019 14:21:05 +0000 (14:21 +0000)
Previously, the only option was to wipe/rebuild all the test dependencies.

Type: make

Change-Id: Ia95d6e800f67bef033dcf614dbfa249c3e43159d
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Makefile
test/Makefile

index 0c8b173..16243bc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -423,6 +423,9 @@ test-all-debug:
        $(eval EXTENDED_TESTS=yes)
        $(call test,vpp,vpp_debug,test)
 
+papi-wipe:
+       @make -C test papi-wipe
+
 test-help:
        @make -C test help
 
index 8a6d69c..3a92f14 100644 (file)
@@ -252,6 +252,11 @@ cov: wipe-cov reset ext verify-test-dir $(PAPI_INSTALL_DONE)
 wipe-cov: wipe
        @rm -rf $(BUILD_COV_DIR)
 
+.PHONY: papi-wipe
+
+papi-wipe:
+       @rm -rf $(PAPI_INSTALL_DONE)
+
 .PHONY: checkstyle
 checkstyle: verify-test-dir
        @virtualenv $(VENV_PATH) -p python3
@@ -275,6 +280,7 @@ help:
        @echo " test-all-debug      - build and run (all) functional tests (debug build)"
        @echo " retest              - run functional tests"
        @echo " retest-debug        - run functional tests (debug build)"
+       @echo " papi-wipe           - rebuild vpp_papi sources"
        @echo " test-wipe           - wipe (temporary) files generated by unit tests"
        @echo " test-shell          - enter shell with test environment"
        @echo " test-shell-debug    - enter shell with test environment (debug build)"