diff options
Diffstat (limited to 'meta/recipes-extended/findutils/findutils/run-ptest')
-rw-r--r-- | meta/recipes-extended/findutils/findutils/run-ptest | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/meta/recipes-extended/findutils/findutils/run-ptest b/meta/recipes-extended/findutils/findutils/run-ptest index ec71583c51..0c9af47efd 100644 --- a/meta/recipes-extended/findutils/findutils/run-ptest +++ b/meta/recipes-extended/findutils/findutils/run-ptest | |||
@@ -5,39 +5,14 @@ ln -s /usr/bin/find /tmp/oldfind | |||
5 | # make oldfind visible | 5 | # make oldfind visible |
6 | export PATH="/tmp:${PATH}" | 6 | export PATH="/tmp:${PATH}" |
7 | 7 | ||
8 | # Add findutils ptest directory to PATH for getlimits | ||
9 | export PATH="/usr/lib/findutils/ptest:${PATH}" | ||
10 | |||
8 | export built_programs="find xargs locate updatedb" | 11 | export built_programs="find xargs locate updatedb" |
9 | 12 | ||
10 | # this gets substituted by sed during build | 13 | # this gets substituted by sed during build |
11 | export VERSION="__run_ptest_version__" | 14 | export VERSION="__run_ptest_version__" |
12 | 15 | ||
13 | # define missing functions for tests/init.sh | ||
14 | fu_path_prepend_ () { | ||
15 | path_prepend_ $@ | ||
16 | } | ||
17 | |||
18 | print_ver_ () { | ||
19 | : | ||
20 | } | ||
21 | |||
22 | skip_if_root_ () { | ||
23 | [ $(id -u) = 0 ] && exit 77; | ||
24 | } | ||
25 | |||
26 | require_root_ () { | ||
27 | [ $(id -u) = 0 ] || exit 77; | ||
28 | } | ||
29 | |||
30 | expensive_ () { | ||
31 | : | ||
32 | } | ||
33 | |||
34 | export -f fu_path_prepend_ | ||
35 | export -f print_ver_ | ||
36 | export -f skip_if_root_ | ||
37 | export -f require_root_ | ||
38 | export -f expensive_ | ||
39 | |||
40 | |||
41 | for f in tests/*/*.sh; do | 16 | for f in tests/*/*.sh; do |
42 | bash $f ; | 17 | bash $f ; |
43 | case $? in | 18 | case $? in |