summaryrefslogtreecommitdiff
path: root/dist/s_style
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2012-02-28 14:28:31 +1100
committerMichael Cahill <michael.cahill@wiredtiger.com>2012-02-28 14:28:31 +1100
commit061956966eb59f9a3b275f878ca2c9a3f11a9149 (patch)
tree617e3c647bb8b7a1d8b1e0c7dd93e44f4db92b96 /dist/s_style
parent16b1e69127ee8d26002cfe8fc5baccee5dae9d98 (diff)
downloadmongo-061956966eb59f9a3b275f878ca2c9a3f11a9149.tar.gz
Make checks of test code optional, so they don't complain in a release tree.
Diffstat (limited to 'dist/s_style')
-rw-r--r--dist/s_style7
1 files changed, 4 insertions, 3 deletions
diff --git a/dist/s_style b/dist/s_style
index dbc63f5fa7b..dba35944fd3 100644
--- a/dist/s_style
+++ b/dist/s_style
@@ -4,8 +4,9 @@
t=__wt.$$
trap 'rm -f $t; exit 0' 0 1 2 3 13 15
-extra=`cd .. && echo src/include/*.[hi] src/include/*.in test/*/*.[ch] dist/*.py`
-(
+extra=`cd .. && echo dist/*.py src/include/*.[hi] src/include/*.in && \
+ find test -name '*.[ch]' -print`
+
for f in `sed -e '/^[a-z]/! d' filelist` $extra; do
f="../$f"
if grep "^[^}]*while (0);" $f > /dev/null; then
@@ -55,4 +56,4 @@ for f in `sed -e '/^[a-z]/! d' filelist` $extra; do
-e 's/sizeof(WT_PAGE_DISK)/WT_PAGE_DISK_SIZE/g' >$t
cmp $t $f > /dev/null 2>&1 || (echo "$f" && cp $t $f)
-done)
+done