Changeset 828eab3 in rtems-testing


Ignore:
Timestamp:
Aug 1, 2011, 4:27:21 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
69c105f
Parents:
edf7492
Message:

2011-08-01 Joel Sherrill <joel.sherrill@…>

  • check_submission: Check for missing .doc and .scn files.
Location:
merge-helpers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • merge-helpers/ChangeLog

    redf7492 r828eab3  
     12011-08-01      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * check_submission: Check for missing .doc and .scn files.
     4
    152011-08-01      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • merge-helpers/check_submission

    redf7492 r828eab3  
    190190done
    191191
    192 # If not using -O2, then we really want to know
     192#
     193# BSP specific checks
     194#
    193195if [ ${do_bsp} = "yes" ] ; then
    194196  # We do not want stdio in a BSP
     
    209211  fi
    210212
     213  # If not using -O2, then we really want to know
    211214  # BSPs should normally use -O2
    212215  echo "=== Checking for not using -O2"
     
    225228fi  ## END OF IF BSP
    226229
     230#
     231# Test specific checks
     232#
     233if [ ${do_test} = "yes" ] ; then
     234  # find all the Makefile.am's with rtems_tests_PROGRAMS in them
     235  Makefiles=`find . -name Makefile.am | xargs -e grep -l ^rtems_tests`
     236  if [ X${Makefiles} = X ] ; then
     237    fatal "Unable to locate any test Makefile.am files."
     238  fi
     239  echo "=== Checking for missing test support files"
     240  for m in ${Makefiles}
     241  do
     242    testName=`dirname ${m}`
     243    if [ ${testName} = "." ] ; then
     244      testName=`pwd`
     245    fi
     246    testName=`basename ${testName}`
     247    # Does this test have a .doc file?
     248    if [ ! -r ${testName}.doc ] ; then
     249      echo ${testName}.doc is not present
     250    fi
     251    # Does this test have a .scn file?
     252    if [ ! -r ${testName}.scn ] ; then
     253      echo ${testName}.scn is not present
     254    fi
     255  done
     256     
     257fi
     258
    227259exit 0
Note: See TracChangeset for help on using the changeset viewer.