From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1n7pij-0003RJ-Jw for mharc-grub-devel@gnu.org; Wed, 12 Jan 2022 21:20:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52560) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7pih-0003QU-EX for grub-devel@gnu.org; Wed, 12 Jan 2022 21:20:08 -0500 Received: from [2607:f8b0:4864:20::836] (port=34711 helo=mail-qt1-x836.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7piK-0004XF-FB for grub-devel@gnu.org; Wed, 12 Jan 2022 21:19:48 -0500 Received: by mail-qt1-x836.google.com with SMTP id y10so5423693qtw.1 for ; Wed, 12 Jan 2022 18:19:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4qdF1wfnHrsaSquAsKgQGw+cV6ltuW+QmkdvV47LeQ8=; b=bjDlOk48DN0NkLWsjLdN01i0Dw73sQ4i2viWPy17P3vSrE8Ij4diAHx3J7Rb/+YMHW 0iBtstf1u5Vcisl2EuYEyLwn9V4jax2iTptfAffa//GRRIl34kpWl2bK50hV8P6QDASY wO03j9U5d8p+LlpOI+45sI0GTbgmeaSr1Y+KJHhrTWtNFSgbjuttOx0u+MZIMNsyJfbP nFJxtuv+ucSqMKdaeTXVEen+Yj2b3AXfXNw2n14oK1ZghrDW4IgHfOO0vRmNy9+F2a2R Xz7Wmxg+kGDN+P7JpL766KWH6tq1+gRCATRhdw/QjiSVzr9z+gmlfi4b8t4mZBxTxtPW fDyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4qdF1wfnHrsaSquAsKgQGw+cV6ltuW+QmkdvV47LeQ8=; b=TCbT6IsWNfsoonNeH2EOG1QYSqHAMdrAFzwbO9LmwJ1I0Qmlyc5AFCmm3EQoOXGVBN WUiWqt7npvX2zJO2QE0FCSAnHd+HgD8zV6Y7ZsGlnwbIrohX7FqtOf8LGh04R1ze8XYN 9Hj/LS31VaJkatgWH99pJ59rpdt1U9bWWERS32X2xEfWy3g4pN5l3lo57IaPRFm1hkUp Q5uO8a5ZJnZnKUq0E4rMB41op4n4l+Vnz3m4zjzQ9IDvlBLms5ogs1vUb4+xmAiIRNxA Z7Vw3SckU8R3UAIXU0y2/zj6RTCROteLNyac6tyCLOMpkaNiAJYeXWOrpvd03m4JYxOu xQSw== X-Gm-Message-State: AOAM530Ih2D4FlhDdnHHEJrPSyhoa/YMKlX+Oj3rJQABkcpZnPuciVfZ 5y7/mE9llvjbOGWosSpqS0kk4g== X-Google-Smtp-Source: ABdhPJw+cpcvPdNgJybZqFBodZM5muwMvzoUh0jlWAumvSX6CSbkniqPi8sj2X5qsHw6GsAyguy67A== X-Received: by 2002:a05:622a:11ce:: with SMTP id n14mr2102498qtk.432.1642040382714; Wed, 12 Jan 2022 18:19:42 -0800 (PST) Received: from localhost.localdomain ([37.218.244.251]) by smtp.gmail.com with ESMTPSA id o10sm182294qki.61.2022.01.12.18.19.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 18:19:42 -0800 (PST) From: Glenn Washburn To: Daniel Kiper , Vladimir Serbinenko , grub-devel@gnu.org Cc: Glenn Washburn Subject: [PATCH 0/2] Add check-native and check-nonnative as make targets Date: Wed, 12 Jan 2022 20:19:02 -0600 Message-Id: X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::836 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::836; envelope-from=development@efficientek.com; helo=mail-qt1-x836.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2022 02:20:08 -0000 Tests can be put into two categories, native (tests that run on the build system) and non-native (tests run in QEMU). For any two targets (even of completely different architectures), the native tests will be running the same binary code (because they will be compiled for and run on the build machine), and thus will have the same result. So when building and running tests for multiple targets on a build machine, the native tests on need be run once. This can decrease the runtime of a multi-target test run significantly (like hours). This patch series makes it possible to run only run the non-native tests (skipping the native tests) by partitioning the set of tests into native and non-native based on whether QEMU is used by the test. The first patch is not necessary, but makes things look cleaner. Phcoder, could you confirm that the logic above is sound? Glenn Glenn Washburn (2): conf/Makefile.common: Order alphabetically variables tests: Add check-native and check-nonnative make targets Makefile.am | 9 +++ Makefile.util.def | 164 +++++++++++++++++++++---------------------- conf/Makefile.common | 22 +++--- gentpl.py | 6 +- 4 files changed, 106 insertions(+), 95 deletions(-) -- 2.27.0