From 2c27d42d7e8b21c33bd36dd39b914c900562e865 Mon Sep 17 00:00:00 2001 From: Pavel Kulyov Date: Fri, 9 Oct 2026 01:38:57 +0300 Subject: [PATCH] Run the CHICKEN test suite from build.sh. The previous test command broke on nested quotes before make check started. Co-authored-by: Cursor --- build.sh | 6 ++++++ ck.ps1 | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index ca37509..fd41d40 100644 --- a/build.sh +++ b/build.sh @@ -6,6 +6,12 @@ root=$(CDPATH= cd -- "$(dirname "$0")" && pwd) src="$root/work/src" prefix=$(cygpath -m "$root/work/prefix") +if [ "${1:-}" = check ]; then + export PATH="$(cygpath -u "$prefix")/bin:${PATH}" + make -C "$src" check + exit 0 +fi + if [ ! -f "$src/configure" ]; then echo "no sources in work/src; run: .\\ck.ps1 fetch-sources" >&2 exit 1 diff --git a/ck.ps1 b/ck.ps1 index 32add5b..5efb55a 100644 --- a/ck.ps1 +++ b/ck.ps1 @@ -176,7 +176,7 @@ function Invoke-Build { } function Invoke-Test { - Invoke-Ucrt 'export PATH="$(cygpath -u "$PWD/work/prefix")/bin:$PATH"; make -C work/src check' + Invoke-Ucrt './build.sh check' } function Get-Revision {