From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTP id 6BFE05A026F for ; Fri, 15 Mar 2024 09:42:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1710492157; 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=aSR3JKTKQxlki0yiY+xjibHP8wMUqEHtK1F2fNIkbdU=; b=MWKoOzX3hlacSMrv3j0wwLC8CcigpDsnzL6KZmjkY0vplXzMLKoGEJdFXRClk+nPWAsf66 lej09uqy0FrChdz2WYcCvE/h0JZBCFXIaHEYR2EJyLkWHVY/WDt3gOtzWCZ5LjBLR7kSAE laJMseUwuv9O2wladbubYXGbd9IaJ8E= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-302-4xVWcczNMYqQq2awMI4noQ-1; Fri, 15 Mar 2024 04:42:35 -0400 X-MC-Unique: 4xVWcczNMYqQq2awMI4noQ-1 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-a4623e798aeso97026266b.1 for ; Fri, 15 Mar 2024 01:42:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710492154; x=1711096954; h=content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=aSR3JKTKQxlki0yiY+xjibHP8wMUqEHtK1F2fNIkbdU=; b=awsiaMGejb6loipq7NDK+/JIR43TKw46hqRi2tbuWd6FiCJ3WGr1qLnutqVXvi9SrI 0pfvw/C8p7duc3M78DnNAlR+2WPHOJuZYa+JjFFwGj44uvoK+tooIlNPZy+/52+IfmYX owkIP6N8YQG63NZsbRqRF+Yj3sTbUtiXoC/clOtUmDVF7DZneOziPUcdRZRVeDx3hcea wvbuTqEhjBSp0lQUMvFOi+P3THLIRguf3wKdbvOa9utxAydcGo5MQ3xi8XUDrr5LNzoC 80FdrLpqB6Ee81yV1YiRN6kmPPnZt3iTMeodoAgRs49f5+cABsSb1imqjYiMaL+E0Opg lqVg== X-Forwarded-Encrypted: i=1; AJvYcCW4CmHcdfN1m+Z3RTTCSiAV2MYj+xfBGPho0PubJnfIl+v/MV5agVIYjM8sLmOstpA1z6SA8UcbJuOs3Ac03Vf0DUKP X-Gm-Message-State: AOJu0YysYZV4Xjdn1Dv8JTD3oaJlNI1wGjJyiBPGnnkEkeDr31RkEoym 8W6XGt9SFwcJ1Pwrcw4XG+KvQwwFWr3rRmQBq26F1f1F9oS7qJDEliB2QNTZZkKe4LZmS3k2Gq+ IpTyIr3cGoJw7RMKbVb1eZFHh0O307zWGywo7s0q0m/hNCu2pcg== X-Received: by 2002:a17:906:c7ca:b0:a46:4265:7534 with SMTP id dc10-20020a170906c7ca00b00a4642657534mr2180054ejb.33.1710492154310; Fri, 15 Mar 2024 01:42:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4qio1+SyULd+Dg2DsfPZ1k5Um4eqa2MgUbdqRps9XwTscNVx2JntewomNhOP+M7HF1JWOXA== X-Received: by 2002:a17:906:c7ca:b0:a46:4265:7534 with SMTP id dc10-20020a170906c7ca00b00a4642657534mr2180035ejb.33.1710492153730; Fri, 15 Mar 2024 01:42:33 -0700 (PDT) Received: from maya.cloud.tilaa.com (maya.cloud.tilaa.com. [164.138.29.33]) by smtp.gmail.com with ESMTPSA id ha25-20020a170906a89900b00a465dafa924sm1469486ejb.84.2024.03.15.01.42.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Mar 2024 01:42:33 -0700 (PDT) Date: Fri, 15 Mar 2024 09:41:55 +0100 From: Stefano Brivio To: David Gibson Subject: Re: "test in a box" Message-ID: <20240315094155.2397ab6f@elisabeth> In-Reply-To: References: Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.36; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: AI3444GF2XE5S26B4R74COU5RKNRHDXI X-Message-ID-Hash: AI3444GF2XE5S26B4R74COU5RKNRHDXI X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Jon Maloy , passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Fri, 15 Mar 2024 13:42:17 +1000 David Gibson wrote: > Hi Jon (and others), > > Are you still having trouble getting the passt tests to work? I > mentioned at some point in the past that I had an experimental "test > in a box" script which set up some namespaces to run the tests > independently of the host's networking setup. I just rebased that > onto the current tree and discovered that it worked better than I > recalled. I was able to run the full test suite except for the > performance tests - I didn't try those, so I don't know if they work. > > I pushed the rebased version, along with some other local patches I > tend to use while developing at: > https://gitlab.com/dgibson/passt/-/tree/testbase?ref_type=heads > > To use: > > 1) The test "assets" must be built and up to date, first, so in > passt/tests run: > $ make > 2) In passt/tests run > $ ./testinabox.sh > > Hope that's useful to someone. Actually, it would be generally useful to have this "on" in the tests by default, either as a wrapper or integrated in a different way. I maintain Debian and Fedora packages but I can only run manual tests on them, and other packagers have the same kind of issue. In particular, the lack of an autopkgtest possibility for Debian turns a release soft freeze into a hard freeze: https://release.debian.org/bookworm/freeze_policy.html#hard I know, the plan is to eventually replace this test suite altogether, but your script is small and rather inviting... -- Stefano