From 828eab338362edab28d1e9c365602d74f69e82c4 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 1 Aug 2011 16:27:21 +0000 Subject: 2011-08-01 Joel Sherrill * check_submission: Check for missing .doc and .scn files. --- merge-helpers/ChangeLog | 4 ++++ merge-helpers/check_submission | 34 +++++++++++++++++++++++++++++++++- 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/merge-helpers/ChangeLog b/merge-helpers/ChangeLog index 2044f88..6a9b760 100644 --- a/merge-helpers/ChangeLog +++ b/merge-helpers/ChangeLog @@ -1,3 +1,7 @@ +2011-08-01 Joel Sherrill + + * check_submission: Check for missing .doc and .scn files. + 2011-08-01 Joel Sherrill * Makefile: Enhance to check more than a BSP. 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 -- cgit v1.2.3