tests/test-check-clang-format.t
author Martin von Zweigbergk <martinvonz@google.com>
Fri, 28 Sep 2018 12:05:48 -0700
changeset 39938 fec944719324
parent 37184 0024961aa493
permissions -rw-r--r--
narrow: move support for `hg verify` into core Differential Revision: https://phab.mercurial-scm.org/D4824

#require clang-format test-repo

  $ . "$TESTDIR/helpers-testrepo.sh"

  $ cd "$TESTDIR"/..
  $ for f in `testrepohg files 'set:(**.c or **.cc or **.h) and not "listfile:contrib/clang-format-ignorelist"'` ; do
  >   clang-format --style file $f > $f.formatted
  >   cmp $f $f.formatted || diff -u $f $f.formatted
  >   rm $f.formatted
  > done