diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-03-01 01:37:27 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-03-01 01:37:27 +0000 |
commit | 1b9def12add8512242c09e638b2e71e102f7d8e8 (patch) | |
tree | 8558e396eeec603ac4635ddf0b874c79e9067114 /test | |
parent | 4028709f7f5ff3cdc83ac4a0603350e6631aa547 (diff) |
start of test suite to catch errors in source code
Diffstat (limited to 'test')
-rw-r--r-- | test/build/Makefile | 4 | ||||
-rw-r--r-- | test/build/check_config_options.sh | 16 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test/build/Makefile b/test/build/Makefile new file mode 100644 index 000000000..6863684a5 --- /dev/null +++ b/test/build/Makefile @@ -0,0 +1,4 @@ +# uClibc build tests +# Licensed under the GNU Library General Public License, see COPYING.LIB + +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..93a5e7280 --- /dev/null +++ b/test/build/check_config_options.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# Make sure nothing uses the ARCH_HAS_MMU option anymore +ret=$( +grep -rHI \ + __ARCH_HAS_MMU__ ../.. \ + | grep -v \ + -e include/bits/uClibc_config.h \ + -e test/build/check_config_options.sh +) +if test -n "$ret" ; then + echo "The build system is incorrectly using ARCH_HAS_MMU:" + echo "$ret" +fi + +exit 0 |