Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/usr.bin/make tests/make: indent consistently
details: https://anonhg.NetBSD.org/src/rev/8271be12f25d
branches: trunk
changeset: 961747:8271be12f25d
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Apr 17 11:31:25 2021 +0000
description:
tests/make: indent consistently
diffstat:
tests/usr.bin/make/t_make.sh | 37 ++++++++++++++++++-------------------
1 files changed, 18 insertions(+), 19 deletions(-)
diffs (52 lines):
diff -r 4abf9595f25e -r 8271be12f25d tests/usr.bin/make/t_make.sh
--- a/tests/usr.bin/make/t_make.sh Sat Apr 17 11:21:17 2021 +0000
+++ b/tests/usr.bin/make/t_make.sh Sat Apr 17 11:31:25 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_make.sh,v 1.13 2021/02/06 19:00:25 martin Exp $
+# $NetBSD: t_make.sh,v 1.14 2021/04/17 11:31:25 rillig Exp $
#
# Copyright (c) 2008, 2010, 2014 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -71,25 +71,24 @@
{
local filename basename atfname descr
- for filename in "$(atf_get_srcdir)"/unit-tests/*.mk ; do
- basename="${filename##*/}"
- basename="${basename%.mk}"
+ for filename in "$(atf_get_srcdir)"/unit-tests/*.mk; do
+ basename="${filename##*/}"
+ basename="${basename%.mk}"
- # skip files that are not test cases on their own
- case "${basename}" in
- include-sub*) continue;;
- esac
+ # skip files that are not test cases on their own
+ case "${basename}" in
+ include-sub*) continue;;
+ esac
- atfname=${basename}
- while :
- do
- case "${atfname}" in
- (*-*) atfname=${atfname%-*}_${atfname##*-};;
- (*) break;;
- esac
- done
- descr='' # XXX
- test_case "${atfname}" "${basename}" "${descr}"
- atf_add_test_case "${atfname}"
+ atfname=${basename}
+ while :; do
+ case "${atfname}" in
+ (*-*) atfname=${atfname%-*}_${atfname##*-};;
+ (*) break;;
+ esac
+ done
+ descr='' # XXX
+ test_case "${atfname}" "${basename}" "${descr}"
+ atf_add_test_case "${atfname}"
done
}
Home |
Main Index |
Thread Index |
Old Index