tests/test-check-clang-format.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Fri, 19 Feb 2021 20:47:15 +0100
changeset 46558 eb60dadd1be1
parent 37184 0024961aa493
permissions -rw-r--r--
test-copies: add a `q` branch similar to the `e` but on the new files This branch will be used to create merge case that mirror ones involving the `e` branch. Differential Revision: https://phab.mercurial-scm.org/D10056

#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