tests/test-check-clang-format.t
author Matt Harbison <matt_harbison@yahoo.com>
Fri, 23 Feb 2018 20:50:10 -0500
changeset 36385 003ae586a02e
parent 35669 39499bc31fcd
child 37184 0024961aa493
permissions -rw-r--r--
tests: add HTTP POST and PUT support to the $LOGDATE$ substitution The lfs serving code uses both POST and PUT requests (and there's existing support for POST).

#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-blacklist"'` ; do
  >   clang-format --style file $f > $f.formatted
  >   cmp $f $f.formatted || diff -u $f $f.formatted
  >   rm $f.formatted
  > done