view tests/test-check-clang-format.t @ 51518:c7e81615b5c4

branchcache: add some blank line in a test This helps each section to stand out.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 27 Feb 2024 15:33:21 +0100
parents 0024961aa493
children
line wrap: on
line source

#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