Mercurial > hg > octave-shane > gnulib-hg
comparison tests/test-parse-duration.sh @ 15338:03e2cd1cbbe8
maint: indent with spaces, not TABs, and add a rule to check this
* tests/test-userspec.c: Indent with spaces, not TABs.
* tests/test-argp.c: Likewise.
* tests/test-c-stack2.sh: Likewise.
* tests/test-parse-duration.sh: Likewise
* m4/strtod.m4: Likewise.
* m4/alloca.m4: Likewise.
* m4/pselect.m4: Likewise.
* Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Mon, 04 Jul 2011 12:31:05 +0200 |
parents | c1d3603bec42 |
children | 2119c582d05b |
comparison
equal
deleted
inserted
replaced
15337:787a6021ecd5 | 15338:03e2cd1cbbe8 |
---|---|
48 func_tmpdir | 48 func_tmpdir |
49 trap 'rm -rf "${tmp}"' EXIT | 49 trap 'rm -rf "${tmp}"' EXIT |
50 tmpf="${tmp}/tests.txt" | 50 tmpf="${tmp}/tests.txt" |
51 | 51 |
52 cat > "${tmpf}" <<- _EOF_ | 52 cat > "${tmpf}" <<- _EOF_ |
53 1 Y 2 M 3 W 4 d 5 h 6 m 7 s | 53 1 Y 2 M 3 W 4 d 5 h 6 m 7 s |
54 P 00010225 T 05:06:07 | 54 P 00010225 T 05:06:07 |
55 P 1Y2M3W4D T 5H6M7S | 55 P 1Y2M3W4D T 5H6M7S |
56 1 Y 2 M 25 D 5:6:7 | 56 1 Y 2 M 25 D 5:6:7 |
57 1 Y 2 M 25 d 5h 6:7 | 57 1 Y 2 M 25 d 5h 6:7 |
58 1 Y 2 M 25 d 5h 6m 7 | 58 1 Y 2 M 25 d 5h 6m 7 |
59 P 1-2-25 T 5:6:7 | 59 P 1-2-25 T 5:6:7 |
60 _EOF_ | 60 _EOF_ |
61 | 61 |
62 exec 3< "${tmpf}" | 62 exec 3< "${tmpf}" |
63 while read line <&3 | 63 while read line <&3 |
64 do | 64 do |
65 v=`${exe} "${line}"` || { ls -l "${tmpf}"; die "Failed: ${exe} '${line}'"; } | 65 v=`${exe} "${line}"` || { ls -l "${tmpf}"; die "Failed: ${exe} '${line}'"; } |