AT_CHECK(["$builddir/t/helpdesc" 0 0 10 5 30 20 40 40 <test.txt],
[0], [expout])
+AT_CHECK([AS_ECHO_N(["no trailing newline"]) |
+ "$builddir/t/helpdesc" 0 0], [0],
+[no trailing newline
+])
+
AT_CLEANUP
AT_SETUP([help_print_desc (empty description)])
AT_SKIP_IF([test ! -x "$builddir/t/helpdesc"])
-AT_CHECK(["$builddir/t/helpdesc" 0 0 0 20 </dev/null])
+AT_CHECK(["$builddir/t/helpdesc" 0 0 0 20 </dev/null], [0], [
+
+])
AT_CHECK(["$builddir/t/helpdesc" 1 20 </dev/null], [0], [
])
[--hello-this-is-a-very-long-option 50],
[--not-long 12],
[--flagged -f \&])], [0],
-[[ --foo 7
- -b, --bar 11
- --baz=ARG 11
- -B, --baz=ARG 15
- --quux[=ARG] 14
- -q, --quux[=ARG] 18
- --hello-this-is-a-very-long-option
+[[ --foo 6
+ -b, --bar 10
+ --baz=ARG 10
+ -B, --baz=ARG 14
+ --quux[=ARG] 13
+ -q, --quux[=ARG] 17
+ --hello-this-is-a-very-long-option
0
- --hello-this-is-a-very-long-option 36
- --not-long 12
- --flagged 11
+ --hello-this-is-a-very-long-option 35
+ --not-long 11
+ --flagged 10
]])
AT_CLEANUP
[--hello-this-is-a-very-long-option 50],
[--not-long 12],
[--flagged -f \&])], [0],
-[[ -foo 6
- -bar 6
- -baz ARG 10
- -baz ARG 10
- -quux [ARG] 13
- -quux [ARG] 13
- -hello-this-is-a-very-long-option
+[[ -foo 5
+ -bar 5
+ -baz ARG 9
+ -baz ARG 9
+ -quux [ARG] 12
+ -quux [ARG] 12
+ -hello-this-is-a-very-long-option
0
- -hello-this-is-a-very-long-option 35
- -not-long 11
- -flagged 10
+ -hello-this-is-a-very-long-option 34
+ -not-long 10
+ -flagged 9
]])
AT_CLEANUP
print zenkaku, hankaku >"args"
- print " " zenkaku "\t" "8"
- print " " hankaku "\t" "8"
+ print " " zenkaku "\t" "7"
+ print " " hankaku "\t" "7"
}
EOF