From nobody Sun Jul 26 09:45:08 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4h7Gzm4F8Yz6mh2p for ; Sun, 26 Jul 2026 09:45:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h7Gzm1d0vz4Qf9 for ; Sun, 26 Jul 2026 09:45:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785059108; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2Thp/0LsZSopirS8OzGwqPnScVJ+hXsUDfVR/j1h5bw=; b=TxJW8X/vdQfDvdgNZsteXp+eM1nterkTF0gi9/70Dkurv4JfGAYcjL10WT2Aj7BVGj/qBQ 4jhIt9okhqIQUUGpH3xOtsa9Xo+978LFttt3px+zeZ5Zuq85yKEm032r2kvUhV3fcvE8rT +4PI/lx38RTQbEUgG8V9HAkTl4rd/c2Qow5Brq241yplrEUH74kGMhljlt+H2tO5Cz0UzW sK3+YmFi95UgKzhacyIBspmSnCmluZayCpqMWMXtvct1XLm8Rtz1l4Mgx1FigpqET8ErJ6 oSUvW7NM1faMJIIkjDltcauDehFwnyzs1lanX0D6tv/hVzzBn7HyP1h/UZtREQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1785059108; a=rsa-sha256; cv=none; b=ZVGOxkJcMK38xfmPhyV9xOIW8vTPhTlYWvBiPtyRaHYLns96BWcVSY2iYEIxIy61G070W5 5Zu4MVZ/gJi73Rl7XJ8DwNWCDKWKeUjoW+9lU1mLU6jjwInPSJvJbRrnINEwbllQDq5lDz lAMH/3NtVZhMrCRgrGmuz8CNg6y5Z/MphGwgOboXtWSlRIJnLZGlBK2JghL7znyvbOMX/x 9OxkSvZ1894Udhvzv1nl6TRBEQp+hlcpnXNoo90QjsXcLhyPYT2ReqmvvPzMZxWR5w5HPh gd1CDJtnb1bc6F664yF2J1sRLf4NDd3s2e2hFvWLs4MjzsLxubHSwv43ZnDRfA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785059108; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2Thp/0LsZSopirS8OzGwqPnScVJ+hXsUDfVR/j1h5bw=; b=uidbNmypBK5CWKefOyf7Km/bJGdcqiMh75TN4z+w7eGeCVtW6ZYmmWlvdNSZ4OLUwFexXf G9O4xspKUZ85iAkwu7HZXzq8XB9A9xp7duNZwbFn5/PphmjXEJkHgOJ5usIRmfw8/oj9TA iHx5800fhg41S0JmSNKexwzYKi62qO25E+PMRbh08LPgz/e4zAX2J6kEF5NLG1j0/HRSq7 f1G2/PUahrR/fw14DM+4X+OePN6wau4yBfkAdNC4pbUwTj6JzTca+FVdjZgsAKFjrwq8dH VTk2QdQOK2M1Kz7SajN0ycnjSbbuM1VyLuf8BvGDoLn4PdjIaenpc3y+DEUEKA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h7Gzm06Nnz2b9 for ; Sun, 26 Jul 2026 09:45:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 188d2 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 26 Jul 2026 09:45:08 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dag-Erling=?utf-8?Q? Sm=C3=B8rg?=rav Subject: git: 7a62840e9c5a - stable/15 - bc: Fix tests List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 7a62840e9c5a5a30c6234c9186326ca2f05b4102 Auto-Submitted: auto-generated Date: Sun, 26 Jul 2026 09:45:08 +0000 Message-Id: <6a65d724.188d2.72f48451@gitrepo.freebsd.org> The branch stable/15 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=7a62840e9c5a5a30c6234c9186326ca2f05b4102 commit 7a62840e9c5a5a30c6234c9186326ca2f05b4102 Author: Dag-Erling Smørgrav AuthorDate: 2026-04-29 15:14:13 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2026-07-25 17:16:15 +0000 bc: Fix tests Stop generating test scripts at build time. The dc test script is broken and simply fixing the code that generates it won't help as there is no reliable way to ensure it gets regenerated if it already exists in the object tree. MFC after: 1 week Reviewed by: se Differential Revision: https://reviews.freebsd.org/D56511 (cherry picked from commit 67a63eae7b2d10d29983c9698894f1bfff4ffc6e) --- tools/build/depend-cleanup.sh | 4 ++++ usr.bin/gh-bc/tests/Makefile | 10 ---------- usr.bin/gh-bc/tests/bc_tests.sh | 5 +++++ usr.bin/gh-bc/tests/dc_tests.sh | 5 +++++ 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/tools/build/depend-cleanup.sh b/tools/build/depend-cleanup.sh index f1860e236089..161ba2c2d529 100755 --- a/tools/build/depend-cleanup.sh +++ b/tools/build/depend-cleanup.sh @@ -303,6 +303,10 @@ check_epoch_and_opts # Date Rev Description +# 20260427 # bc / dc test scripts no longer generated +dir="${OBJTOP%/}"/usr.bin/gh-bc/tests +run rm -fv "${dir}"/bc_tests.sh "${dir}"/dc_tests.sh + # 20220326 fbc002cb72d2 move from bcmp.c to bcmp.S if [ "$MACHINE_ARCH" = "amd64" ]; then clean_dep lib/libc bcmp c diff --git a/usr.bin/gh-bc/tests/Makefile b/usr.bin/gh-bc/tests/Makefile index f2c92aecb0a5..6c3098350c58 100644 --- a/usr.bin/gh-bc/tests/Makefile +++ b/usr.bin/gh-bc/tests/Makefile @@ -55,14 +55,4 @@ FILESdc_scriptsMODE= 0755 PLAIN_TESTS_SH= bc_tests dc_tests -bc_tests.sh: - echo "#!/bin/sh" > ${.TARGET} - echo 'env LANG=C BC_TEST_OUTPUT_DIR=$$(pwd) \ - ${TESTSDIR}/tests/all.sh -n bc 1 1 0 0 bc' >> ${.TARGET} - -dc_tests.sh: - echo "#!/bin/sh" > ${.TARGET} - echo "env LANG=C BC_TEST_OUTPUT_DIR=\$pwd \ - ${TESTSDIR}/tests/all.sh -n dc 1 1 0 0 dc" >> ${.TARGET} - .include diff --git a/usr.bin/gh-bc/tests/bc_tests.sh b/usr.bin/gh-bc/tests/bc_tests.sh new file mode 100755 index 000000000000..76cfee05560f --- /dev/null +++ b/usr.bin/gh-bc/tests/bc_tests.sh @@ -0,0 +1,5 @@ +#!/bin/sh +unset LC_ALL LC_CTYPE LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME +export LANG=C +export BC_TEST_OUTPUT_DIR=${PWD} +exec "$(dirname "$(realpath "$0")")"/tests/all.sh -n bc 1 1 0 0 bc diff --git a/usr.bin/gh-bc/tests/dc_tests.sh b/usr.bin/gh-bc/tests/dc_tests.sh new file mode 100755 index 000000000000..6900ce9098d0 --- /dev/null +++ b/usr.bin/gh-bc/tests/dc_tests.sh @@ -0,0 +1,5 @@ +#!/bin/sh +unset LC_ALL LC_CTYPE LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME +export LANG=C +export BC_TEST_OUTPUT_DIR=${PWD} +exec "$(dirname "$(realpath "$0")")"/tests/all.sh -n dc 1 1 0 0 dc