tests/test-check-clang-format.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Fri, 02 Dec 2022 06:49:39 +0100
changeset 49736 a804242050c4
parent 37184 0024961aa493
permissions -rw-r--r--
path: pass `path` to `peer` in remotefilelog's tests We directly use the `path` object to build the `peer` object.

#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