Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make tests/make: allow to only test selected variants
details: https://anonhg.NetBSD.org/src/rev/e19f89d2489f
branches: trunk
changeset: 1023531:e19f89d2489f
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Sep 12 10:28:40 2021 +0000
description:
tests/make: allow to only test selected variants
Testing all variants takes several minutes, so make it possible to test
a single or a few test variants separately.
diffstat:
usr.bin/make/test-variants.sh | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (39 lines):
diff -r 8c4abf8d1fec -r e19f89d2489f usr.bin/make/test-variants.sh
--- a/usr.bin/make/test-variants.sh Sun Sep 12 10:26:49 2021 +0000
+++ b/usr.bin/make/test-variants.sh Sun Sep 12 10:28:40 2021 +0000
@@ -1,5 +1,5 @@
#! /bin/sh
-# $NetBSD: test-variants.sh,v 1.11 2021/09/12 09:51:14 rillig Exp $
+# $NetBSD: test-variants.sh,v 1.12 2021/09/12 10:28:40 rillig Exp $
#
# Build several variants of make and run the tests on them.
#
@@ -10,6 +10,7 @@
set -eu
failed="no"
+filter="${1-}"
fail() {
echo "failed"
@@ -17,6 +18,11 @@
}
testcase() {
+ case "$*" in
+ *"$filter"*) ;;
+ *) return;;
+ esac
+
echo "===> Running $*"
env -i PATH="$PATH" USETOOLS="no" "$@" \
@@ -31,7 +37,7 @@
}
-testcase # just the plain default options
+testcase DESCR="just the plain default options"
# Try a different compiler, with slightly different warnings and error
# messages. One feature that is missing from GCC is a little stricter
Home |
Main Index |
Thread Index |
Old Index