tests/test-check-clang-format.t
author Pulkit Goyal <pulkit@yandex-team.ru>
Tue, 13 Nov 2018 18:08:55 +0300
changeset 40614 aa588bf40a08
parent 37184 0024961aa493
permissions -rw-r--r--
py3: add b suffix to make sure file is opened in bytes mode Differential Revision: https://phab.mercurial-scm.org/D5263

#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