From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B7B9C43334 for ; Sat, 16 Jul 2022 13:47:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229499AbiGPNrK (ORCPT ); Sat, 16 Jul 2022 09:47:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229732AbiGPNrK (ORCPT ); Sat, 16 Jul 2022 09:47:10 -0400 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64C451C123 for ; Sat, 16 Jul 2022 06:47:09 -0700 (PDT) Received: by mail-io1-xd2c.google.com with SMTP id u20so5863937iob.8 for ; Sat, 16 Jul 2022 06:47:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Vju/B7WgasqAYZaZZzOqK0D8eJg2F2QhyydjhTbUtwo=; b=lshX2sfbwAHppgObvjWVgxsSPVpqRzA1RZt3hGSKws8EE40GhPcty4AOSzkLUpA5IS VEks29rij+P1as1HMwGIcFMBAlt1jke33Y27X5VMKeTLtUJV3f/5FJGELRoffglFhop9 qVXDfn1/GpIzlcBO9jGKi8aw1dDewiZWBWYRFFGPJH5r9OQluXxLnQvwXXaIBIk54XWH 3KcehDTUzpLr8WBoZKdWs8eD7Y5pbYMzYjvUEIoJmVEXkEFY1PXtN9YozX8FEzt5gjKv tECJOytRo6WQS1YQF7t1CRgTIP5qs6HBD2+A+JxWhlLFUtgghSPW1TbiK/o+ZovKY63K N+QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Vju/B7WgasqAYZaZZzOqK0D8eJg2F2QhyydjhTbUtwo=; b=e2f8NWwbGGAkho6r9TRCfAxLomy40loE+9mc+Ue4hfTPwrWmA7Exzj7leRjuJqI4Zf gpBXgAbmXjyrk2ELShBJPQtBudbTpDCZnuwX4YmDjSCm6C8j2o80T+wq9Y5JqE2x9NM4 oKqap+bZRo7p6r5qOtVqyp7VeRME9VuRrxB4K7kk1fjM7QNm9SyKROvaB7iksdD/ryi7 /KrN5MQKn5cTJN/fvx3hau83lnwWyWZ5UZtb4WNFGJ4YWZykDgUvh8+REIem/Ya9uSfN Q4SIdBj98cYXrnR7LXQ2p6tFPhuCJAsoHYWs7fNonhExuINtxew63gNEbkQCIO/kYEDG UFaw== X-Gm-Message-State: AJIora8p0oNmx7DK9EKUM721PmiCiOaJirFrx7+piLpxvCywWMQKT9Sv 8qVsLTMzqfhD6E5b45zIaJLkMpNSRvYgQvdso88= X-Google-Smtp-Source: AGRyM1tZoZxR1E0hqbi2OhpGB/iGN9HxU0Ny/C6XbbyD2ctkC1pYerfyZzw61mcS/xfLLgb65op1L1kmgZB6GJOc1vI= X-Received: by 2002:a05:6638:4514:b0:33f:45cb:2f35 with SMTP id bs20-20020a056638451400b0033f45cb2f35mr10702506jab.256.1657979228872; Sat, 16 Jul 2022 06:47:08 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Miguel Ojeda Date: Sat, 16 Jul 2022 15:46:57 +0200 Message-ID: Subject: Re: [PATCH V4 0/8] libgpiod: Add Rust bindings To: Bartosz Golaszewski Cc: Viresh Kumar , Kent Gibson , Linus Walleij , Vincent Guittot , "open list:GPIO SUBSYSTEM" , Wedson Almeida Filho , =?UTF-8?B?QWxleCBCZW5uw6ll?= , stratos-dev@op-lists.linaro.org, Gerard Ryan Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Sat, Jul 16, 2022 at 12:44 PM Bartosz Golaszewski wrote: > > This does seem to build the test-suite but there's no single > executable in target/debug/deps. Instead it seems that every test > section gets its own executable. Does 'cargo test' run them > separately? Or is there a single binary including all of them > somewhere else? Yeah, for `tests/` tests it seems to create several binaries. For `#[test]`s, they are put in a single binary. Another solution for both of those (from https://github.com/rust-lang/cargo/issues/5999) is `.cargo/config` (in the project folder): [target.x86_64-unknown-linux-gnu] runner = 'sudo -E' Which indeed seems to work for both `tests/` and `#[test]`s. However, I don't think that one works for doctests, though (at least I don't see it executing `rustdoc` with the runner)... But maybe you don't need privileges for those. Cheers, Miguel