tests/test-check-clang-format.t
author Yuya Nishihara <yuya@tcha.org>
Sat, 13 Jan 2018 13:33:55 +0900
changeset 35623 f56f8abbeaf1
parent 34834 2e8477059d4f
child 35669 39499bc31fcd
permissions -rw-r--r--
largefiles: convert EOL of hgrc before appending to bytes IO Text IO is useless on Python 3 as it must be a unicode stream.

#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