add SKIP_KNOWN_BUGS and SKIP_INTERNET_TESTS to testsuite

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2009-07-18 15:19:41 +02:00
parent f8e6b6eccb
commit b71ce023e9
9 changed files with 38 additions and 2 deletions

View File

@ -10,10 +10,24 @@ name of the test case should be the assertion that is tested. The test case
should be a shell fragment that returns successfully if the test case passes, should be a shell fragment that returns successfully if the test case passes,
and unsuccessfully otherwise. and unsuccessfully otherwise.
Set SKIP_KNOWN_BUGS environment variable to any non-empty value
to exclude tests which are known to fail.
Set SKIP_INTERNET_TESTS to exclude tests which require working
internet connection.
If the test case relies on a certain feature, it should include the string If the test case relies on a certain feature, it should include the string
"FEATURE: " followed by the name of the feature in a comment. If it is always "FEATURE: " followed by the name of the feature in a comment. If it is always
expected to fail, it should include the string "XFAIL" in a comment. expected to fail, it should include the string "XFAIL" in a comment.
Common causes of false positives:
For busybox built against uclibc, /etc/TZ does not exist or does not match
host system timezone setting. For glibc based host systems, timezona settings
are in /etc/localtime.
For the entire testsuite, the copyright is as follows: For the entire testsuite, the copyright is as follows:
Copyright (C) 2001, 2002 Matt Kraai Copyright (C) 2001, 2002 Matt Kraai

View File

@ -1,2 +1,9 @@
test x$(hostname -i) = x$(busybox hostname -i) test x"$SKIP_KNOWN_BUGS" != x"" && exit
# Observed bug:
# # ./busybox hostname -i
# 127.0.0.1
# # hostname -i
# 127.0.0.1 10.0.0.2 10.32.10.45
test x$(hostname -i) = x$(busybox hostname -i)

View File

@ -1,3 +1,7 @@
test x"$SKIP_KNOWN_BUGS" != x"" && exit
# busybox does not emit "total NNN" line
[ -n "$d" ] || d=.. [ -n "$d" ] || d=..
LC_ALL=C ls -l "$d" > logfile.gnu LC_ALL=C ls -l "$d" > logfile.gnu
LC_ALL=C busybox ls -l "$d" > logfile.bb LC_ALL=C busybox ls -l "$d" > logfile.bb

View File

@ -1,3 +1,7 @@
test x"$SKIP_KNOWN_BUGS" != x"" && exit
# busybox does not emit "total NNN" line
[ -n "$d" ] || d=.. [ -n "$d" ] || d=..
LC_ALL=C ls -1s "$d" > logfile.gnu LC_ALL=C ls -1s "$d" > logfile.gnu
LC_ALL=C busybox ls -1s "$d" > logfile.bb LC_ALL=C busybox ls -1s "$d" > logfile.bb

View File

@ -1,5 +1,4 @@
#!/bin/sh #!/bin/sh
# Copyright 2006 Bernhard Reutner-Fischer # Copyright 2006 Bernhard Reutner-Fischer
# Licensed under GPL v2 or later, see file LICENSE for details. # Licensed under GPL v2 or later, see file LICENSE for details.

View File

@ -1,3 +1,5 @@
test x"$SKIP_INTERNET_TESTS" != x"" && exit
mkdir foo mkdir foo
busybox wget -q -O index.html -P foo http://www.google.com/ busybox wget -q -O index.html -P foo http://www.google.com/
test -s index.html test -s index.html

View File

@ -1 +1,3 @@
test x"$SKIP_INTERNET_TESTS" != x"" && exit
busybox wget http://www.google.com busybox wget http://www.google.com

View File

@ -1,2 +1,4 @@
test x"$SKIP_INTERNET_TESTS" != x"" && exit
busybox wget -q -O foo http://www.google.com/ busybox wget -q -O foo http://www.google.com/
test -s foo test -s foo

View File

@ -1,3 +1,5 @@
test x"$SKIP_INTERNET_TESTS" != x"" && exit
mkdir foo mkdir foo
busybox wget -q -P foo http://www.google.com/ busybox wget -q -P foo http://www.google.com/
test -s foo/index.html test -s foo/index.html