From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id kfeHHV1jW2qa2BAAWB0awg (envelope-from ) for ; Sat, 18 Jul 2026 07:28:29 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=QloSp5ux; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 758661E09E; Sat, 18 Jul 2026 07:28:29 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id B0C2A1E099 for ; Sat, 18 Jul 2026 07:28:28 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 828F24BA23FC for ; Sat, 18 Jul 2026 11:28:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 828F24BA23FC Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=QloSp5ux Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 9E8254BA2E2F for ; Sat, 18 Jul 2026 11:27:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9E8254BA2E2F Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9E8254BA2E2F Authentication-Results: sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784374059; cv=none; b=ewWKbvTjgBE40fKhxFy8Jqf5BxxuumeVTpqt6UvTIN2XrlskWGFh5Tk5xF8ULn2xrfz104PFmHV1qimmZyfQL8C4N/p4sHWQwP9vnkVx+ToeSEm2KBgH1FM2tr0YXhxJZ7DkVxdTbB5NzEENEC667lO4WNwOhTUSFKtto8KPA0w= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784374059; c=relaxed/simple; bh=cM0w5Yk9dvtbDHApeZWirVGn7McmgAtjvcB1TUVxcUE=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=LNzG4shdCJv8XtdzZfW9P87NNdr0F+6fMkMyAfVaYFEx20001IAql9lDsuLDkszUiuV+4yoPmHSxB+N2TTTY2bEvNe8bbjbfZaHmik/fiydF+g+5GJsuc2h3XcHhGpppH3zT1+5kOOgGgqzh8aEpdDR11GDK2O2EXPIjnuEq0Yo= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=QloSp5ux DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9E8254BA2E2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1784374059; 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=BJ4yWHERIrFhEyIabQLq4wBs7ruUAR8Ou2KQ4JzNqxI=; b=QloSp5uxgvOxfFIsyI24eewPq9u5aWU9kHUM+Z0SGpUDnWg68kP/JcEd7dT52LcGrwAVC9 jg5eteBZahyQbNdkN3CRpBK7qlDFphTjxxjhHyVMJ5S5KJ7AG5ZOPcUP3Gf2oRfMOO1G7U x0n17oAuhwS+fRh/ZDY4HiKpiTr465w= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-280-q8n6YwBfOS6kNJ9CXnQ6sA-1; Sat, 18 Jul 2026 07:27:37 -0400 X-MC-Unique: q8n6YwBfOS6kNJ9CXnQ6sA-1 X-Mimecast-MFC-AGG-ID: q8n6YwBfOS6kNJ9CXnQ6sA_1784374056 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-47bbe3b9705so7713964f8f.0 for ; Sat, 18 Jul 2026 04:27:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784374056; x=1784978856; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=BJ4yWHERIrFhEyIabQLq4wBs7ruUAR8Ou2KQ4JzNqxI=; b=XpMHDOXQPjhIwcuW5ddrW7CiFkynU7nnlYFmJ9et9K0a9Di5up196F1HfAj9GpYups elxg8BqkgsvDOlanHo35UdwM2wNaQE+QbqxfFRz7915nCeXjRFXGVT0fyNqlKbhhxwpt HispZvYa/KhHQdM2XqMCRh8wgYeFwwBgm9WL0VjEQEWAp+CtlL7OFXV5daJ1LSdBAqS9 WGtSv58kCD18zzJvG3gEGuVMckvW/fy0rVcOes/ZKLhwICzZTPIAi+UABhHuMKVnVkZP zjBqs124Ftx8gLTsPSL5+xDVPHyCPhJqXV5x4LwX73/PDFnIoxqgviKuMGtOO1VNvllh LQdw== X-Gm-Message-State: AOJu0Ywvh7MLBh+2qSskc8Fjx3DK4fl/5NsZxxjBIC3JxN7mJ42RJ49t 423fFqls61lqNAjMrVYIArZKiPMRoJxZEKxjQ4I//FOmU83sw6PvDb7+O0pcmBjPnZEGnI83IMs KL/5UOafVV1XoMFOGBQqacjsB52v6QzQA98ACGRSUYgcfg0UEpgvripXE2qiPxRrpSmY1t7ws4E G3Yw7I0NARU8if6vhwvnz2mD24AzVTnOh40+knztXgkdMDohY= X-Gm-Gg: AfdE7cly9wIIvkt1Y3r2TgJp90MtDXSQudrPHPjAEWM4uQdVAs2BwqrvHyaeZ2f3BsL VEPH0s6BCa+Y5VOJt7W0hfSLRrG3eguP/9LE3pE4GRGanR4bJEe0z7hIiLts2vXOMKQdmZAYyE3 gnlsYtWEf6EEBtknBXwPaA75/BfEh0Pzk3Bd+XL9cs8Xh3mWEJjyc+BFH9h4iJtnhiYF39tw4nz LPigh/h8zNPhZBuxrYr2usttZBY9M9WIO4DkFKx3rwXEolJVtb7Ydf+0YqfktTYRg7XePs3x91I hLrVnMrjs5YGIKhJgOWsPZFVYuMgh8TPAKPcieaDNIyWuNHN1/wqs6wTicQFYsqiwNFKvdLcLU8 RuRhX2rhtikDnR63HIL6IIY21 X-Received: by 2002:a05:600c:3114:b0:493:f278:ba2f with SMTP id 5b1f17b1804b1-4954a3ed46bmr72361575e9.9.1784374056328; Sat, 18 Jul 2026 04:27:36 -0700 (PDT) X-Received: by 2002:a05:600c:3114:b0:493:f278:ba2f with SMTP id 5b1f17b1804b1-4954a3ed46bmr72361365e9.9.1784374055805; Sat, 18 Jul 2026 04:27:35 -0700 (PDT) Received: from localhost (92.40.184.205.threembb.co.uk. [92.40.184.205]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47f63ee926dsm10947347f8f.35.2026.07.18.04.27.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Jul 2026 04:27:35 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCH 3/3] gdb/testsuite: improve rerun scripts generated by make-check-all.sh Date: Sat, 18 Jul 2026 12:27:27 +0100 Message-Id: <9cd9c53b7561d09ee1a6b18d0fce52b64ceb555c.1784373976.git.aburgess@redhat.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: _LhacxIHdYze78cHmRvMqOKnU3x3jd57n3ezR6YZ28M_1784374056 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org The make-check-all.sh script creates little scripts that allow each board to easily be rerun, useful if a particular test fails and you want to check a possible fix. The scripts as currently generated only include the 'make check-...' line, and are not executable, which means you need to first change to the correct directory, and invoke the script with 'sh'. This commit extends the script to include a '#! /bin/sh' line as well as a 'cd ....' line to switch to the correct directory to run the test. The script is then made executable. It should now be easier to rerun tests. There is no change to how tests are run, or what tests are run with this commit. --- gdb/testsuite/make-check-all.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/make-check-all.sh b/gdb/testsuite/make-check-all.sh index 3cf6b46cdb0..8708ecec1cc 100755 --- a/gdb/testsuite/make-check-all.sh +++ b/gdb/testsuite/make-check-all.sh @@ -215,8 +215,14 @@ do_tests () cp gdb.sum gdb.log "$dir" # Record the 'make check' command to enable easy re-running. - echo "make $maketarget RUNTESTFLAGS=\"${rtf[*]}\" TESTS=\"${tests[*]}\"" \ - > "$dir/make-check.sh" + make_check_script="$dir/make-check.sh" + cat <<-EOF > "$make_check_script" + #!/bin/sh + + cd "$PWD" && \\ + make $maketarget RUNTESTFLAGS="${rtf[*]}" TESTS="${tests[*]}" + EOF + chmod +x "$make_check_script" fi } -- 2.25.4