devtools: fix test of some build options
authorThomas Monjalon <thomas@monjalon.net>
Tue, 12 Feb 2019 22:20:37 +0000 (23:20 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 24 Feb 2019 22:24:18 +0000 (23:24 +0100)
CONFIG_RTE_LIBRTE_PMD_ISAL was not tested because of a typo.

CONFIG_RTE_LIBRTE_PMD_QAT_SYM was not tested since it has been
introduced and made CONFIG_RTE_LIBRTE_PMD_QAT enabled by default.

While at it, DPDK_DEP_JSON is now checked for "y",
as other DPDK_DEP_* variables, instead of non-empty.

Fixes: 3c32e89f68e1 ("compress/isal: add skeleton ISA-L compression PMD")
Fixes: 7a34c2155716 ("compress/qat: add empty driver")
Cc: stable@dpdk.org
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
devtools/test-build.sh

index 0511ae6..d37b121 100755 (executable)
@@ -150,7 +150,7 @@ config () # <directory> <target> <options>
                test "$DPDK_DEP_ARCHIVE" != y || \
                sed -ri       's,(RESOURCE_TAR=)n,\1y,' $1/.config
                test "$DPDK_DEP_ISAL" != y || \
-               sed -ri           's,(ISAL_PMD=)n,\1y,' $1/.config
+               sed -ri           's,(PMD_ISAL=)n,\1y,' $1/.config
                test "$DPDK_DEP_MLX" != y || \
                sed -ri           's,(MLX._PMD=)n,\1y,' $1/.config
                test "$DPDK_DEP_SZE" != y || \
@@ -180,7 +180,7 @@ config () # <directory> <target> <options>
                test "$DPDK_DEP_SSL" != y || \
                sed -ri        's,(PMD_OPENSSL=)n,\1y,' $1/.config
                test "$DPDK_DEP_SSL" != y || \
-               sed -ri            's,(PMD_QAT=)n,\1y,' $1/.config
+               sed -ri            's,(QAT_SYM=)n,\1y,' $1/.config
                test -z "$FLEXRAN_SDK" || \
                sed -ri     's,(BBDEV_TURBO_SW=)n,\1y,' $1/.config
                sed -ri           's,(SCHED_.*=)n,\1y,' $1/.config
@@ -192,7 +192,7 @@ config () # <directory> <target> <options>
                sed -ri         's,(MVNETA_PMD=)n,\1y,' $1/.config
                test "$DPDK_DEP_ELF" != y || \
                sed -ri            's,(BPF_ELF=)n,\1y,' $1/.config
-               test -z "$DPDK_DEP_JSON" || \
+               test "$DPDK_DEP_JSON" != y || \
                sed -ri          's,(TELEMETRY=)n,\1y,' $1/.config
                build_config_hook $1 $2 $3