From nobody Sat Nov 1 22:15:49 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1527711586538941.1924772960443; Wed, 30 May 2018 13:19:46 -0700 (PDT) Received: from localhost ([::1]:40606 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fO7ZM-0000Lt-Ai for importer@patchew.org; Wed, 30 May 2018 16:19:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fO7XY-0007zn-RM for qemu-devel@nongnu.org; Wed, 30 May 2018 16:18:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fO7Jx-0001C1-Gd for qemu-devel@nongnu.org; Wed, 30 May 2018 16:03:48 -0400 Received: from mail-qt0-x234.google.com ([2607:f8b0:400d:c0d::234]:33486) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fO7Jx-0001BZ-Bg for qemu-devel@nongnu.org; Wed, 30 May 2018 16:03:45 -0400 Received: by mail-qt0-x234.google.com with SMTP id e8-v6so24959065qth.0 for ; Wed, 30 May 2018 13:03:45 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id i8-v6sm26791045qtb.11.2018.05.30.13.03.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 May 2018 13:03:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LNqT1wl/5HH19wfftZzZRJwHjXyFuJaDZfemGpwzvTM=; b=oNhzgI9rRlRjH+w+TVGe7KdQ2b/aWR1ZiQbgpvUQAz+WQxdppfcO7KPnWiWoujoxHg joBNY/3YXb44YMF0sX4YxmqB0l0dRRAj/4mHOSIlaM8I8v92+zLgVrTld41NVu9eghNa M1K3lMJFz1FYyTwoIMuInY9QrlCOxvmiCpwVnijVSLd9MIHqQMBqk6mX8oB7prP4vnn/ /WI0R0I19Pb1ynM1QATW6EO4vzRmHoFCx56uJwK+0GZ4pFXlJzxJ/D1Jf1hGd2O72MmZ f+Wvfv31I5/NPJlmMeXfd2620ix9ym+EM9DpN//k/bHCA6wZOQfisrKLItQot3bmFBNz hCSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=LNqT1wl/5HH19wfftZzZRJwHjXyFuJaDZfemGpwzvTM=; b=PUervaXayVfzWFFwGDIxprH4Jda9o4kyt1zMDL9hexaty7ZvNuLrPZBoab8Q+mZVHQ 2eOGTSNpdh1R/j2eN5GCTXEflR55+d43muh99MSXLieb8eI3VA9B4623ktFPIVvcBn9H OxDwQtS/uYOHC4siMV0jk0Dk0CgZ/MklevDxWXkO+qR3EeeW6b+syI+eRKudFEmaGf3V 90j/VZ+CM7fOqQbyGFqTx4zXsbB8ZgkR5viMbnpOf9pFftmjLhR0tdwJHiAlBQRQU43z TP8+5uuUdEYRHuiQbppfkFzEWrAYQKt1Yi4/3iq5lMTEIYqM0j6UYnreNTMuRd2c3WWj PhTA== X-Gm-Message-State: APt69E3oBgaoRUOjJaAtGLM3BLFxWLMWTgDTCAhvqgYvJUfsKw/XdXmm pdxsjaNBWcaKvmzaNE5pRcs= X-Google-Smtp-Source: ADUXVKLEOIkmO5dZfiGMEhFyqw5Y+uyN4PlU7xUXayhLX3HemHcGBiqgasUxdyPM6Y+/hVyoZxAktQ== X-Received: by 2002:ac8:2f2c:: with SMTP id j41-v6mr4029134qta.366.1527710624733; Wed, 30 May 2018 13:03:44 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Fam Zheng , Eduardo Habkost , Amador Pahim , Cleber Rosa Date: Wed, 30 May 2018 17:03:34 -0300 Message-Id: <20180530200334.24179-1-f4bug@amsat.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::234 Subject: [Qemu-devel] [RFC PATCH] configure: Enable out-of-tree acceptance tests X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 In order to allow out-of-tree acceptance tests with Avocado, create a symlink in the build tree. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- Based-on: 20180530184156.15634-1-crosa@redhat.com http://lists.nongnu.org/archive/html/qemu-devel/2018-05/msg06877.html Before: build_dir$ avocado run /full/path/to/sources/qemu/tests/acceptance/boot_l= inux_console.py After build_dir$ avocado run tests/acceptance/boot_linux_console.py I first wanted to try something like: echo "[datadir.paths]" > .avocado.conf echo "test_dir =3D $source_path/tests/acceptance" >> .avocado.conf to run: build_dir$ avocado run -t console but this doesn't work this way, I'd have to use build_dir$ avocado --config .avocado.conf boot_linux_console.py -t console which isn't a win. --- configure | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configure b/configure index a6a4616c3e..0763ebe5ba 100755 --- a/configure +++ b/configure @@ -7213,9 +7213,11 @@ for rom in seabios vgabios ; do done =20 # set up tests data directory -if [ ! -e tests/data ]; then - symlink "$source_path/tests/data" tests/data -fi +for tests_subdir in acceptance data; do + if [ ! -e tests/$tests_subdir ]; then + symlink "$source_path/tests/$tests_subdir" tests/$tests_subdir + fi +done =20 # set up qemu-iotests in this build directory iotests_common_env=3D"tests/qemu-iotests/common.env" --=20 2.17.1