From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by sourceware.org (Postfix) with ESMTPS id A4E50385742B for ; Tue, 14 Jun 2022 23:16:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A4E50385742B Received: by mail-pl1-x62c.google.com with SMTP id o17so8973490pla.6 for ; Tue, 14 Jun 2022 16:16:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=oJ7OKNW1Axeasu3hmFqY8CurUAwo8/5I0VzY87R65V4=; b=H3EDX075kBvFOYKvtVElQR5KBI7Z+OSKuAxyfr9xddwcwuarH9HuxwRXTu61P9ItAx EV3THi0SaHgMx+ewoMPr9UO4K5FQIAcXsFhzLJzr8HsSCTGT8bEDo3FaKIlbDhoY8okF 03mvj4SeZgZT9SeNMW5YfGsHD6LxjmrZXUqlLe8zCpP1hcAAUK0hwvz7K5vZQnJyNYS8 54avOVW7/1kb2UmqynmC3W1ZGcuGmpMWszjLc8BAYLn3a4C8LbUxjchlIaozHKhlWSSm USdnpv9v0eDVrssZ1m3ZaPsQCtN/EePsm2t19JWlY6SVMmiqhApz0U915ap76s+ZR6Q6 hYSA== X-Gm-Message-State: AJIora+ChR5zuDDlnNxr9opNkTZjSlDDcvNsVNREkE8X8XLrJ5jeei+W zsd/wasoqIMrKZsyzuNRGvh+1Q== X-Google-Smtp-Source: AGRyM1ufxGsDKSn3Nyc/gfKhSHWqeROtkq2fPcU0ui4nSl/aQIpr1pFKOY99nc6aujhQkKNFFHlNyA== X-Received: by 2002:a17:90b:4d05:b0:1e0:b53:f4a3 with SMTP id mw5-20020a17090b4d0500b001e00b53f4a3mr6929520pjb.3.1655248562663; Tue, 14 Jun 2022 16:16:02 -0700 (PDT) Received: from smtpclient.apple ([192.77.111.2]) by smtp.gmail.com with ESMTPSA id je9-20020a170903264900b0015e8d4eb2e3sm7715087plb.301.2022.06.14.16.16.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jun 2022 16:16:01 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: Re: How to skip test when building glibc From: Adhemerval Zanella In-Reply-To: Date: Tue, 14 Jun 2022 16:15:57 -0700 Cc: libc-help@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: <2323859E-CD57-4DB0-88EC-74901E407D35@linaro.org> References: To: Letu Ren X-Mailer: Apple Mail (2.3696.100.31) X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2022 23:16:07 -0000 > On 10 Jun 2022, at 23:49, Letu Ren via Libc-help = wrote: >=20 > Hi, >=20 > I want to build glibc on ArchLinux RISC-V, however, some unit tests > failure block my build script. I noticed that those failure also > appeared in official release notes of glibc v2.35. So, I think it's > safe to skip them. The problem is how to skip specific unit tests. > glibc uses autotools as the build system. However, I cannot find TESTS > and XFAIL_TESTS variables in Makefile. Glibc wiki of testsuite doesn't > mention it as well. I tried adding the XFAIL_TESTS variable to skip > tests, however, I failed. Could anyone help on this issue? >=20 > Letu Ren It depends of what you are doing on your build script. The =E2=80=98make=E2= =80=99 rule does not run unit unit test, so if you intend to just build glibc it should = be suffice. However, if you are trying to run the expected make and make check you try to not run the tests itself with the extra =E2=80=98run-built-tests=3D= no=E2=80=99 rule with =E2=80=98make check=E2=80=99. Unfortunately, there is no way to avoid specific tests in a default = 'make check=E2=80=99 and this is intentional: a failure really should represent an issue that = might be investigated.=20 We are trying to either get rid of flaky tests or improve them in a way = to make them report robust output, to avoid environment issues that might = mislead the runner. What kind of issue are you seeing in you environment?=