diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-18 15:19:41 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-18 15:19:41 +0200 |
commit | b71ce023e9527b6afaa497ce62ca53a74cf94cef (patch) | |
tree | 0d7c880b8a73f1f56897bcddd1d88b6517aa07ae | |
parent | f8e6b6eccbae6ae386820f95d123f8a641f753d4 (diff) | |
download | busybox-w32-b71ce023e9527b6afaa497ce62ca53a74cf94cef.tar.gz busybox-w32-b71ce023e9527b6afaa497ce62ca53a74cf94cef.tar.bz2 busybox-w32-b71ce023e9527b6afaa497ce62ca53a74cf94cef.zip |
add SKIP_KNOWN_BUGS and SKIP_INTERNET_TESTS to testsuite
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | testsuite/README | 14 | ||||
-rw-r--r-- | testsuite/hostname/hostname-i-works | 9 | ||||
-rw-r--r-- | testsuite/ls/ls-l-works | 4 | ||||
-rw-r--r-- | testsuite/ls/ls-s-works | 4 | ||||
-rwxr-xr-x | testsuite/taskset.tests | 1 | ||||
-rw-r--r-- | testsuite/wget/wget--O-overrides--P | 2 | ||||
-rw-r--r-- | testsuite/wget/wget-handles-empty-path | 2 | ||||
-rw-r--r-- | testsuite/wget/wget-retrieves-google-index | 2 | ||||
-rw-r--r-- | testsuite/wget/wget-supports--P | 2 |
9 files changed, 38 insertions, 2 deletions
diff --git a/testsuite/README b/testsuite/README index b4719e64c..3c52254dd 100644 --- a/testsuite/README +++ b/testsuite/README | |||
@@ -10,10 +10,24 @@ name of the test case should be the assertion that is tested. The test case | |||
10 | should be a shell fragment that returns successfully if the test case passes, | 10 | should be a shell fragment that returns successfully if the test case passes, |
11 | and unsuccessfully otherwise. | 11 | and unsuccessfully otherwise. |
12 | 12 | ||
13 | Set SKIP_KNOWN_BUGS environment variable to any non-empty value | ||
14 | to exclude tests which are known to fail. | ||
15 | |||
16 | Set SKIP_INTERNET_TESTS to exclude tests which require working | ||
17 | internet connection. | ||
18 | |||
13 | If the test case relies on a certain feature, it should include the string | 19 | If the test case relies on a certain feature, it should include the string |
14 | "FEATURE: " followed by the name of the feature in a comment. If it is always | 20 | "FEATURE: " followed by the name of the feature in a comment. If it is always |
15 | expected to fail, it should include the string "XFAIL" in a comment. | 21 | expected to fail, it should include the string "XFAIL" in a comment. |
16 | 22 | ||
23 | |||
24 | Common causes of false positives: | ||
25 | |||
26 | For busybox built against uclibc, /etc/TZ does not exist or does not match | ||
27 | host system timezone setting. For glibc based host systems, timezona settings | ||
28 | are in /etc/localtime. | ||
29 | |||
30 | |||
17 | For the entire testsuite, the copyright is as follows: | 31 | For the entire testsuite, the copyright is as follows: |
18 | 32 | ||
19 | Copyright (C) 2001, 2002 Matt Kraai | 33 | Copyright (C) 2001, 2002 Matt Kraai |
diff --git a/testsuite/hostname/hostname-i-works b/testsuite/hostname/hostname-i-works index 68a3e6789..7299bffa9 100644 --- a/testsuite/hostname/hostname-i-works +++ b/testsuite/hostname/hostname-i-works | |||
@@ -1,2 +1,9 @@ | |||
1 | test x$(hostname -i) = x$(busybox hostname -i) | 1 | test x"$SKIP_KNOWN_BUGS" != x"" && exit |
2 | |||
3 | # Observed bug: | ||
4 | # # ./busybox hostname -i | ||
5 | # 127.0.0.1 | ||
6 | # # hostname -i | ||
7 | # 127.0.0.1 10.0.0.2 10.32.10.45 | ||
2 | 8 | ||
9 | test x$(hostname -i) = x$(busybox hostname -i) | ||
diff --git a/testsuite/ls/ls-l-works b/testsuite/ls/ls-l-works index 1bad34bcf..ce08810a4 100644 --- a/testsuite/ls/ls-l-works +++ b/testsuite/ls/ls-l-works | |||
@@ -1,3 +1,7 @@ | |||
1 | test x"$SKIP_KNOWN_BUGS" != x"" && exit | ||
2 | |||
3 | # busybox does not emit "total NNN" line | ||
4 | |||
1 | [ -n "$d" ] || d=.. | 5 | [ -n "$d" ] || d=.. |
2 | LC_ALL=C ls -l "$d" > logfile.gnu | 6 | LC_ALL=C ls -l "$d" > logfile.gnu |
3 | LC_ALL=C busybox ls -l "$d" > logfile.bb | 7 | LC_ALL=C busybox ls -l "$d" > logfile.bb |
diff --git a/testsuite/ls/ls-s-works b/testsuite/ls/ls-s-works index 0a9d7526f..8bf5c64fb 100644 --- a/testsuite/ls/ls-s-works +++ b/testsuite/ls/ls-s-works | |||
@@ -1,3 +1,7 @@ | |||
1 | test x"$SKIP_KNOWN_BUGS" != x"" && exit | ||
2 | |||
3 | # busybox does not emit "total NNN" line | ||
4 | |||
1 | [ -n "$d" ] || d=.. | 5 | [ -n "$d" ] || d=.. |
2 | LC_ALL=C ls -1s "$d" > logfile.gnu | 6 | LC_ALL=C ls -1s "$d" > logfile.gnu |
3 | LC_ALL=C busybox ls -1s "$d" > logfile.bb | 7 | LC_ALL=C busybox ls -1s "$d" > logfile.bb |
diff --git a/testsuite/taskset.tests b/testsuite/taskset.tests index 2d3ebd78b..53d7f10da 100755 --- a/testsuite/taskset.tests +++ b/testsuite/taskset.tests | |||
@@ -1,5 +1,4 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | |||
3 | # Copyright 2006 Bernhard Reutner-Fischer | 2 | # Copyright 2006 Bernhard Reutner-Fischer |
4 | # Licensed under GPL v2 or later, see file LICENSE for details. | 3 | # Licensed under GPL v2 or later, see file LICENSE for details. |
5 | 4 | ||
diff --git a/testsuite/wget/wget--O-overrides--P b/testsuite/wget/wget--O-overrides--P index fdb5d47c0..40a3a962c 100644 --- a/testsuite/wget/wget--O-overrides--P +++ b/testsuite/wget/wget--O-overrides--P | |||
@@ -1,3 +1,5 @@ | |||
1 | test x"$SKIP_INTERNET_TESTS" != x"" && exit | ||
2 | |||
1 | mkdir foo | 3 | mkdir foo |
2 | busybox wget -q -O index.html -P foo http://www.google.com/ | 4 | busybox wget -q -O index.html -P foo http://www.google.com/ |
3 | test -s index.html | 5 | test -s index.html |
diff --git a/testsuite/wget/wget-handles-empty-path b/testsuite/wget/wget-handles-empty-path index 5b591837a..01d60bd0e 100644 --- a/testsuite/wget/wget-handles-empty-path +++ b/testsuite/wget/wget-handles-empty-path | |||
@@ -1 +1,3 @@ | |||
1 | test x"$SKIP_INTERNET_TESTS" != x"" && exit | ||
2 | |||
1 | busybox wget http://www.google.com | 3 | busybox wget http://www.google.com |
diff --git a/testsuite/wget/wget-retrieves-google-index b/testsuite/wget/wget-retrieves-google-index index 7be9a8087..f9dbb8be8 100644 --- a/testsuite/wget/wget-retrieves-google-index +++ b/testsuite/wget/wget-retrieves-google-index | |||
@@ -1,2 +1,4 @@ | |||
1 | test x"$SKIP_INTERNET_TESTS" != x"" && exit | ||
2 | |||
1 | busybox wget -q -O foo http://www.google.com/ | 3 | busybox wget -q -O foo http://www.google.com/ |
2 | test -s foo | 4 | test -s foo |
diff --git a/testsuite/wget/wget-supports--P b/testsuite/wget/wget-supports--P index 9b4d095e6..bfe4ac45e 100644 --- a/testsuite/wget/wget-supports--P +++ b/testsuite/wget/wget-supports--P | |||
@@ -1,3 +1,5 @@ | |||
1 | test x"$SKIP_INTERNET_TESTS" != x"" && exit | ||
2 | |||
1 | mkdir foo | 3 | mkdir foo |
2 | busybox wget -q -P foo http://www.google.com/ | 4 | busybox wget -q -P foo http://www.google.com/ |
3 | test -s foo/index.html | 5 | test -s foo/index.html |