Mercurial > hg
comparison tests/test-check-clang-format.t @ 37184:0024961aa493
contrib: rename clang-format-blacklist to clang-format-ignorelist
"blacklist" is racially charged. Let's rename it to something
that isn't.
Differential Revision: https://phab.mercurial-scm.org/D2974
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 30 Mar 2018 11:35:17 -0700 |
parents | 39499bc31fcd |
children |
comparison
equal
deleted
inserted
replaced
37183:ded5ea279a93 | 37184:0024961aa493 |
---|---|
1 #require clang-format test-repo | 1 #require clang-format test-repo |
2 | 2 |
3 $ . "$TESTDIR/helpers-testrepo.sh" | 3 $ . "$TESTDIR/helpers-testrepo.sh" |
4 | 4 |
5 $ cd "$TESTDIR"/.. | 5 $ cd "$TESTDIR"/.. |
6 $ for f in `testrepohg files 'set:(**.c or **.cc or **.h) and not "listfile:contrib/clang-format-blacklist"'` ; do | 6 $ for f in `testrepohg files 'set:(**.c or **.cc or **.h) and not "listfile:contrib/clang-format-ignorelist"'` ; do |
7 > clang-format --style file $f > $f.formatted | 7 > clang-format --style file $f > $f.formatted |
8 > cmp $f $f.formatted || diff -u $f $f.formatted | 8 > cmp $f $f.formatted || diff -u $f $f.formatted |
9 > rm $f.formatted | 9 > rm $f.formatted |
10 > done | 10 > done |