diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/build/Makefile | 4 | ||||
| -rw-r--r-- | test/build/check_config_options.sh | 20 | 
2 files changed, 24 insertions, 0 deletions
diff --git a/test/build/Makefile b/test/build/Makefile new file mode 100644 index 000000000..eb65c2ad3 --- /dev/null +++ b/test/build/Makefile @@ -0,0 +1,4 @@ +# uClibc build tests +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + +include ../Test.mak diff --git a/test/build/check_config_options.sh b/test/build/check_config_options.sh new file mode 100644 index 000000000..56d09244b --- /dev/null +++ b/test/build/check_config_options.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +ret=0 + +# Make sure nothing uses the ARCH_HAS_MMU option anymore +result=$( +grep -rsHI \ +	__ARCH_HAS_MMU__ ../.. \ +	| grep -v \ +		-e include/bits/uClibc_config.h \ +		-e test/build/check_config_options.sh \ +		-e /.svn/ +) +if test -n "$result" ; then +	echo "The build system is incorrectly using ARCH_HAS_MMU:" +	echo "$result" +	ret=1 +fi + +exit $ret  | 
