← Commit list

b71ce023e

Denys Vlasenko
Denys Vlasenko
2009-07-18
FAILED Duration: 33s

Subject

add SKIP_KNOWN_BUGS and SKIP_INTERNET_TESTS to testsuite

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

testsuite/README+14 -0
@@ -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,
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
"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.
+
+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:
Copyright (C) 2001, 2002 Matt Kraai
testsuite/hostname/hostname-i-works+8 -1
@@ -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)
testsuite/ls/ls-l-works+4 -0
@@ -1,3 +1,7 @@
+test x"$SKIP_KNOWN_BUGS" != x"" && exit
+
+# busybox does not emit "total NNN" line
+
[ -n "$d" ] || d=..
LC_ALL=C ls -l "$d" > logfile.gnu
LC_ALL=C busybox ls -l "$d" > logfile.bb
testsuite/ls/ls-s-works+4 -0
@@ -1,3 +1,7 @@
+test x"$SKIP_KNOWN_BUGS" != x"" && exit
+
+# busybox does not emit "total NNN" line
+
[ -n "$d" ] || d=..
LC_ALL=C ls -1s "$d" > logfile.gnu
LC_ALL=C busybox ls -1s "$d" > logfile.bb
testsuite/taskset.tests+0 -1
@@ -1,5 +1,4 @@
#!/bin/sh
-
# Copyright 2006 Bernhard Reutner-Fischer
# Licensed under GPL v2 or later, see file LICENSE for details.
testsuite/wget/wget--O-overrides--P+2 -0
@@ -1,3 +1,5 @@
+test x"$SKIP_INTERNET_TESTS" != x"" && exit
+
mkdir foo
busybox wget -q -O index.html -P foo http://www.google.com/
test -s index.html
testsuite/wget/wget-handles-empty-path+2 -0
@@ -1 +1,3 @@
+test x"$SKIP_INTERNET_TESTS" != x"" && exit
+
busybox wget http://www.google.com
testsuite/wget/wget-retrieves-google-index+2 -0
@@ -1,2 +1,4 @@
+test x"$SKIP_INTERNET_TESTS" != x"" && exit
+
busybox wget -q -O foo http://www.google.com/
test -s foo
testsuite/wget/wget-supports--P+2 -0
@@ -1,3 +1,5 @@
+test x"$SKIP_INTERNET_TESTS" != x"" && exit
+
mkdir foo
busybox wget -q -P foo http://www.google.com/
test -s foo/index.html