OSDN Git Service

start of test suite to catch errors in source code
authorMike Frysinger <vapier@gentoo.org>
Wed, 1 Mar 2006 01:37:27 +0000 (01:37 -0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 1 Mar 2006 01:37:27 +0000 (01:37 -0000)
test/build/Makefile [new file with mode: 0644]
test/build/check_config_options.sh [new file with mode: 0644]

diff --git a/test/build/Makefile b/test/build/Makefile
new file mode 100644 (file)
index 0000000..6863684
--- /dev/null
@@ -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 (file)
index 0000000..93a5e72
--- /dev/null
@@ -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