diff options
Diffstat (limited to 'meta/recipes-extended/findutils/findutils')
-rw-r--r-- | meta/recipes-extended/findutils/findutils/run-ptest | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-extended/findutils/findutils/run-ptest b/meta/recipes-extended/findutils/findutils/run-ptest new file mode 100644 index 0000000000..0c9af47efd --- /dev/null +++ b/meta/recipes-extended/findutils/findutils/run-ptest | |||
@@ -0,0 +1,32 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # create temporary symlink to workaround missing oldfind | ||
4 | ln -s /usr/bin/find /tmp/oldfind | ||
5 | # make oldfind visible | ||
6 | export PATH="/tmp:${PATH}" | ||
7 | |||
8 | # Add findutils ptest directory to PATH for getlimits | ||
9 | export PATH="/usr/lib/findutils/ptest:${PATH}" | ||
10 | |||
11 | export built_programs="find xargs locate updatedb" | ||
12 | |||
13 | # this gets substituted by sed during build | ||
14 | export VERSION="__run_ptest_version__" | ||
15 | |||
16 | for f in tests/*/*.sh; do | ||
17 | bash $f ; | ||
18 | case $? in | ||
19 | 0 ) | ||
20 | echo -n "PASS";; | ||
21 | 77 ) | ||
22 | echo -n "SKIP";; | ||
23 | * ) | ||
24 | echo -n "FAIL";; | ||
25 | esac | ||
26 | echo ": $f" | ||
27 | done | ||
28 | |||
29 | #remove symlink | ||
30 | rm -f /tmp/oldfind | ||
31 | |||
32 | echo | ||