tests/test-check-clang-format.t
author Mathias De Mare <mathias.de_mare@nokia.com>
Fri, 06 Nov 2020 17:32:23 +0100
changeset 45836 de1f4c431619
parent 37184 0024961aa493
permissions -rw-r--r--
packaging: switch centos 7 packaging to python 3 Differential Revision: https://phab.mercurial-scm.org/D9293

#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