tests/test-check-clang-format.t
author Pulkit Goyal <pulkit@yandex-team.ru>
Thu, 20 Sep 2018 17:17:02 +0300
changeset 39724 e1e10cbb5568
parent 37184 0024961aa493
permissions -rw-r--r--
py3: make tests/svn-safe-append.py compatible with python 3 Differential Revision: https://phab.mercurial-scm.org/D4671

#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