annotate tests/test-check-code-hg.t @ 17956:a08775ec89f2

i18n: wrap false positives for translation detection
author Matt Mackall <mpm@selenic.com>
date Sun, 25 Nov 2012 13:53:47 -0600
parents 4d1da97aa7e7
children a6180647ead4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15557
7bb5ed61b74c tests: convert test-check-code-hg.py to .t
Mads Kiilerich <mads@kiilerich.com>
parents: 11771
diff changeset
1 $ check_code="$TESTDIR"/../contrib/check-code.py
7bb5ed61b74c tests: convert test-check-code-hg.py to .t
Mads Kiilerich <mads@kiilerich.com>
parents: 11771
diff changeset
2 $ cd "$TESTDIR"/..
16485
f48b075ff088 tests: solaris sh can not negate exit status with '!'
Mads Kiilerich <mads@kiilerich.com>
parents: 16306
diff changeset
3 $ if hg identify -q > /dev/null; then :
f48b075ff088 tests: solaris sh can not negate exit status with '!'
Mads Kiilerich <mads@kiilerich.com>
parents: 16306
diff changeset
4 > else
16179
be6ac2ecc7f8 test-check-code-hg: skip test if not in a working dir (issue3248).
Greg Ward <greg@gerg.ca>
parents: 16156
diff changeset
5 > echo "skipped: not a Mercurial working dir" >&2
be6ac2ecc7f8 test-check-code-hg: skip test if not in a working dir (issue3248).
Greg Ward <greg@gerg.ca>
parents: 16156
diff changeset
6 > exit 80
be6ac2ecc7f8 test-check-code-hg: skip test if not in a working dir (issue3248).
Greg Ward <greg@gerg.ca>
parents: 16156
diff changeset
7 > fi
16069
f680ed10e2c4 tests: fix command line overflow on ksh
Jim Hague <jim.hague@acm.org>
parents: 15932
diff changeset
8 $ hg manifest | xargs "$check_code" || echo 'FAILURE IS NOT AN OPTION!!!'
15558
c6b600d2348c tests: run check-code with warnings and maintain a whitelist
Mads Kiilerich <mads@kiilerich.com>
parents: 15557
diff changeset
9
16156
e7746fefd1ef test-check-code-hg: fix xargs exit status on OSX
Patrick Mezard <patrick@mezard.eu>
parents: 16069
diff changeset
10 $ hg manifest | xargs "$check_code" --warnings --nolineno --per-file=0 || true