From ac7ef6f7fc4fdde95ccd16f50016b48bf370d148 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 23 Aug 2026 11:51:04 -0500 Subject: [PATCH] Add NOREBUILD=1 for timing how long a batch of tests takes. --- scripts/test.sh | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index 03863c15..b372a057 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -9,17 +9,20 @@ trap 'kill $(jobs -p) 2>/dev/null; exit 1' INT # Create working directory TOPDIR="$PWD" export FILES="$PWD"/tests/files PREFIX=generated/testdir -rm -rf "$PREFIX" -mkdir -p "$PREFIX"/testdir - -# Populate working directory -if [ -z "$TEST_HOST" ] +if [ -z "$NOREBUILD" ] then - if [ $# -ne 0 ] + rm -rf "$PREFIX" + mkdir -p "$PREFIX"/testdir + + # Populate working directory + if [ -z "$TEST_HOST" ] then - scripts/single.sh "$@" || exit 1 - else - scripts/install.sh --symlink --force || exit 1 + if [ $# -ne 0 ] + then + scripts/single.sh "$@" || exit 1 + else + scripts/install.sh --symlink --force || exit 1 + fi fi fi -- 2.39.5