tests/test-check-clang-format.t
author Augie Fackler <augie@google.com>
Fri, 10 Nov 2017 17:12:04 -0500
changeset 35013 36507048da0f
parent 34834 2e8477059d4f
child 35669 39499bc31fcd
permissions -rw-r--r--
merge with stable

#require clang-format test-repo

  $ . "$TESTDIR/helpers-testrepo.sh"

  $ cd "$TESTDIR"/..
  $ for f in `testrepohg files 'set:(**.c or **.h) and not "listfile:contrib/clang-format-blacklist"'` ; do
  >   clang-format --style file $f > $f.formatted
  >   cmp $f $f.formatted || diff -u $f $f.formatted
  >   rm $f.formatted
  > done