tests/test-check-clang-format.t
changeset 34834 2e8477059d4f
child 35669 39499bc31fcd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-check-clang-format.t	Mon Sep 14 14:17:27 2015 -0400
@@ -0,0 +1,10 @@
+#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