tests/test-check-clang-format.t
author Anton Shestakov <av6@dwimlabs.net>
Mon, 09 Jan 2023 18:00:07 +0400
branchstable
changeset 49869 fe044ce4bb17
parent 37184 0024961aa493
permissions -rw-r--r--
tests: filter out PEP 657 error locations in tracebacks (issue6780) https://docs.python.org/3/whatsnew/3.11.html#whatsnew311-pep657

#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