tests/test-check-clang-format.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 12 Jan 2021 18:13:55 +0100
changeset 46250 de2ed219fd00
parent 37184 0024961aa493
permissions -rw-r--r--
persistent-nodemap: test it (does not) exist after a stream clone This is currently buggy. We add a test before fixing the bug. Differential Revision: https://phab.mercurial-scm.org/D9734

#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