- introduce variable _BB_CONFIG_DEP to the new test harness.

This is used to see if given tests should be run (are available) or not.
  Print "UNTESTED: descr" if the applet or feature is not available.
- add _BB_CONFIG_DEP to existing new.tests
- move old grep test to new test infrastructure and add a few more test for
  grep.
This commit is contained in:
Bernhard Reutner-Fischer
2005-09-23 15:44:46 +00:00
parent 0a44c17771
commit b47a74f4e7
13 changed files with 137 additions and 22 deletions

View File

@@ -90,21 +90,22 @@ else
fi
for applet in $applets; do
if [ "$applet" == links ]; then continue; fi
if [ "$applet" != CVS -a -d "$srcdir/$applet" ]; then
if [ "$applet" = "links" ]; then continue; fi
if [ "$applet" != "CVS" -a -d "$srcdir/$applet" ]; then
if run_applet_tests $applet; then
:
else
status=1
fi
fi
applet=`echo "$applet" | sed -n 's/\.tests$//p'`
if [ ${#applet} != 0 ]
applet=$(echo "$applet" | sed -n 's/\.tests$//p')
if [ ${#applet} -ne 0 ]
then
mkdir links 2>/dev/null
rm -f links/"$applet"
ln -s ${bindir:-../..}/busybox links/"$applet"
PATH="$srcdir:$PATH" COMMAND="links/$applet" "${srcdir:-.}/$applet".tests
PATH="$srcdir:$PATH" COMMAND="links/$applet" \
"${srcdir:-.}/$applet".tests
if [ $? -ne 0 ]; then status=1; fi
fi