tests/test-check-clang-format.t
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Thu, 26 Mar 2020 17:24:54 -0400
changeset 44627 bb3e05ca21ca
parent 37186 0024961aa493
permissions -rw-r--r--
git: implement a basic checkconflict bookmark store method It is heavily based on bmstore's own checkconflict.

#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