mirror of
https://github.com/facebook/sapling.git
synced 2024-12-29 08:02:24 +03:00
75a8173a10
Summary: Add `#chg-compatible` to 572 tests that seem to pass with chg enabled. This should make them run faster. Reviewed By: xavierd Differential Revision: D18870507 fbshipit-source-id: fe895e733efffc9286cd3d17c7a156c803124395
12 lines
374 B
Perl
12 lines
374 B
Perl
#chg-compatible
|
|
|
|
#require clang-format test-repo
|
|
|
|
$ . "$TESTDIR/helpers-testrepo.sh"
|
|
|
|
$ cd "$TESTDIR"/..
|
|
$ for f in `testrepohg files mercurial | egrep '\.(c|h)$' | egrep -v -f contrib/clang-format-blacklist` ; do
|
|
> clang-format --style file "$f" > "$TESTTMP/formatted.txt"
|
|
> cmp "$f" "$TESTTMP/formatted.txt" || diff -u "$f" "$TESTTMP/formatted.txt"
|
|
> done
|