summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorIntel <intel.com>2012-12-20 00:00:00 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-07-25 15:54:17 +0200
commite242c810e9349cbc4b0a22637848278fa2ec0ada (patch)
tree8fad94bd66c5e694e685471a1f1530ad9adf51e3 /mk
parente2cc79b75d9f7f7ac5c73dfd35aa05874d3528d3 (diff)
downloaddpdk-e242c810e9349cbc4b0a22637848278fa2ec0ada.zip
dpdk-e242c810e9349cbc4b0a22637848278fa2ec0ada.tar.gz
dpdk-e242c810e9349cbc4b0a22637848278fa2ec0ada.tar.xz
app: split performance tests
Signed-off-by: Intel
Diffstat (limited to 'mk')
-rw-r--r--mk/rte.sdkroot.mk4
-rw-r--r--mk/rte.sdktest.mk28
-rw-r--r--mk/rte.sdktestall.mk2
3 files changed, 27 insertions, 7 deletions
diff --git a/mk/rte.sdkroot.mk b/mk/rte.sdkroot.mk
index bcf9fa5..91e7deb 100644
--- a/mk/rte.sdkroot.mk
+++ b/mk/rte.sdkroot.mk
@@ -94,8 +94,8 @@ config:
test:
$(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdktest.mk test
-.PHONY: fast_test ring_test mempool_test
-fast_test ring_test mempool_test:
+.PHONY: fast_test ring_test mempool_test perf_test coverage
+fast_test ring_test mempool_test perf_test coverage:
$(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdktest.mk $@
.PHONY: testall
diff --git a/mk/rte.sdktest.mk b/mk/rte.sdktest.mk
index 0fda37f..143f6d1 100644
--- a/mk/rte.sdktest.mk
+++ b/mk/rte.sdktest.mk
@@ -49,17 +49,37 @@ DIR := $(shell basename $(RTE_OUTPUT))
#
PHONY: test fast_test
-fast_test: BLACKLIST=-Ring,Mempool
+coverage: BLACKLIST=-Mempool_perf,Memcpy_perf,Hash_perf
+fast_test: BLACKLIST=-Ring,Mempool_perf,Memcpy_perf,Hash_perf
ring_test: WHITELIST=Ring
-mempool_test: WHITELIST=Mempool
-test fast_test ring_test mempool_test:
+mempool_test: WHITELIST=Mempool,Mempool_perf
+perf_test:WHITELIST=Mempool_perf,Memcpy_perf,Hash_perf,Ring
+test fast_test ring_test mempool_test perf_test:
@mkdir -p $(AUTOTEST_DIR) ; \
cd $(AUTOTEST_DIR) ; \
if [ -f $(RTE_OUTPUT)/app/test ]; then \
python $(RTE_SDK)/app/test/autotest.py \
$(RTE_OUTPUT)/app/test \
- $(DIR) $(RTE_TARGET) \
+ $(RTE_TARGET) \
$(BLACKLIST) $(WHITELIST); \
else \
echo "No test found, please do a 'make build' first, or specify O=" ; \
fi
+
+# this is a special target to ease the pain of running coverage tests
+# this runs all the autotests, cmdline_test script and dump_cfg
+coverage:
+ @mkdir -p $(AUTOTEST_DIR) ; \
+ cd $(AUTOTEST_DIR) ; \
+ if [ -f $(RTE_OUTPUT)/app/test ]; then \
+ python $(RTE_SDK)/app/cmdline_test/cmdline_test.py \
+ $(RTE_OUTPUT)/app/cmdline_test; \
+ ulimit -S -n 100 ; \
+ python $(RTE_SDK)/app/test/autotest.py \
+ $(RTE_OUTPUT)/app/test \
+ $(RTE_TARGET) \
+ $(BLACKLIST) $(WHITELIST) ; \
+ $(RTE_OUTPUT)/app/dump_cfg --file-prefix=ring_perf ; \
+ else \
+ echo "No test found, please do a 'make build' first, or specify O=" ;\
+ fi \ No newline at end of file
diff --git a/mk/rte.sdktestall.mk b/mk/rte.sdktestall.mk
index a3ff2d4..16762ed 100644
--- a/mk/rte.sdktestall.mk
+++ b/mk/rte.sdktestall.mk
@@ -55,4 +55,4 @@ testall: $(TESTALL_TARGETS)
%_testall:
@echo ================== Test $*
- $(Q)$(MAKE) test O=$*
+ $(Q)$(MAKE) fast_test O=$*