scripts: add build tests
authorThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 22 Oct 2015 18:27:05 +0000 (20:27 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 3 Dec 2015 17:36:25 +0000 (18:36 +0100)
commitcd31ca579c0db30c565bf4f5341aad0355e07407
tree593753230d0e68fc4b9fc3e83fb3c3a75b6c36ee
parentb07c376464a242038f7b3463b869a0b6e838bd4e
scripts: add build tests

This script helps to build a list of target with some custom options.
It tries to enable most of the options.
The examples and documentation are also built.

It uses some configuration from exported variables.
This config works on my machine:
export DPDK_DEP_PCAP=y
export DPDK_DEP_MOFED=y
       mlxdep=/opt/mofed-3.0
export DPDK_DEP_CFLAGS=-I$mlxdep/include
export DPDK_DEP_LDFLAGS=-L$mlxdep/lib
export DPDK_BUILD_TEST_CONFIGS='x86_64-native-linuxapp-gcc+shared+next
       x86_64-native-linuxapp-clang+shared+combined
       i686-native-linuxapp-gcc+combined'
export DPDK_MAKE_JOBS=8
export DPDK_NOTIFY=notify-send

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
v2:
- conditionally enable szedata2
- add quotes for CFLAGS and LDFLAGS
MAINTAINERS
scripts/test-build.sh [new file with mode: 0755]