Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
tests: use a lowercase "usage:" string
author
David Aguilar
<davvid@gmail.com>
Sun, 24 Feb 2013 22:48:39 +0000
(14:48 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 25 Feb 2013 05:30:10 +0000
(21:30 -0800)
Adjust test commands and test suites so that their
usage strings are consistent with Git.
Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-git-svn.sh
patch
|
blob
|
history
t/t1509/prepare-chroot.sh
patch
|
blob
|
history
test-chmtime.c
patch
|
blob
|
history
test-delta.c
patch
|
blob
|
history
test-genrandom.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
0b670ab
)
diff --git
a/t/lib-git-svn.sh
b/t/lib-git-svn.sh
index 199f22c231b5ac1479929a89cdf988ac7aff4268..c5e55b190bfbb06eef5a03d701b956e32ad22048 100644
(file)
--- a/
t/lib-git-svn.sh
+++ b/
t/lib-git-svn.sh
@@
-148,7
+148,7
@@
stop_httpd () {
convert_to_rev_db () {
"$PERL_PATH" -w -- - "$@" <<\EOF
use strict;
convert_to_rev_db () {
"$PERL_PATH" -w -- - "$@" <<\EOF
use strict;
-@ARGV == 2 or die "
U
sage: convert_to_rev_db <input> <output>";
+@ARGV == 2 or die "
u
sage: convert_to_rev_db <input> <output>";
open my $wr, '+>', $ARGV[1] or die "$!: couldn't open: $ARGV[1]";
open my $rd, '<', $ARGV[0] or die "$!: couldn't open: $ARGV[0]";
my $size = (stat($rd))[7];
open my $wr, '+>', $ARGV[1] or die "$!: couldn't open: $ARGV[1]";
open my $rd, '<', $ARGV[0] or die "$!: couldn't open: $ARGV[0]";
my $size = (stat($rd))[7];
diff --git
a/t/t1509/prepare-chroot.sh
b/t/t1509/prepare-chroot.sh
index c5334a8fa416aedd66a12416c75e85dbd9b6ac70..62691172e34f0d7b5bdfff2920bab4261f9d3b5c 100755
(executable)
--- a/
t/t1509/prepare-chroot.sh
+++ b/
t/t1509/prepare-chroot.sh
@@
-14,7
+14,7
@@
xmkdir() {
R="$1"
R="$1"
-[ -n "$R" ] || die "
U
sage: prepare-chroot.sh <root>"
+[ -n "$R" ] || die "
u
sage: prepare-chroot.sh <root>"
[ -x git ] || die "This script needs to be executed at git source code's top directory"
[ -x /bin/busybox ] || die "You need busybox"
[ -x git ] || die "This script needs to be executed at git source code's top directory"
[ -x /bin/busybox ] || die "You need busybox"
diff --git
a/test-chmtime.c
b/test-chmtime.c
index 92713d16da5431e9c8395967ab0e116402dfed67..02b42badd550a4b775aab084b38a63c2f4f561a9 100644
(file)
--- a/
test-chmtime.c
+++ b/
test-chmtime.c
@@
-114,6
+114,6
@@
int main(int argc, const char *argv[])
return 0;
usage:
return 0;
usage:
- fprintf(stderr, "
U
sage: %s %s\n", argv[0], usage_str);
+ fprintf(stderr, "
u
sage: %s %s\n", argv[0], usage_str);
return -1;
}
return -1;
}
diff --git
a/test-delta.c
b/test-delta.c
index af40a3c49ee0df5f0caaebae8e9bc6e9ffdb092b..4595cd6433f9fd543791ee5a8a59a9112b50c046 100644
(file)
--- a/
test-delta.c
+++ b/
test-delta.c
@@
-23,7
+23,7
@@
int main(int argc, char *argv[])
unsigned long from_size, data_size, out_size;
if (argc != 5 || (strcmp(argv[1], "-d") && strcmp(argv[1], "-p"))) {
unsigned long from_size, data_size, out_size;
if (argc != 5 || (strcmp(argv[1], "-d") && strcmp(argv[1], "-p"))) {
- fprintf(stderr, "
U
sage: %s\n", usage_str);
+ fprintf(stderr, "
u
sage: %s\n", usage_str);
return 1;
}
return 1;
}
diff --git
a/test-genrandom.c
b/test-genrandom.c
index b3c28d9a1c1102f2862af68b0bda7e9b0424f5cc..54824d075421e792f337beb5cdce170a33b00e68 100644
(file)
--- a/
test-genrandom.c
+++ b/
test-genrandom.c
@@
-12,7
+12,7
@@
int main(int argc, char *argv[])
unsigned char *c;
if (argc < 2 || argc > 3) {
unsigned char *c;
if (argc < 2 || argc > 3) {
- fprintf(stderr, "
U
sage: %s <seed_string> [<size>]\n", argv[0]);
+ fprintf(stderr, "
u
sage: %s <seed_string> [<size>]\n", argv[0]);
return 1;
}
return 1;
}