summaryrefslogtreecommitdiff
path: root/merge-helpers
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-08-01 16:27:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-08-01 16:27:21 +0000
commit828eab338362edab28d1e9c365602d74f69e82c4 (patch)
tree7339f43015998ccfb5d65fedeea45b2b940662d2 /merge-helpers
parentedf7492a3606b959b76e418b528213c4472e9188 (diff)
2011-08-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* check_submission: Check for missing .doc and .scn files.
Diffstat (limited to 'merge-helpers')
-rw-r--r--merge-helpers/ChangeLog4
-rwxr-xr-xmerge-helpers/check_submission34
2 files changed, 37 insertions, 1 deletions
diff --git a/merge-helpers/ChangeLog b/merge-helpers/ChangeLog
index 2044f88..6a9b760 100644
--- a/merge-helpers/ChangeLog
+++ b/merge-helpers/ChangeLog
@@ -1,5 +1,9 @@
2011-08-01 Joel Sherrill <joel.sherrill@oarcorp.com>
+ * check_submission: Check for missing .doc and .scn files.
+
+2011-08-01 Joel Sherrill <joel.sherrill@oarcorp.com>
+
* Makefile: Enhance to check more than a BSP.
* check_submission: New file.
* check_bsp: Removed.
diff --git a/merge-helpers/check_submission b/merge-helpers/check_submission
index 7bb232c..370539d 100755
--- a/merge-helpers/check_submission
+++ b/merge-helpers/check_submission
@@ -189,7 +189,9 @@ do
test_its_NOT_there ${f} TBD
done
-# If not using -O2, then we really want to know
+#
+# BSP specific checks
+#
if [ ${do_bsp} = "yes" ] ; then
# We do not want stdio in a BSP
echo "=== Checking for stdio"
@@ -208,6 +210,7 @@ if [ ${do_bsp} = "yes" ] ; then
test_its_there configure.ac RTEMS_BSP_CLEANUP_OPTIONS
fi
+ # If not using -O2, then we really want to know
# BSPs should normally use -O2
echo "=== Checking for not using -O2"
grep -H "\-O[013456789]" make/custom/*.cfg
@@ -224,4 +227,33 @@ if [ ${do_bsp} = "yes" ] ; then
fi
fi ## END OF IF BSP
+#
+# Test specific checks
+#
+if [ ${do_test} = "yes" ] ; then
+ # find all the Makefile.am's with rtems_tests_PROGRAMS in them
+ Makefiles=`find . -name Makefile.am | xargs -e grep -l ^rtems_tests`
+ if [ X${Makefiles} = X ] ; then
+ fatal "Unable to locate any test Makefile.am files."
+ fi
+ echo "=== Checking for missing test support files"
+ for m in ${Makefiles}
+ do
+ testName=`dirname ${m}`
+ if [ ${testName} = "." ] ; then
+ testName=`pwd`
+ fi
+ testName=`basename ${testName}`
+ # Does this test have a .doc file?
+ if [ ! -r ${testName}.doc ] ; then
+ echo ${testName}.doc is not present
+ fi
+ # Does this test have a .scn file?
+ if [ ! -r ${testName}.scn ] ; then
+ echo ${testName}.scn is not present
+ fi
+ done
+
+fi
+
exit 0