[dpdk-dev] [PATCH v3 3/4] build: test meson installation
Thomas Monjalon
thomas at monjalon.net
Thu Jan 30 23:17:32 CET 2020
30/01/2020 17:00, David Marchand:
> Let's test installing with meson as part of Travis and the
> devtools/test-meson-builds.sh script.
For test-meson-builds.sh, I would prefer avoiding install if not needed.
Can we install only if compiling examples or checking ABI?
> -compile () # <builddir>
> +compile () # <builddir> <installdir>
> {
> builddir=$1
> if [ -n "$TEST_MESON_BUILD_VERY_VERBOSE" ] ; then
> @@ -90,6 +90,9 @@ compile () # <builddir>
> echo "$ninja_cmd -C $builddir"
> $ninja_cmd -C $builddir
> fi
> + rm -rf $2
> + echo "DESTDIR=$2 $ninja_cmd -C $builddir install"
> + DESTDIR=$2 $ninja_cmd -C $builddir install
> }
>
> build () # <directory> <target compiler> <meson options>
> @@ -102,7 +105,8 @@ build () # <directory> <target compiler> <meson options>
> command -v ${CC##* } >/dev/null 2>&1 || return 0
> load_env $targetcc || return 0
> config $srcdir $builds_dir/$targetdir $*
> - compile $builds_dir/$targetdir
> + compile $builds_dir/$targetdir \
> + $(readlink -f $builds_dir/$targetdir/install)
> }
More information about the dev
mailing list