summaryrefslogtreecommitdiff
path: root/test/build
diff options
context:
space:
mode:
Diffstat (limited to 'test/build')
-rw-r--r--test/build/Makefile8
-rwxr-xr-xtest/build/check_config_options.sh21
2 files changed, 29 insertions, 0 deletions
diff --git a/test/build/Makefile b/test/build/Makefile
new file mode 100644
index 0000000..ce74a8a
--- /dev/null
+++ b/test/build/Makefile
@@ -0,0 +1,8 @@
+# uClibc build tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+
+top_builddir=../../
+top_srcdir=../../
+include ../Rules.mak
+-include Makefile.in
+include ../Test.mak
diff --git a/test/build/check_config_options.sh b/test/build/check_config_options.sh
new file mode 100755
index 0000000..086131f
--- /dev/null
+++ b/test/build/check_config_options.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+ret=0
+
+# Make sure nothing uses the ARCH_HAS_MMU option anymore
+result=$(
+find ../.. \
+ | grep -v \
+ -e include/bits/uClibc_config.h \
+ -e /test/ \
+ -e /.svn/ \
+ | xargs grep -sHI \
+ __ARCH_HAS_MMU__
+)
+if [ -n "$result" ] ; then
+ echo "The build system is incorrectly using ARCH_HAS_MMU:"
+ echo "$result"
+ ret=1
+fi
+
+exit $ret