From 1b9def12add8512242c09e638b2e71e102f7d8e8 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 1 Mar 2006 01:37:27 +0000 Subject: start of test suite to catch errors in source code --- test/build/Makefile | 4 ++++ test/build/check_config_options.sh | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 test/build/Makefile create mode 100644 test/build/check_config_options.sh (limited to 'test') diff --git a/test/build/Makefile b/test/build/Makefile new file mode 100644 index 000000000..6863684a5 --- /dev/null +++ b/test/build/Makefile @@ -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 index 000000000..93a5e7280 --- /dev/null +++ b/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 -- cgit v1.2.3