##// END OF EJS Templates
tests: add a pattern to fix --pure tests...
tests: add a pattern to fix --pure tests Test Plan: ran all tests with and without --pure, everything passed on gcc112. Differential Revision: https://phab.mercurial-scm.org/D1946

File last commit:

r35687:39499bc3 default
r35824:ab239e3d stable
Show More
test-check-clang-format.t
10 lines | 343 B | text/troff | Tads3Lexer
/ tests / test-check-clang-format.t
Augie Fackler
test-clang-format: new test to verify that files stay clang-formatted...
r34835 #require clang-format test-repo
$ . "$TESTDIR/helpers-testrepo.sh"
$ cd "$TESTDIR"/..
Augie Fackler
formatting: enforce clang-format on all .cc files as well as .c files...
r35687 $ for f in `testrepohg files 'set:(**.c or **.cc or **.h) and not "listfile:contrib/clang-format-blacklist"'` ; do
Augie Fackler
test-clang-format: new test to verify that files stay clang-formatted...
r34835 > clang-format --style file $f > $f.formatted
> cmp $f $f.formatted || diff -u $f $f.formatted
> rm $f.formatted
> done