sapling/tests/test-check-code-hg.t
Laurent Charignon 7830092e84 cleanup: add test-check-code-hg.t
Summary: Final diff of the series

Test Plan:
All tests pass with --extra-config=extensions.lz4revlog= needed
to run check-code

Reviewers: #sourcecontrol, ttung

Differential Revision: https://phabricator.fb.com/D2812684
2016-01-11 10:19:22 -08:00

12 lines
378 B
Perl

#require test-repo
$ check_code="$RUNTESTDIR"/../contrib/check-code.py
$ cd "$TESTDIR"/..
New errors are not allowed. Warnings are strongly discouraged.
(The writing "no-che?k-code" is for not skipping this file when checking.)
$ hg locate | sed 's-\\-/-g' |
> xargs "$check_code" --warnings --per-file=0 || false
Skipping statprof.py it has no-che?k-code (glob)