tests/test-check-clang-format.t
author Pulkit Goyal <7895pulkit@gmail.com>
Thu, 12 Apr 2018 15:23:36 +0530
changeset 37582 39ced3ef586d
parent 37184 0024961aa493
permissions -rw-r--r--
py3: add b'' prefix to make the regex bytes # skip-blame because just b'' prefix Differential Revision: https://phab.mercurial-scm.org/D3281

#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