summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-08-22 01:51:04 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-08-22 01:51:04 +0000
commitc475fd12c4d6c3b81282c494acbf91e09ef85043 (patch)
treeb6c56f4f081217b69193707c01c8251a841ae814
parent5d275b3618c9a5806fbaaea4402288bc128e9303 (diff)
downloaduClibc-alpine-c475fd12c4d6c3b81282c494acbf91e09ef85043.tar.bz2
uClibc-alpine-c475fd12c4d6c3b81282c494acbf91e09ef85043.tar.xz
Copy from trunk.
-rw-r--r--test/build/Makefile4
-rw-r--r--test/build/check_config_options.sh20
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