From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: Package gmsh: best practise with test-suite? Date: Mon, 11 Feb 2019 20:56:20 +0100 Message-ID: References: <875ztqdsjt.fsf@cbaines.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:41757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtHhD-0002Xi-TQ for guix-devel@gnu.org; Mon, 11 Feb 2019 14:56:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtHhD-0000wU-7f for guix-devel@gnu.org; Mon, 11 Feb 2019 14:56:51 -0500 Received: from mail-qt1-x834.google.com ([2607:f8b0:4864:20::834]:40987) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gtHhD-0000qN-2L for guix-devel@gnu.org; Mon, 11 Feb 2019 14:56:51 -0500 Received: by mail-qt1-x834.google.com with SMTP id v10so156467qtp.8 for ; Mon, 11 Feb 2019 11:56:32 -0800 (PST) In-Reply-To: <875ztqdsjt.fsf@cbaines.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Christopher Baines Cc: Guix Devel Hi Chris, Thank you for your tip. On Mon, 11 Feb 2019 at 20:38, Christopher Baines wrote: > zimoun writes: > > > What is the better? > > a- Patch the CMakeLists.txt to generate only the right tests > > b- Turn off all the tests > > There may be a third option, run only the tests that are known to pass. > > I know very little about CMake, but I searched for ctest, which is > something mentioned in the CMakeLists.txt file, and it brought up this > [1] which mentions --exclude-regex and --label-exclude. Maybe these > could somehow be passed in, or maybe set through environment variables? >From my understanding, the cmake-build-system calls "make test" and not "ctest". Right? If I understand well, the idea should be to turn off the all tests ("#:tests? #f") and to add a final phase calling "ctest" with the correct tests. Does this make sense? All the best, simon