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/c3adfef0137e
branches:  trunk
changeset: 1020606:c3adfef0137e
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 7c60576a442c -r c3adfef0137e 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