From nobody Thu Apr 25 05:11:56 2024 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 (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 152882499987546.72766905908918; Tue, 12 Jun 2018 10:36:39 -0700 (PDT) Received: from localhost ([::1]:57669 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSnDX-0002yd-BE for importer@patchew.org; Tue, 12 Jun 2018 13:36:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSnC3-0002GZ-5i for qemu-devel@nongnu.org; Tue, 12 Jun 2018 13:34:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSnC0-0001VO-2u for qemu-devel@nongnu.org; Tue, 12 Jun 2018 13:34:55 -0400 Received: from mail-qt0-x243.google.com ([2607:f8b0:400d:c0d::243]:38380) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSnBz-0001Uy-V1 for qemu-devel@nongnu.org; Tue, 12 Jun 2018 13:34:52 -0400 Received: by mail-qt0-x243.google.com with SMTP id x34-v6so24481397qtk.5 for ; Tue, 12 Jun 2018 10:34:51 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id w21-v6sm517398qkb.36.2018.06.12.10.34.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 10:34:50 -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=RH9XJfDW0Z8IaJ7kIbWFIJgxVOSate0hE2BHRmbOkDA=; b=F/YFvtFK7S2XNI7oghe8KW2a+0/ZpOq9bIleQPzjlE/F/20DSCZ6VAQkD6yGTtZdXL gr9+aGpENcx/1H0YvaxaSsTfQXuZwZj70BB9lFWt5R/O24nwQw0Sr8sQSHvZQwJLx3ME UqlEOT5OLZMMqyeogeNENJTR9rXAiQd4HZFFtCQ/YSNp6a0erOJbHyl+sQQGrdzHZD6M 4uRNSWVmwrcJtk+BSXsf6u8pqkGVw67BUN3jFVWcsblSXdfSzlS4iDw4elpd9YZbJWu2 I8j3PRMY75pP/ROzkAY7shrS2u75PIEEZvlZOdg2UEj2EOJkCfOyWHRSNHzEqpdTeSu2 JoYw== 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=RH9XJfDW0Z8IaJ7kIbWFIJgxVOSate0hE2BHRmbOkDA=; b=gSGQMzCVgZmJeZP7hhSpSxQcxdW21oE8zhwjKiG61KaYBh38+7oNtKNTX/+eDKV3Y1 qwrBS5Tlcm8QsA01U78Cbxs9MftaTQI30mQEGrAW8QW+CXR5OK/coshYTEG8OWI1OFsf YgBjPuNd95bPJfdVFRC9BwN/0KcXzGqr4F43UJBqeHQuJ2BRvaJTAh82fAmwUyVNM2K0 UCr6peCgEdf7p8F+CbNcrtWsaUXz7vKoZJVKmVePVlcqOkY1Sk9Tf0PJmFr+ViFehfig MfCysOmDKEJ4RWpouIj7k19O0maC+dWyHVwrvJi9jW0zCbCE5/sBtbARRoQzWxxqr7ce vaog== X-Gm-Message-State: APt69E3Y8X8c7xzZdDf9Q3ZDC2CD6CLY8EJlTUPKQM+ercMHLdlBuQwQ V6VI2DU/C3nSrtbng72NjNQ= X-Google-Smtp-Source: ADUXVKLqbRYjjg4GveBRefHAHn0kOhoyYDVKTZqk79kBFzQT16iqFmPc4IlXZ6W4XA2SCx4ul1O5NA== X-Received: by 2002:a0c:9781:: with SMTP id l1-v6mr1434571qvd.64.1528824891316; Tue, 12 Jun 2018 10:34:51 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Fam Zheng , Eduardo Habkost , Amador Pahim , Cleber Rosa Date: Tue, 12 Jun 2018 14:34:37 -0300 Message-Id: <20180612173437.14462-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::243 Subject: [Qemu-devel] [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 Currently to run Avocado acceptance tests in an out-of-tree build directory, we need to use the full path to the test: build_dir$ avocado run /full/path/to/sources/qemu/tests/acceptance/boot_l= inux_console.py This patch adds a symlink in the build tree to simplify the tests invocation, allowing the same command than in in-tree builds: build_dir$ avocado run tests/acceptance/boot_linux_console.py Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- Based-on: 20180530184156.15634-1-crosa@redhat.com Since RFC: reworded the commit message (Eduardo Habkost) configure | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configure b/configure index a8c4094c87..d095ed45a4 100755 --- a/configure +++ b/configure @@ -7239,9 +7239,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