tests/test-check-clang-format.t
changeset 34834 2e8477059d4f
child 35669 39499bc31fcd
equal deleted inserted replaced
34833:07bbb208a924 34834:2e8477059d4f
       
     1 #require clang-format test-repo
       
     2 
       
     3   $ . "$TESTDIR/helpers-testrepo.sh"
       
     4 
       
     5   $ cd "$TESTDIR"/..
       
     6   $ for f in `testrepohg files 'set:(**.c or **.h) and not "listfile:contrib/clang-format-blacklist"'` ; do
       
     7   >   clang-format --style file $f > $f.formatted
       
     8   >   cmp $f $f.formatted || diff -u $f $f.formatted
       
     9   >   rm $f.formatted
       
    10   > done