Browse Source

start of test suite to catch errors in source code

Mike Frysinger 18 years ago
parent
commit
1b9def12ad
2 changed files with 20 additions and 0 deletions
  1. 4 0
      test/build/Makefile
  2. 16 0
      test/build/check_config_options.sh

+ 4 - 0
test/build/Makefile

@@ -0,0 +1,4 @@
+# uClibc build tests
+# Licensed under the GNU Library General Public License, see COPYING.LIB
+
+include ../Test.mak

+ 16 - 0
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