Skip to contentSkip to conversation

improve build coverage

PATCH Superseded Bruce Richardson 5 participants 25 messages Mar 29, 2017 – Apr 6, 2017

lore
Share & tools
lore
#0 lore raw

cover improve build coverage

This patch aims to increase the amount of code coverage we get when doing a basic build of DPDK using the build tools and scripts. It does this by enabling in our makefiles and default build configuration extra drivers and examples which don't have extra external requirements. It then adjusts the testbuild script to ensure it covers the test binary which was recently removed from the default build.

Bruce Richardson (4):
examples: enable performance-thread in examples build
config: enable crypto scheduler PMD by default
devtools: remove special case build for perf thread example
devtools: add autotest app to build script

 config/common_base     | 2 +-
 devtools/test-build.sh | 5 +----
 examples/Makefile      | 3 +++
 3 files changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
2.9.3
#1 lore raw

PATCH 1/4 examples: enable performance-thread in examples build

The performance-thread example was not build by default in the make examples build target. It will compile ok for x86_64 targets so add it to the examples makefile list for that platform.

---
 examples/Makefile | 3 +++
 1 file changed, 3 insertions(+)
examples/Makefile +3 -0
index da2bfdd..49b0703 100644
@@ -78,6 +78,9 @@ DIRS-$(CONFIG_RTE_LIBRTE_LPM) += load_balancer
 DIRS-y += multi_process
 DIRS-y += netmap_compat/bridge
 DIRS-$(CONFIG_RTE_LIBRTE_REORDER) += packet_ordering
+ifeq ($(CONFIG_RTE_ARCH_X86_64),y)
+DIRS-y += performance-thread
+endif
 DIRS-$(CONFIG_RTE_LIBRTE_IEEE1588) += ptpclient
 DIRS-$(CONFIG_RTE_LIBRTE_METER) += qos_meter
 DIRS-$(CONFIG_RTE_LIBRTE_SCHED) += qos_sched
Signature · 1 line
2.9.3
#2 lore raw

PATCH 2/4 config: enable crypto scheduler PMD by default

In reply to Bruce Richardson

The crypto scheduler PMD has no external dependencies to enable that by default.

---
 config/common_base | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
config/common_base +1 -1
index 2d54ddf..38e9483 100644
@@ -440,7 +440,7 @@ CONFIG_RTE_LIBRTE_PMD_ZUC_DEBUG=n
 #
 # Compile PMD for Crypto Scheduler device
 #
-CONFIG_RTE_LIBRTE_PMD_CRYPTO_SCHEDULER=n
+CONFIG_RTE_LIBRTE_PMD_CRYPTO_SCHEDULER=y
 CONFIG_RTE_LIBRTE_PMD_CRYPTO_SCHEDULER_DEBUG=n
 
 #
Signature · 1 line
2.9.3
#4 lore raw

PATCH 3/4 devtools: remove special case build for perf thread example

In reply to Bruce Richardson

Since performance-thread example app is now built as part of make examples we don't need a special case line for it in testbuild.sh script

---
 devtools/test-build.sh | 3 ---
 1 file changed, 3 deletions(-)
devtools/test-build.sh +0 -3
index 5fed4c1..a38ffab 100755
@@ -237,9 +237,6 @@ for conf in $configs ; do
 		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose \
 		O=$(readlink -m $dir/examples)
 	! echo $target | grep -q '^x86_64' || \
-	make -j$J -sC examples/performance-thread \
-		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose \
-		O=$(readlink -m $dir/examples/performance-thread)
 	unset RTE_TARGET
 	echo "################## $dir done."
 	unset dir
Signature · 1 line
2.9.3
#5 lore raw

PATCH 4/4 devtools: add autotest app to build script

In reply to Bruce Richardson

Since the test app is no longer being build by default as part of a build, we need to update the testbuild script to take account of this. Rather than just doing a "make" in the build directory, we can instead do "make test-build" which does a normal build as well as building the test application too.

---
 devtools/test-build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
devtools/test-build.sh +1 -1
index a38ffab..0894bbd 100755
@@ -227,7 +227,7 @@ for conf in $configs ; do
 	config $dir $target $options
 
 	echo "================== Build $dir"
-	make -j$J EXTRA_CFLAGS="$maxerr $DPDK_DEP_CFLAGS" \
+	make -j$J test-build EXTRA_CFLAGS="$maxerr $DPDK_DEP_CFLAGS" \
 		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose O=$dir
 	! $short || break
 	echo "================== Build examples for $dir"
Signature · 1 line
2.9.3
#6 lore raw

v2 cover improve build coverage

In reply to Bruce Richardson

This patch aims to increase the amount of code coverage we get when doing a basic build of DPDK using the build tools and scripts. It does this by enabling in our makefiles and default build configuration extra drivers and examples which don't have extra external requirements. It then adjusts the testbuild script to ensure it covers the test binary which was recently removed from the default build.

V2: corrected test-build additions for the autotest binary, since
test-build skips testpmd and the other apps. Therefore we need to run two build commands to build everything.

Bruce Richardson (4):
examples: enable performance-thread in examples build
config: enable crypto scheduler PMD by default
devtools: remove special case build for perf thread example
devtools: add autotest app to build script

 config/common_base     | 2 +-
 devtools/test-build.sh | 6 +++---
 examples/Makefile      | 3 +++
 3 files changed, 7 insertions(+), 4 deletions(-)
Signature · 1 line
2.9.3
#7 lore raw

PATCH v2 1/4 examples: enable performance-thread in examples build

The performance-thread example was not build by default in the make examples build target. It will compile ok for x86_64 targets so add it to the examples makefile list for that platform.

---
 examples/Makefile | 3 +++
 1 file changed, 3 insertions(+)
examples/Makefile +3 -0
index da2bfdd..49b0703 100644
@@ -78,6 +78,9 @@ DIRS-$(CONFIG_RTE_LIBRTE_LPM) += load_balancer
 DIRS-y += multi_process
 DIRS-y += netmap_compat/bridge
 DIRS-$(CONFIG_RTE_LIBRTE_REORDER) += packet_ordering
+ifeq ($(CONFIG_RTE_ARCH_X86_64),y)
+DIRS-y += performance-thread
+endif
 DIRS-$(CONFIG_RTE_LIBRTE_IEEE1588) += ptpclient
 DIRS-$(CONFIG_RTE_LIBRTE_METER) += qos_meter
 DIRS-$(CONFIG_RTE_LIBRTE_SCHED) += qos_sched
Signature · 1 line
2.9.3
#9 lore raw

PATCH v2 2/4 config: enable crypto scheduler PMD by default

In reply to Bruce Richardson

The crypto scheduler PMD has no external dependencies to enable that by default.

---
 config/common_base | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
config/common_base +1 -1
index 2d54ddf..38e9483 100644
@@ -440,7 +440,7 @@ CONFIG_RTE_LIBRTE_PMD_ZUC_DEBUG=n
 #
 # Compile PMD for Crypto Scheduler device
 #
-CONFIG_RTE_LIBRTE_PMD_CRYPTO_SCHEDULER=n
+CONFIG_RTE_LIBRTE_PMD_CRYPTO_SCHEDULER=y
 CONFIG_RTE_LIBRTE_PMD_CRYPTO_SCHEDULER_DEBUG=n
 
 #
Signature · 1 line
2.9.3
#11 lore raw

PATCH v2 3/4 devtools: remove special case build for perf thread example

In reply to Bruce Richardson

Since performance-thread example app is now built as part of make examples we don't need a special case line for it in testbuild.sh script

---
 devtools/test-build.sh | 3 ---
 1 file changed, 3 deletions(-)
devtools/test-build.sh +0 -3
index 5fed4c1..a38ffab 100755
@@ -237,9 +237,6 @@ for conf in $configs ; do
 		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose \
 		O=$(readlink -m $dir/examples)
 	! echo $target | grep -q '^x86_64' || \
-	make -j$J -sC examples/performance-thread \
-		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose \
-		O=$(readlink -m $dir/examples/performance-thread)
 	unset RTE_TARGET
 	echo "################## $dir done."
 	unset dir
Signature · 1 line
2.9.3
#18 lore raw

PATCH v2 4/4 devtools: add autotest app to build script

In reply to Bruce Richardson

Since the test app is no longer being build by default as part of a build, we need to update the testbuild script to take account of this.

---
V2: added in test-build as a new build action, since it skips the testpmd
build when run.

---
 devtools/test-build.sh | 3 +++
 1 file changed, 3 insertions(+)
devtools/test-build.sh +3 -0
index a38ffab..cc8f8dc 100755
@@ -229,6 +229,9 @@ for conf in $configs ; do
 	echo "================== Build $dir"
 	make -j$J EXTRA_CFLAGS="$maxerr $DPDK_DEP_CFLAGS" \
 		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose O=$dir
+	echo "================== Build tests for $dir"
+	make test-build -j$J EXTRA_CFLAGS="$maxerr $DPDK_DEP_CFLAGS" \
+		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose O=$dir
 	! $short || break
 	echo "================== Build examples for $dir"
 	export RTE_SDK=$(pwd)
Signature · 1 line
2.9.3
Acked-by on v2 1/4
#8 lore raw

Re: [PATCH v2 1/4] examples: enable performance-thread in examples build

In reply to Bruce Richardson
Quoted 15 lines · Bruce Richardson

The performance-thread example was not build by default in the make examples build target. It will compile ok for x86_64 targets so add it to the examples makefile list for that platform.

---
 examples/Makefile | 3 +++
 1 file changed, 3 insertions(+)
examples/Makefile +0 -0
index da2bfdd..49b0703 100644

examples/Makefile DIRS-$(CONFIG_RTE_LIBRTE_LPM) += load_balancer · line 86

Quoted 9 lines
examples/Makefile +3 -0
@@ -78,6 +78,9 @@ DIRS-$(CONFIG_RTE_LIBRTE_LPM) += load_balancer
 DIRS-y += multi_process
 DIRS-y += netmap_compat/bridge
 DIRS-$(CONFIG_RTE_LIBRTE_REORDER) += packet_ordering
+ifeq ($(CONFIG_RTE_ARCH_X86_64),y)
+DIRS-y += performance-thread
+endif
 DIRS-$(CONFIG_RTE_LIBRTE_IEEE1588) += ptpclient
 DIRS-$(CONFIG_RTE_LIBRTE_METER) += qos_meter
 DIRS-$(CONFIG_RTE_LIBRTE_SCHED) += qos_sched
Acked-by on v2 2/4
#10 lore raw

Re: [PATCH v2 2/4] config: enable crypto scheduler PMD by default

In reply to Bruce Richardson
Quoted 14 lines · Bruce Richardson

The crypto scheduler PMD has no external dependencies to enable that by default.

---
 config/common_base | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
config/common_base +0 -0
index 2d54ddf..38e9483 100644

config/common_base CONFIG_RTE_LIBRTE_PMD_ZUC_DEBUG=n · line 446

Quoted 8 lines
config/common_base +1 -1
@@ -440,7 +440,7 @@ CONFIG_RTE_LIBRTE_PMD_ZUC_DEBUG=n
 #
 # Compile PMD for Crypto Scheduler device
 #
-CONFIG_RTE_LIBRTE_PMD_CRYPTO_SCHEDULER=n
+CONFIG_RTE_LIBRTE_PMD_CRYPTO_SCHEDULER=y
 CONFIG_RTE_LIBRTE_PMD_CRYPTO_SCHEDULER_DEBUG=n
 
 #
Acked-by on v2 3/4
#12 lore raw

Re: [PATCH v2 3/4] devtools: remove special case build for perf thread example

In reply to Bruce Richardson
Quoted 14 lines · Bruce Richardson

Since performance-thread example app is now built as part of make examples we don't need a special case line for it in testbuild.sh script

---
 devtools/test-build.sh | 3 ---
 1 file changed, 3 deletions(-)
devtools/test-build.sh +0 -0
index 5fed4c1..a38ffab 100755

devtools/test-build.sh for conf in $configs ; do · line 242

Quoted 9 lines
devtools/test-build.sh +0 -3
@@ -237,9 +237,6 @@ for conf in $configs ; do
 		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose \
 		O=$(readlink -m $dir/examples)
 	! echo $target | grep -q '^x86_64' || \
-	make -j$J -sC examples/performance-thread \
-		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose \
-		O=$(readlink -m $dir/examples/performance-thread)
 	unset RTE_TARGET
 	echo "################## $dir done."
 	unset dir
Acked-by on v2 4/4
#19 lore raw

Re: [PATCH v2 4/4] devtools: add autotest app to build script

In reply to Bruce Richardson
Quoted 17 lines · Bruce Richardson

Since the test app is no longer being build by default as part of a build, we need to update the testbuild script to take account of this.

---
V2: added in test-build as a new build action, since it skips the testpmd
build when run.

---
 devtools/test-build.sh | 3 +++
 1 file changed, 3 insertions(+)
devtools/test-build.sh +0 -0
index a38ffab..cc8f8dc 100755

devtools/test-build.sh for conf in $configs ; do · line 237

Quoted 9 lines
devtools/test-build.sh +3 -0
@@ -229,6 +229,9 @@ for conf in $configs ; do
 	echo "================== Build $dir"
 	make -j$J EXTRA_CFLAGS="$maxerr $DPDK_DEP_CFLAGS" \
 		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose O=$dir
+	echo "================== Build tests for $dir"
+	make test-build -j$J EXTRA_CFLAGS="$maxerr $DPDK_DEP_CFLAGS" \
+		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose O=$dir
 	! $short || break
 	echo "================== Build examples for $dir"
 	export RTE_SDK=$(pwd)
#13 lore raw

Re: [PATCH v2 3/4] devtools: remove special case build for perf thread example

In reply to Bruce Richardson

2017-03-29 17:38, Bruce Richardson:

Quoted 2 lines

Since performance-thread example app is now built as part of make examples we don't need a special case line for it in testbuild.sh script

[...]

devtools/test-build.sh for conf in $configs ; do · line 242

Quoted 9 lines
devtools/test-build.sh +0 -3
@@ -237,9 +237,6 @@ for conf in $configs ; do
 		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose \
 		O=$(readlink -m $dir/examples)
 	! echo $target | grep -q '^x86_64' || \
-	make -j$J -sC examples/performance-thread \
-		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose \
-		O=$(readlink -m $dir/examples/performance-thread)

You are missing the x86_64 check.

This patch should be squashed with the first one.

#20 lore raw

Re: [PATCH v2 4/4] devtools: add autotest app to build script

In reply to Bruce Richardson

2017-03-29 17:38, Bruce Richardson:

Quoted 2 lines

Since the test app is no longer being build by default as part of a build, we need to update the testbuild script to take account of this.

[...]

devtools/test-build.sh for conf in $configs ; do · line 237

Quoted 12 lines
devtools/test-build.sh +3 -0
@@ -229,6 +229,9 @@ for conf in $configs ; do
 	echo "================== Build $dir"
 	make -j$J EXTRA_CFLAGS="$maxerr $DPDK_DEP_CFLAGS" \
 		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose O=$dir
+	echo "================== Build tests for $dir"
+	make test-build -j$J EXTRA_CFLAGS="$maxerr $DPDK_DEP_CFLAGS" \
+		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose O=$dir
 	! $short || break
 	echo "================== Build examples for $dir"
 	export RTE_SDK=$(pwd)

It should be added after the "short break".

The test-build target rebuild all.
I think it should be standard apps like the examples
and not re-link the libs before building.
The other way is to merge it with the above command (default build).

#14 lore raw

Re: [PATCH v2 3/4] devtools: remove special case build for perf thread example

In reply to Thomas Monjalon
Quoted 4 lines · Thomas Monjalon

2017-03-29 17:38, Bruce Richardson:

Quoted 2 lines

Since performance-thread example app is now built as part of make examples we don't need a special case line for it in testbuild.sh script

[...]

Quoted 11 lines

devtools/test-build.sh for conf in $configs ; do · line 242

Quoted 9 lines
devtools/test-build.sh +0 -3
@@ -237,9 +237,6 @@ for conf in $configs ; do
 		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose \
 		O=$(readlink -m $dir/examples)
 	! echo $target | grep -q '^x86_64' || \
-	make -j$J -sC examples/performance-thread \
-		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose \
-		O=$(readlink -m $dir/examples/performance-thread)

You are missing the x86_64 check.

That's in the makefile in the first patch

Quoted 3 lines

This patch should be squashed with the first one.

Sure. Doesn't matter to me!

/Bruce

#21 lore raw

Re: [PATCH v2 4/4] devtools: add autotest app to build script

In reply to Thomas Monjalon
Quoted 4 lines · Thomas Monjalon

2017-03-29 17:38, Bruce Richardson:

Quoted 2 lines

Since the test app is no longer being build by default as part of a build, we need to update the testbuild script to take account of this.

[...]

Quoted 15 lines

devtools/test-build.sh for conf in $configs ; do · line 237

Quoted 12 lines
devtools/test-build.sh +3 -0
@@ -229,6 +229,9 @@ for conf in $configs ; do
 	echo "================== Build $dir"
 	make -j$J EXTRA_CFLAGS="$maxerr $DPDK_DEP_CFLAGS" \
 		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose O=$dir
+	echo "================== Build tests for $dir"
+	make test-build -j$J EXTRA_CFLAGS="$maxerr $DPDK_DEP_CFLAGS" \
+		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose O=$dir
 	! $short || break
 	echo "================== Build examples for $dir"
 	export RTE_SDK=$(pwd)

It should be added after the "short break".

You have no idea how many times in preparing the patchset I moved the addition above the break, and then back below it, and above it again! You pick what you think is best. :-)

Quoted 1 line

The test-build target rebuild all.

It rebuilds the libs, but not the apps, which is why we can't just use test-build target, or we will skip testpmd.

Quoted 3 lines

I think it should be standard apps like the examples
and not re-link the libs before building.
The other way is to merge it with the above command (default build).

I tried merging the two into a single command, i.e. "make all test-build" but that failed with parallel builds because the two jobs try and build some things at the same time and interfere with each other. [The kernel drivers seemed to be the main problem]

/Bruce

#15 lore raw

Re: [PATCH v2 3/4] devtools: remove special case build for perf thread example

In reply to Bruce Richardson

2017-03-30 16:30, Bruce Richardson:

Quoted 17 lines · Thomas Monjalon
Quoted 4 lines

2017-03-29 17:38, Bruce Richardson:

Quoted 2 lines

Since performance-thread example app is now built as part of make examples we don't need a special case line for it in testbuild.sh script

[...]

Quoted 11 lines

devtools/test-build.sh for conf in $configs ; do · line 242

Quoted 9 lines
devtools/test-build.sh +0 -3
@@ -237,9 +237,6 @@ for conf in $configs ; do
 		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose \
 		O=$(readlink -m $dir/examples)
 	! echo $target | grep -q '^x86_64' || \
-	make -j$J -sC examples/performance-thread \
-		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose \
-		O=$(readlink -m $dir/examples/performance-thread)

You are missing the x86_64 check.

Quoted 1 line

That's in the makefile in the first patch

Sorry, I mean you should remove the above check:

	! echo $target | grep -q '^x86_64' || \
#22 lore raw

Re: [PATCH v2 4/4] devtools: add autotest app to build script

In reply to Bruce Richardson

For info, Ferruh did a similar patch:

	http://dpdk.org/patch/22443

Ferruh, OK to keep Bruce one?

2017-03-30 16:33, Bruce Richardson:

Quoted 38 lines · Thomas Monjalon
Quoted 4 lines

2017-03-29 17:38, Bruce Richardson:

Quoted 2 lines

Since the test app is no longer being build by default as part of a build, we need to update the testbuild script to take account of this.

[...]

Quoted 15 lines

devtools/test-build.sh for conf in $configs ; do · line 237

Quoted 12 lines
devtools/test-build.sh +3 -0
@@ -229,6 +229,9 @@ for conf in $configs ; do
 	echo "================== Build $dir"
 	make -j$J EXTRA_CFLAGS="$maxerr $DPDK_DEP_CFLAGS" \
 		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose O=$dir
+	echo "================== Build tests for $dir"
+	make test-build -j$J EXTRA_CFLAGS="$maxerr $DPDK_DEP_CFLAGS" \
+		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose O=$dir
 	! $short || break
 	echo "================== Build examples for $dir"
 	export RTE_SDK=$(pwd)

It should be added after the "short break".

You have no idea how many times in preparing the patchset I moved the addition above the break, and then back below it, and above it again! You pick what you think is best. :-)

Quoted 1 line

The test-build target rebuild all.

It rebuilds the libs, but not the apps, which is why we can't just use test-build target, or we will skip testpmd.

Quoted 3 lines

I think it should be standard apps like the examples
and not re-link the libs before building.
The other way is to merge it with the above command (default build).

I tried merging the two into a single command, i.e. "make all test-build" but that failed with parallel builds because the two jobs try and build some things at the same time and interfere with each other. [The kernel drivers seemed to be the main problem]

/Bruce

#16 lore raw

Re: [PATCH v2 3/4] devtools: remove special case build for perf thread example

In reply to Thomas Monjalon
Quoted 18 lines · Thomas Monjalon

2017-03-30 16:30, Bruce Richardson:

Quoted 17 lines · Thomas Monjalon
Quoted 15 lines

2017-03-29 17:38, Bruce Richardson:

Quoted 2 lines

Since performance-thread example app is now built as part of make examples we don't need a special case line for it in testbuild.sh script

[...]

devtools/test-build.sh for conf in $configs ; do · line 242

Quoted 9 lines
devtools/test-build.sh +0 -3
@@ -237,9 +237,6 @@ for conf in $configs ; do
 		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose \
 		O=$(readlink -m $dir/examples)
 	! echo $target | grep -q '^x86_64' || \
-	make -j$J -sC examples/performance-thread \
-		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose \
-		O=$(readlink -m $dir/examples/performance-thread)

You are missing the x86_64 check.

Quoted 5 lines
Quoted 1 line

That's in the makefile in the first patch

Sorry, I mean you should remove the above check:

	! echo $target | grep -q '^x86_64' || \

Oops, yes, you are right. Do you need a V3 of this set, or can you just fix it up as you like it on apply?

/Bruce

#17 lore raw

Re: [PATCH v2 3/4] devtools: remove special case build for perf thread example

2017-03-31 10:15, Bruce Richardson:

Quoted 19 lines · Thomas Monjalon
Quoted 18 lines

2017-03-30 16:30, Bruce Richardson:

Quoted 17 lines · Thomas Monjalon
Quoted 15 lines

2017-03-29 17:38, Bruce Richardson:

Quoted 2 lines

Since performance-thread example app is now built as part of make examples we don't need a special case line for it in testbuild.sh script

[...]

devtools/test-build.sh for conf in $configs ; do · line 242

Quoted 9 lines
devtools/test-build.sh +0 -3
@@ -237,9 +237,6 @@ for conf in $configs ; do
 		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose \
 		O=$(readlink -m $dir/examples)
 	! echo $target | grep -q '^x86_64' || \
-	make -j$J -sC examples/performance-thread \
-		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose \
-		O=$(readlink -m $dir/examples/performance-thread)

You are missing the x86_64 check.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

That's in the makefile in the first patch

Sorry, I mean you should remove the above check:

	! echo $target | grep -q '^x86_64' || \

Oops, yes, you are right. Do you need a V3 of this set, or can you just fix it up as you like it on apply?

Please send a new version for this fix and the short break in next patch.

#23 lore raw

Re: [PATCH v2 4/4] devtools: add autotest app to build script

In reply to Thomas Monjalon
Quoted 3 lines · Thomas Monjalon

For info, Ferruh did a similar patch:

	http://dpdk.org/patch/22443

Ferruh, OK to keep Bruce one?

Sure, go for it, they both do same thing.

Quoted 42 lines

2017-03-30 16:33, Bruce Richardson:

Quoted 38 lines · Thomas Monjalon
Quoted 4 lines

2017-03-29 17:38, Bruce Richardson:

Quoted 2 lines

Since the test app is no longer being build by default as part of a build, we need to update the testbuild script to take account of this.

[...]

Quoted 15 lines

devtools/test-build.sh for conf in $configs ; do · line 237

Quoted 12 lines
devtools/test-build.sh +3 -0
@@ -229,6 +229,9 @@ for conf in $configs ; do
 	echo "================== Build $dir"
 	make -j$J EXTRA_CFLAGS="$maxerr $DPDK_DEP_CFLAGS" \
 		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose O=$dir
+	echo "================== Build tests for $dir"
+	make test-build -j$J EXTRA_CFLAGS="$maxerr $DPDK_DEP_CFLAGS" \
+		EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose O=$dir
 	! $short || break
 	echo "================== Build examples for $dir"
 	export RTE_SDK=$(pwd)

It should be added after the "short break".

You have no idea how many times in preparing the patchset I moved the addition above the break, and then back below it, and above it again! You pick what you think is best. :-)

Quoted 1 line

The test-build target rebuild all.

It rebuilds the libs, but not the apps, which is why we can't just use test-build target, or we will skip testpmd.

Quoted 3 lines

I think it should be standard apps like the examples
and not re-link the libs before building.
The other way is to merge it with the above command (default build).

I tried merging the two into a single command, i.e. "make all test-build" but that failed with parallel builds because the two jobs try and build some things at the same time and interfere with each other. [The kernel drivers seemed to be the main problem]

/Bruce

#24 lore raw
In reply to Bruce Richardson

2017-03-29 17:38, Bruce Richardson:

Quoted 11 lines

This patch aims to increase the amount of code coverage we get when doing a basic build of DPDK using the build tools and scripts. It does this by enabling in our makefiles and default build configuration extra drivers and examples which don't have extra external requirements. It then adjusts the testbuild script to ensure it covers the test binary which was recently removed from the default build.

V2: corrected test-build additions for the autotest binary, since
test-build skips testpmd and the other apps. Therefore we need to run two build commands to build everything.

Quoted 5 lines

Bruce Richardson (4):
examples: enable performance-thread in examples build
config: enable crypto scheduler PMD by default
devtools: remove special case build for perf thread example
devtools: add autotest app to build script

Applied with suggested modifications, thanks