From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 14C1BA0C41; Wed, 17 Nov 2021 12:30:12 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 00ECD41229; Wed, 17 Nov 2021 12:30:12 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 257854116D for ; Wed, 17 Nov 2021 12:30:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637148610; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PMu7nobBAVQP17ugzVbs7/doPMW9oO/W6/9cZ+UbBPo=; b=MBWstQZ37KcRGw1rLd2F659v+dZrthsb2zg+pe79G2AKBK16xDTGthLtnRYUXJOTqbuGPY 9rux9NYoENjZ+n+KtljdVDl9KhhSBNP9xNi3ftDcxxuS2FiUsD1F9IvYetfM8Qpv8v2SKk VQkt2YUAZ4/ijD2INXrk/RCXBRplH54= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-312-2-tamLD4PM6VRdhkjH2j5w-1; Wed, 17 Nov 2021 06:30:05 -0500 X-MC-Unique: 2-tamLD4PM6VRdhkjH2j5w-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4470618125C4; Wed, 17 Nov 2021 11:30:03 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.192.8]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7F77421ECB; Wed, 17 Nov 2021 11:29:40 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: bruce.richardson@intel.com, thomas@monjalon.net, bluca@debian.org, tredaelli@redhat.com, i.maximets@ovn.org, james.r.harris@intel.com, mohammed@hawari.fr, Aaron Conole , Michael Santana Subject: [PATCH v2 1/5] ci: test minimum configuration Date: Wed, 17 Nov 2021 12:28:43 +0100 Message-Id: <20211117112847.7362-2-david.marchand@redhat.com> In-Reply-To: <20211117112847.7362-1-david.marchand@redhat.com> References: <20211110164814.5231-1-david.marchand@redhat.com> <20211117112847.7362-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Disabling drivers and optional libraries was not tested. Add a new target in test-meson-builds.sh and GHA with just the minimum to run test-null.sh and any other optional component disabled. Signed-off-by: David Marchand --- Changes since v1: - dropped target cleanup in test-meson-builds.sh, this will be handled in a separate series in the future, - disabled all drivers but mempool/ring and net/null, required to pass test-null.sh. bus/vdev is explicitly enabled for --- .ci/linux-build.sh | 4 ++++ .github/workflows/build.yml | 5 +++++ devtools/test-meson-builds.sh | 3 +++ 3 files changed, 12 insertions(+) diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh index ef0bd099be..6e8bd7baa9 100755 --- a/.ci/linux-build.sh +++ b/.ci/linux-build.sh @@ -87,6 +87,10 @@ OPTS="$OPTS -Dplatform=generic" OPTS="$OPTS --default-library=$DEF_LIB" OPTS="$OPTS --buildtype=debugoptimized" OPTS="$OPTS -Dcheck_includes=true" +if [ "$MINI" = "true" ]; then + OPTS="$OPTS -Denable_drivers=bus/vdev,mempool/ring,net/null" + OPTS="$OPTS -Ddisable_libs=*" +fi meson build --werror $OPTS ninja -C build diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4151cafee7..2e9c4be6d0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,6 +21,7 @@ jobs: CC: ccache ${{ matrix.config.compiler }} DEF_LIB: ${{ matrix.config.library }} LIBABIGAIL_VERSION: libabigail-1.8 + MINI: ${{ matrix.config.mini != '' }} PPC64LE: ${{ matrix.config.cross == 'ppc64le' }} REF_GIT_TAG: none RUN_TESTS: ${{ contains(matrix.config.checks, 'tests') }} @@ -32,6 +33,10 @@ jobs: - os: ubuntu-18.04 compiler: gcc library: static + - os: ubuntu-18.04 + compiler: gcc + library: shared + mini: mini - os: ubuntu-18.04 compiler: gcc library: shared diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index 9ec8e2bc7e..4ed61328b9 100755 --- a/devtools/test-meson-builds.sh +++ b/devtools/test-meson-builds.sh @@ -220,6 +220,9 @@ for c in gcc clang ; do done done +build build-mini cc skipABI $use_shared -Ddisable_libs=* \ + -Denable_drivers=bus/vdev,mempool/ring,net/null + # test compilation with minimal x86 instruction set # Set the install path for libraries to "lib" explicitly to prevent problems # with pkg-config prefixes if installed in "lib/x86_64-linux-gnu" later. -- 2.23.0