Last change
on this file since 3772 was 3621, checked in by Bruno Cornec, 8 years ago |
New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.
|
-
Property svn:executable
set to
*
|
File size:
1.2 KB
|
Rev | Line | |
---|
[3621] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
| 3 | # Copyright 2014 by Denys Vlasenko <vda.linux@googlemail.com>
|
---|
| 4 | # Licensed under GPLv2, see file LICENSE in this source tree.
|
---|
| 5 |
|
---|
| 6 | . ./testing.sh
|
---|
| 7 |
|
---|
| 8 | # testing "description" "command" "result" "infile" "stdin"
|
---|
| 9 |
|
---|
| 10 | mkdir -p find.tempdir
|
---|
| 11 | touch find.tempdir/testfile
|
---|
| 12 |
|
---|
| 13 | optional FEATURE_FIND_TYPE
|
---|
| 14 | testing "find -type f" \
|
---|
| 15 | "cd find.tempdir && find -type f 2>&1" \
|
---|
| 16 | "./testfile\n" \
|
---|
| 17 | "" ""
|
---|
| 18 | SKIP=
|
---|
| 19 | optional FEATURE_FIND_EXEC
|
---|
| 20 | testing "find -exec exitcode 1" \
|
---|
| 21 | "cd find.tempdir && find testfile -exec true {} \; 2>&1; echo \$?" \
|
---|
| 22 | "0\n" \
|
---|
| 23 | "" ""
|
---|
| 24 | SKIP=
|
---|
| 25 | optional FEATURE_FIND_EXEC_PLUS
|
---|
| 26 | testing "find -exec exitcode 2" \
|
---|
| 27 | "cd find.tempdir && find testfile -exec true {} + 2>&1; echo \$?" \
|
---|
| 28 | "0\n" \
|
---|
| 29 | "" ""
|
---|
| 30 | SKIP=
|
---|
| 31 | # Surprisingly, "-exec false ;" results in exitcode 0! "-exec false +" is different!!!
|
---|
| 32 | optional FEATURE_FIND_EXEC
|
---|
| 33 | testing "find -exec exitcode 3" \
|
---|
| 34 | "cd find.tempdir && find testfile -exec false {} \; 2>&1; echo \$?" \
|
---|
| 35 | "0\n" \
|
---|
| 36 | "" ""
|
---|
| 37 | SKIP=
|
---|
| 38 | optional FEATURE_FIND_EXEC_PLUS
|
---|
| 39 | testing "find -exec exitcode 4" \
|
---|
| 40 | "cd find.tempdir && find testfile -exec false {} + 2>&1; echo \$?" \
|
---|
| 41 | "1\n" \
|
---|
| 42 | "" ""
|
---|
| 43 | SKIP=
|
---|
| 44 |
|
---|
| 45 | # testing "description" "command" "result" "infile" "stdin"
|
---|
| 46 |
|
---|
| 47 | rm -rf find.tempdir
|
---|
| 48 |
|
---|
| 49 | exit $FAILCOUNT
|
---|
Note:
See
TracBrowser
for help on using the repository browser.