Speed up check_config_options.sh
Paul Brook
paul at codesourcery.com
Thu Mar 22 01:58:16 UTC 2007
After running the uclibc testsuite many times on a slow NFS-based target, I
got annoyed by the time taken by the check_config_options test.
The patch below speeds it up significantly by filtering out svn directories
before feeding them through grep. Because svn keeps a pristine source copy
here, these constitute ~35Mb (almost 50%) of a full build tree.
It also excludes the whole test directory, which can be very large when using
static linking.
Paul
Index: test/build/check_config_options.sh
===================================================================
--- test/build/check_config_options.sh (revision 166374)
+++ test/build/check_config_options.sh (working copy)
@@ -4,12 +4,13 @@ ret=0
# Make sure nothing uses the ARCH_HAS_MMU option anymore
result=$(
-grep -rsHI \
- __ARCH_HAS_MMU__ ../.. \
+find ../.. \
| grep -v \
-e include/bits/uClibc_config.h \
- -e test/build/check_config_options.sh \
- -e /.svn/
+ -e /test/ \
+ -e /.svn/ \
+ | xargs grep -sHI \
+ __ARCH_HAS_MMU__
)
if test -n "$result" ; then
echo "The build system is incorrectly using ARCH_HAS_MMU:"
More information about the uClibc
mailing list