Procházet zdrojové kódy

start of test suite to catch errors in source code

Mike Frysinger před 18 roky
rodič
revize
1b9def12ad
2 změnil soubory, kde provedl 20 přidání a 0 odebrání
  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