[BusyBox-cvs] busybox/testsuite runtest,1.7,1.8
Erik Andersen
andersen at busybox.net
Tue Apr 6 11:09:49 UTC 2004
- Previous message: [BusyBox-cvs] busybox/tests .cvsignore, 1.2, NONE Makefile, 1.6, NONE cp_tests.mk, 1.6, NONE ln_tests.mk, 1.2, NONE multibuild.pl, 1.8, NONE multifeat.pl, 1.3, NONE mv_tests.mk, 1.3, NONE sh.testcases, 1.5, NONE syslog_test.c, 1.1, NONE testcases, 1.15, NONE tester.sh, 1.6, NONE tst-syslogd.c, 1.1, NONE
- Next message: [BusyBox-cvs] busybox/testsuite/basename basename-works,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/cvs/busybox/testsuite
In directory nail:/tmp/cvs-serv13250/testsuite
Modified Files:
runtest
Log Message:
Kill off the old 'tests' stuff. Write a ton of new tests for the
'testsuite' dir. Fix a bunch of broken tests. Fix the testsuite
'runtest' script so it actually reports all failures and provides
meaningful feedback.
-Erik
Index: runtest
===================================================================
RCS file: /var/cvs/busybox/testsuite/runtest,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- a/runtest 6 Apr 2004 00:41:39 -0000 1.7
+++ b/runtest 6 Apr 2004 11:09:47 -0000 1.8
@@ -2,37 +2,19 @@
PATH=$(dirname $(pwd)):$PATH
-show_result ()
-{
- local resolution=$1
- local testcase=$2
- local status=0
-
- if [ $resolution = XPASS -o $resolution = FAIL ]; then
- status=1
- fi
-
- if [ "$verbose" -o $status -eq 1 ]; then
- echo "$resolution: $testcase"
- fi
-
- return $status
-}
-
run_applet_testcase ()
{
local applet=$1
local testcase=$2
local status=0
- local X=
local RES=
local uc_applet=$(echo $applet | tr a-z A-Z)
local testname=$(basename $testcase)
if grep -q "^# CONFIG_${uc_applet} is not set$" ../.config; then
- show_result UNTESTED $testname
+ echo UNTESTED: $testname
return 0
fi
@@ -40,15 +22,11 @@
local feature=`sed -ne 's/^# FEATURE: //p' $testcase`
if grep -q "^# ${feature} is not set$" ../.config; then
- show_result UNTESTED $testname
+ echo UNTESTED: $testname
return 0
fi
fi
- if grep -q "^# XFAIL$" $testcase; then
- X=X
- fi
-
rm -rf tmp
mkdir -p tmp
pushd tmp >/dev/null
@@ -56,14 +34,14 @@
sh -x -e ../$testcase >.logfile.txt 2>&1
if [ $? != 0 ] ; then
- show_result ${X}FAIL $testname
- if [ "$verbose" == 1 ]; then
+ echo FAIL: $testname
+ if [ "$verbose" = 1 ]; then
cat .logfile.txt
- exit 1;
+ #exit 1;
fi;
status=$?
else
- show_result ${X}PASS $testname
+ echo PASS: $testname
rm -f .logfile.txt
status=$?
fi
- Previous message: [BusyBox-cvs] busybox/tests .cvsignore, 1.2, NONE Makefile, 1.6, NONE cp_tests.mk, 1.6, NONE ln_tests.mk, 1.2, NONE multibuild.pl, 1.8, NONE multifeat.pl, 1.3, NONE mv_tests.mk, 1.3, NONE sh.testcases, 1.5, NONE syslog_test.c, 1.1, NONE testcases, 1.15, NONE tester.sh, 1.6, NONE tst-syslogd.c, 1.1, NONE
- Next message: [BusyBox-cvs] busybox/testsuite/basename basename-works,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the busybox-cvs
mailing list